/* Inter variable (OFL, see fonts/Inter-LICENSE.txt) */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* ROBATEKS brand tokens. Single source for the primary colour (owner-confirmed 2026-10-11).
   Only values the owner has approved live here; accent/neutrals/status/fonts wait for approval
   of the brand suggestions in the intake form (see .claude/robateks-crm/core/8-BRAND_REFERENCE.md). */
:root {
    --rb-primary: #13637b;
    --rb-primary-dark: #0f4f63;   /* derived hover shade of the primary (not an approved brand colour) */
    --rb-accent:#e8a33d;--rb-bg:#f4f7f8;--rb-border:#e0e6e8;--rb-muted:#5b6b72;--rb-text:#17262b;--rb-success:#1b7a43;--rb-warning:#b7791f;--rb-error:#b3261e;--rb-secondary: #ffffff;
}
.rb-footer { border-top: 1px solid rgba(0,0,0,.1); background: #fff; }
.rb-footer .rb-slogan { color: var(--rb-primary); font-weight: 600; }
.btn-primary:focus-visible, .btn-success:focus-visible, .nav-link:focus-visible, a:focus-visible {
    outline: 3px solid var(--rb-primary); outline-offset: 2px;
}

/* ---- Approved palette applied (2026-10-11) ---- */
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--rb-text); }
/* Status colours */
.badge.bg-success { background-color: var(--rb-success) !important; color: #fff; }
.badge.bg-danger  { background-color: var(--rb-error) !important; color: #fff; }
.badge.bg-secondary { background-color: var(--rb-muted) !important; color: #fff; }
.badge.bg-warning { background-color: var(--rb-accent) !important; color: var(--rb-text) !important; }
.badge.bg-info    { background-color: var(--rb-primary) !important; color: #fff !important; }
.btn-outline-danger { --bs-btn-color: var(--rb-error); --bs-btn-border-color: var(--rb-error); --bs-btn-hover-bg: var(--rb-error); --bs-btn-hover-border-color: var(--rb-error); --bs-btn-active-bg: var(--rb-error); --bs-btn-active-border-color: var(--rb-error); }
.btn-check:checked + .btn-outline-danger { background-color: var(--rb-error); border-color: var(--rb-error); color: #fff; }
.btn-outline-success { --bs-btn-color: var(--rb-success); --bs-btn-border-color: var(--rb-success); --bs-btn-hover-bg: var(--rb-success); --bs-btn-hover-border-color: var(--rb-success); --bs-btn-active-bg: var(--rb-success); --bs-btn-active-border-color: var(--rb-success); }
.text-danger { color: var(--rb-error) !important; }
.btn-outline-warning { --bs-btn-color: #8a5a00; --bs-btn-border-color: var(--rb-accent); --bs-btn-hover-bg: var(--rb-accent); --bs-btn-hover-color: var(--rb-text); --bs-btn-hover-border-color: var(--rb-accent); --bs-btn-active-bg: var(--rb-accent); --bs-btn-active-color: var(--rb-text); --bs-btn-active-border-color: var(--rb-accent); }
.btn-check:checked + .btn-outline-warning { background-color: var(--rb-accent); border-color: var(--rb-accent); color: var(--rb-text); }
.btn-outline-info { --bs-btn-color: var(--rb-primary); --bs-btn-border-color: var(--rb-primary); --bs-btn-hover-bg: var(--rb-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--rb-primary); --bs-btn-active-bg: var(--rb-primary); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--rb-primary); }
.btn-check:checked + .btn-outline-info { background-color: var(--rb-primary); border-color: var(--rb-primary); color: #fff; }

/* Stage badges (palette keys stored in tbl_statuses.COLOR) */
.rb-badge { display: inline-block; padding: .25em .6em; border-radius: .375rem; font-size: .75em; font-weight: 600; line-height: 1.2; }
.rb-badge-muted   { background: var(--rb-muted);   color: #fff; }
.rb-badge-primary { background: var(--rb-primary); color: #fff; }
.rb-badge-accent  { background: var(--rb-accent);  color: var(--rb-text); }
.rb-badge-success { background: var(--rb-success); color: #fff; }
.rb-badge-error   { background: var(--rb-error);   color: #fff; }

/* Collapsible filter group: shown inline from 768 px, behind a button below */
.rb-filters { gap: .5rem; flex-wrap: wrap; width: 100%; }
.rb-filters.show { display: flex; }
@media (min-width: 768px) { .rb-filters { display: contents !important; } }

/* Pills / tabs (Follow-ups page) use the brand colour, not Bootstrap blue */
.nav-pills { --bs-nav-pills-link-active-bg: var(--rb-primary); }
.nav-pills .nav-link { color: var(--rb-primary); }
.nav-pills .nav-link.active { color: #fff; background-color: var(--rb-primary); }
.nav-pills .nav-link.active .badge { color: var(--rb-primary) !important; }

/* Vertical timeline (follow-up history), one-sided: thin coloured rail with a ring node on the left, content on the right.
   Colour = what happened: red lost, green accepted, blue offer sent, amber after-sales, teal conversation, grey no contact. [CHANGED 2026-10-13] */
.rb-timeline { position: relative; }
.rb-tl-item { --c: var(--rb-primary); position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 4px; }
.rb-tl-teal { --c: var(--rb-primary); } .rb-tl-grey { --c: #8493a0; } .rb-tl-blue { --c: #2f7fc1; }
.rb-tl-green { --c: var(--rb-success); } .rb-tl-red { --c: var(--rb-error); } .rb-tl-amber { --c: var(--rb-warning); }
.rb-tl-rail { position: relative; }
.rb-tl-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); background: var(--c);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), 50% 100%, 0 calc(100% - 5px)); }
.rb-tl-item:first-child .rb-tl-rail::before { top: 12px; clip-path: polygon(50% 0, 100% 5px, 100% calc(100% - 5px), 50% 100%, 0 calc(100% - 5px), 0 5px); }
.rb-tl-item:last-child .rb-tl-rail::before { clip-path: none; }
.rb-tl-node { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff;
    border: 2px solid var(--c); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); z-index: 1; }
.rb-tl-node svg { width: 20px; height: 20px; color: var(--rb-muted); stroke-width: 1.3; }
.rb-tl-body { position: relative; padding: 2px 0 36px 12px; min-width: 0; }
.rb-tl-actions { position: absolute; top: 0; right: 0; display: flex; gap: 6px; }
.rb-tl-body:has(.rb-tl-actions) .rb-tl-head { padding-right: 78px; }
.rb-tl-body::before { content: ""; position: absolute; left: -5px; top: 10px; width: 10px; height: 34px; border: 1px solid var(--c); border-left: 0; border-radius: 0 12px 12px 0; opacity: .35; }
.rb-tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.rb-tl-date { font-size: 1.35rem; font-weight: 800; color: var(--c); line-height: 1.1; }
.rb-tl-sep { width: 1px; align-self: stretch; min-height: 16px; background: var(--c); opacity: .5; }
.rb-tl-title { font-weight: 700; font-size: .95rem; }
.rb-tl-time { font-size: .78rem; color: var(--rb-muted); margin-top: 1px; }
.rb-tl-notes { font-size: .88rem; color: var(--rb-muted); margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rb-tl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.rb-tl-next { display: flex; gap: 8px; margin-top: 8px; padding: 7px 10px; border-radius: .5rem; background: var(--rb-bg); border-left: 1px solid var(--c); font-size: .84rem; }
.rb-tl-next b { white-space: nowrap; }
@media (max-width: 575.98px) {
    .rb-tl-item { grid-template-columns: 52px 1fr; }
    .rb-tl-node { width: 40px; height: 40px; } .rb-tl-node svg { width: 18px; height: 18px; }
    .rb-tl-date { font-size: 1.2rem; }
    .rb-tl-body:has(.rb-tl-actions) .rb-tl-head { padding-right: 92px; }
}

/* ---- Accessibility helpers (2026-10-12) ---- */
.rb-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; color: var(--rb-primary); padding: .5rem .75rem; border-radius: .375rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
#content:focus { outline: none; }
/* focus ring that shows on the teal menu bar (the generic ring is teal too) */
.navbar-robateks .nav-link:focus-visible, .navbar-robateks .navbar-brand:focus-visible, .navbar-robateks .navbar-toggler:focus-visible {
    outline: 2px solid #fff; outline-offset: 2px; box-shadow: none; border-radius: .25rem;
}
.rb-text-warning { color: #8a5a00; }   /* accent-coloured text with readable contrast (6:1 on white) */
.min-w-0 { min-width: 0; }

/* ---- Home dashboard (2026-10-12): full width; main column + right rail from 1200 px ---- */
.rb-page { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 992px) { .rb-page { padding-left: 1.5rem; padding-right: 1.5rem; } }
.rb-dash-head { margin-bottom: 1rem; }
.rb-dash-head h1 { color: var(--rb-primary); }
.rb-sec-title { font-size: 1rem; font-weight: 600; color: var(--rb-text); }
.rb-sec-title .ti { color: var(--rb-primary); }

/* Phone order: attention, calendar, pipeline, money, recent, collapsed sections */
.rb-dash { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.rb-dash-main, .rb-dash-rail, .rb-dash-part, .rb-sec-more { display: contents; }
.rb-sec-attn { order: 1; } .rb-sec-cal { order: 2; } .rb-sec-pipe { order: 3; } .rb-sec-money { order: 4; } .rb-sec-recent { order: 5; } .rb-fold { order: 6; }
@media (min-width: 768px) and (max-width: 1199.98px) {
    .rb-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-sec-pipe, .rb-fold { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
    .rb-dash { grid-template-columns: minmax(0, 1fr) clamp(340px, 30%, 560px); align-items: start; }
    .rb-dash-main, .rb-dash-rail { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
}
@media (min-width: 1920px) {
    .rb-dash-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
    .rb-sec-attn, .rb-fold { grid-column: 1 / -1; }
}
.rb-dash.rb-dash-single { grid-template-columns: minmax(0, 1fr); max-width: 960px; }
.rb-dash-single .rb-dash-main { display: flex; flex-direction: column; gap: 1rem; }

/* Needs your attention */
.rb-sec-attn { border-left: 4px solid var(--rb-border); }
.rb-sec-attn.rb-state-error { border-left-color: var(--rb-error); }
.rb-sec-attn.rb-state-warning { border-left-color: var(--rb-accent); }
.rb-sec-attn.rb-state-success { border-left-color: var(--rb-success); }
.rb-attn-counts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.rb-count { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .8rem; background: #fff; border: 1px solid var(--rb-border); border-radius: .5rem; color: var(--rb-text); text-decoration: none; }
.rb-count:hover { border-color: var(--rb-primary); color: var(--rb-text); }
.rb-count-n { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.rb-count-l { font-size: .85rem; color: var(--rb-muted); }
.rb-count-error { background: #fbeceb; border-color: #f0c9c6; }
.rb-count-error .rb-count-n { color: var(--rb-error); }
.rb-count-warning { background: #fdf3e2; border-color: #f3d9a8; }
.rb-count-warning .rb-count-n { color: #8a5a00; }
.rb-attn-list, .rb-act-list { list-style: none; margin: 0; padding: 0; }
.rb-attn-row { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .5rem 0; border-top: 1px solid var(--rb-border); }
.rb-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: 0 0 auto; }
.rb-dot-error { background: var(--rb-error); }
.rb-dot-accent { background: var(--rb-accent); }
.rb-attn-actions { display: flex; gap: .4rem; flex: 0 0 auto; }
.rb-attn-actions .btn { min-height: 38px; min-width: 38px; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; }
.rb-attn-clear { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border-radius: .5rem; background: #eaf4ee; }
.rb-attn-clear > .ti { color: var(--rb-success); font-size: 1.5rem; }
.rb-link-btn { background: none; border: 0; padding: 0; color: var(--rb-text); font-weight: 600; text-align: left; cursor: pointer; }
.rb-link-btn:hover { color: var(--rb-primary); text-decoration: underline; }
.rb-link-btn:focus-visible { outline: 2px solid var(--rb-primary); outline-offset: 2px; border-radius: 2px; }

/* Pipeline strip, legend, figures */
.rb-strip { display: flex; gap: 2px; height: 1.75rem; border-radius: .375rem; overflow: hidden; margin-bottom: .5rem; }
.rb-strip-seg { display: flex; align-items: center; justify-content: center; min-width: 1.75rem; color: #fff; font-size: .8rem; font-weight: 600; }
.rb-legend { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; }
.rb-swatch { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.rb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: .75rem 0; border-top: 1px solid var(--rb-border); border-bottom: 1px solid var(--rb-border); }
.rb-stat dt { font-size: .8rem; font-weight: 400; color: var(--rb-muted); }
.rb-stat dd { margin: 0; }
.rb-stat-v { font-size: 1.35rem; font-weight: 700; }
.rb-stat-sub { display: block; font-size: .8rem; color: var(--rb-muted); }

/* Charts (Chart.js canvases need a sized box) */
.rb-chart-title { font-size: .85rem; font-weight: 600; color: var(--rb-muted); margin: 0 0 .25rem; }
.rb-chart { position: relative; width: 100%; }
.rb-chart-md { height: 190px; }
.rb-chart-sm { height: 140px; margin-bottom: .5rem; }

/* Money */
.rb-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.rb-money-item { display: flex; flex-direction: column; padding: .75rem 1rem; border: 1px solid var(--rb-border); border-radius: .5rem; color: var(--rb-text); text-decoration: none; }
.rb-money-item:hover { border-color: var(--rb-primary); color: var(--rb-text); }
.rb-money-l, .rb-money-s { font-size: .8rem; color: var(--rb-muted); }
.rb-money-v { font-size: 1.4rem; font-weight: 700; overflow-wrap: anywhere; }

/* Recent follow-ups */
.rb-act-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; min-height: 48px; padding: .5rem 0; border-top: 1px solid var(--rb-border); }

/* Expandable summaries: whole sections (.rb-fold) and "show more" lines (.rb-inline-fold) */
.rb-fold > summary, .rb-inline-fold > summary { list-style: none; cursor: pointer; }
.rb-fold > summary::-webkit-details-marker, .rb-inline-fold > summary::-webkit-details-marker { display: none; }
.rb-fold > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; min-height: 52px; padding: .75rem 1rem; }
.rb-fold-title { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.rb-fold-title .ti { color: var(--rb-primary); }
.rb-fold-line { margin-left: auto; }
.rb-inline-fold > summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-primary); font-size: .875rem; font-weight: 600; }
.rb-fold > summary::before, .rb-inline-fold > summary::before {
    content: ""; width: .45rem; height: .45rem; margin-right: .5rem; flex: 0 0 auto;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s;
}
.rb-fold > summary::before { color: var(--rb-muted); }
.rb-fold[open] > summary::before, .rb-inline-fold[open] > summary::before { transform: rotate(45deg); }
.rb-fold > summary:focus-visible, .rb-inline-fold > summary:focus-visible { outline: 2px solid var(--rb-primary); outline-offset: 2px; border-radius: .375rem; }
@media (prefers-reduced-motion: reduce) { .rb-fold > summary::before, .rb-inline-fold > summary::before { transition: none; } }

/* Sortable tables (click a header; see AppMaster) */
table[data-sortable] th.rb-sort { cursor: pointer; user-select: none; white-space: nowrap; }
table[data-sortable] th.rb-sort::after { content: "\2195"; margin-left: .35rem; color: var(--rb-border); font-size: .85em; }
table[data-sortable] th.rb-sort:hover::after { color: var(--rb-muted); }
table[data-sortable] th.rb-sort[aria-sort="ascending"]::after { content: "\25B2"; color: var(--rb-primary); }
table[data-sortable] th.rb-sort[aria-sort="descending"]::after { content: "\25BC"; color: var(--rb-primary); }

/* ---- UI review fixes, batch 1 (2026-10-12, report 10) ---- */
/* numbers: right-aligned columns use equal-width digits so amounts line up */
.rb-num { font-variant-numeric: tabular-nums; }
/* audit / lock checkboxes: 20 px instead of the browser's 13 px */
.chk-audit-row, .chk-lock-row, [id^="chk-select-all-"] { width: 1.25rem; height: 1.25rem; cursor: pointer; vertical-align: middle; }
/* phones: small buttons and in-table dropdowns get a thumb-sized target (was 30 px) */
@media (max-width: 767.98px) {
    .btn-sm, .btn-group-sm > .btn { min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; }
    .table .form-select-sm { min-height: 40px; }
}

/* ---- UI review fixes, batch 2 (2026-10-12, report 10) ---- */
/* page width: list pages use the screen (up to 1600 px) instead of Bootstrap's 1140/1320 column; edges line up with the menu */
main#content .container { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }   /* full width, same side space as the menu bar */
@media (min-width: 992px) { main#content .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1200px) { main#content .container { max-width: 1600px; } }
/* tables that become stacked rows on phones: cells flow in two columns, the last cell (actions) takes a full line */
@media (max-width: 767.98px) {
    .rb-stack-sm thead { display: none; }
    .rb-stack-sm tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; padding: .75rem; border-bottom: 1px solid var(--rb-border); }
    .rb-stack-sm tbody td { display: block; border: 0; padding: 0; }
    .rb-stack-sm tbody td:last-child { grid-column: 1 / -1; text-align: left !important; white-space: normal !important; padding-top: .35rem; }
    .rb-stack-sm tbody td:last-child .btn { margin-bottom: .25rem; }
}

/* ---- UI review fixes, batch 3 (2026-10-12, report 10) ---- */
/* one page header everywhere: title left, search / main button right */
.rb-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 0 1.25rem; }
.rb-page-title { margin: 0 auto 0 0; font-size: 1.75rem; font-weight: 600; color: var(--rb-primary); line-height: 1.2; }
.rb-page-search { width: 16rem; max-width: 100%; }
@media (max-width: 575.98px) { .rb-page-search { order: 3; width: 100%; } }
/* drag handle (SortableJS lists) */
.rb-drag { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; margin-right: .35rem; color: var(--rb-muted); cursor: grab; border-radius: .25rem; vertical-align: middle; touch-action: none; }
.rb-drag:hover { color: var(--rb-primary); background: var(--rb-bg); }
.rb-drag-ghost { opacity: .5; background: #e6f0f3 !important; }
/* jump links at the top of a long page */
.rb-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-jump a { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .75rem; border: 1px solid var(--rb-border); border-radius: 999px; background: #fff; color: var(--rb-primary); text-decoration: none; font-size: .875rem; }
.rb-jump a:hover, .rb-jump a:focus-visible { border-color: var(--rb-primary); }
[id^="lk-sec-"] { scroll-margin-top: 1rem; }
/* phone cards: column name above each value (filled by the AppMaster helper), not for the actions cell */
@media (max-width: 767.98px) {
    .rb-stack-sm tbody td[data-label]:not(:last-child)::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--rb-muted); text-transform: none; }
    .rb-stack-sm tbody td:empty { display: none; }
    .rb-stack-sm tbody td { box-shadow: none !important; background: transparent !important; text-align: left !important; }   /* no striped blocks, values read left to right */
    .rb-stack-sm.table-striped tbody tr:nth-of-type(odd) { background: var(--rb-bg); }
}

/* ---- Large selects/inputs keep the thumb-sized height but not the 20 px text (2026-10-13) ---- */
.form-select-lg, .form-control-lg { font-size: 1rem; min-height: 46px; }

/* ---- Folded "More options" block in forms (2026-10-13) ---- */
.rb-more { border: 1px solid var(--rb-border); border-radius: .5rem; padding: .5rem .75rem; background: #fff; }
.rb-more > summary { cursor: pointer; font-weight: 600; color: var(--rb-primary); min-height: 32px; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rb-more[open] > summary { margin-bottom: .25rem; }

/* ---- Contact page / workspace (UX step 2, 2026-10-13) ---- */
.rb-ws { padding-top: .75rem; padding-bottom: 2rem; }
.rb-ws-back { color: var(--rb-primary); text-decoration: none; display: inline-flex; align-items: center; gap: .25rem; min-height: 32px; }
.rb-ws-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 1.25rem; margin: .25rem 0 1rem; }
.rb-ws-name { font-size: 1.6rem; font-weight: 800; color: var(--rb-primary); margin: 0; line-height: 1.2; }
.rb-ws-name .rb-badge { font-size: .72rem; vertical-align: middle; }
.rb-ws-sub { color: var(--rb-muted); font-size: .92rem; margin-top: .25rem; overflow-wrap: anywhere; }
.rb-ws-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rb-steps { list-style: none; display: flex; margin: 0 0 1rem; padding: .9rem .5rem; background: #fff; border: 1px solid var(--rb-border); border-radius: .75rem; }
.rb-step { flex: 1 1 0; min-width: 0; position: relative; text-align: center; font-size: .78rem; color: var(--rb-muted); }
.rb-step::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--rb-border); }
.rb-step:first-child::before { display: none; }
.rb-step-dot { position: relative; z-index: 1; width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid var(--rb-border); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; }
.rb-step-dot svg { width: 14px; height: 14px; }
.rb-step-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.rb-step-done { color: var(--rb-text); } .rb-step-done::before, .rb-step-now::before { background: var(--rb-primary); }
.rb-step-done .rb-step-dot { background: var(--rb-primary); border-color: var(--rb-primary); color: #fff; }
.rb-step-now { color: var(--rb-primary); font-weight: 800; }
.rb-step-now .rb-step-dot { border-color: var(--rb-primary); color: var(--rb-primary); box-shadow: 0 0 0 4px #dff0f4; }
.rb-step-lost { color: var(--rb-error); font-weight: 800; } .rb-step-lost .rb-step-dot { background: var(--rb-error); border-color: var(--rb-error); color: #fff; }
.rb-ws-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.rb-ws-card { background: #fff; border: 1px solid var(--rb-border); border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
.rb-ws-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--rb-muted); margin: 0 0 .6rem; font-weight: 700; }
.rb-ws-next { border-color: #bfe0e8; background: linear-gradient(180deg, #f2fafc, #fff); }
.rb-ws-next-title { font-size: 1.05rem; font-weight: 800; color: var(--rb-primary); }
.rb-ws-next-text { color: var(--rb-muted); font-size: .88rem; margin: .25rem 0 .75rem; }
.rb-ws-also { margin-top: .9rem; border-top: 1px solid var(--rb-border); padding-top: .6rem; }
.rb-ws-also ul { margin: 0; padding-left: 1.1rem; font-size: .86rem; } .rb-ws-also li { margin-bottom: .25rem; }
.rb-ws-money { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rb-ws-m { background: var(--rb-bg); border-radius: .5rem; padding: .5rem .65rem; }
.rb-ws-m span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rb-muted); }
.rb-ws-m b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rb-ws-m small { color: var(--rb-muted); font-size: .72rem; }
.rb-ws-owed b { color: var(--rb-error); }
.rb-ws-bar { height: 6px; border-radius: 4px; background: var(--rb-border); margin-top: .65rem; overflow: hidden; } .rb-ws-bar i { display: block; height: 100%; background: var(--rb-success); }
.rb-ws-dl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: .35rem .75rem; margin: 0; font-size: .88rem; }
.rb-ws-dl dt { color: var(--rb-muted); font-weight: 500; } .rb-ws-dl dd { margin: 0; overflow-wrap: anywhere; }
.rb-ws-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.rb-chip { border: 1px solid var(--rb-border); background: #fff; color: var(--rb-muted); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; min-height: 32px; }
.rb-chip span { opacity: .7; font-size: .75rem; } .rb-chip.on { background: var(--rb-primary); border-color: var(--rb-primary); color: #fff; }
.rb-tl-kind { font-weight: 700; color: var(--c); text-transform: uppercase; font-size: .68rem; letter-spacing: .05em; }
@media (max-width: 991.98px) {
    .rb-ws-grid { grid-template-columns: 1fr; }
    .rb-ws-side { display: contents; }
    .rb-ws-next { order: 1; } .rb-ws-main { order: 2; } #ws-money { order: 3; } #ws-details { order: 4; } .rb-ws-side > section:last-child { order: 5; }
}
@media (max-width: 575.98px) {
    .rb-ws-name { font-size: 1.3rem; }
    .rb-step { font-size: .6rem; }
    .rb-step-label { white-space: normal; line-height: 1.15; }
}
.rb-row-link { color: inherit; text-decoration: none; } .rb-row-link:hover, .rb-row-link:focus { color: var(--rb-primary); text-decoration: underline; }

/* ---- My day + deal board (UX step 3, 2026-10-13) ---- */
.rb-md-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: 1rem; }
.rb-md-month { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.rb-md-m { background: #fff; border: 1px solid var(--rb-border); border-radius: .75rem; padding: .6rem .8rem; }
.rb-md-m span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rb-muted); }
.rb-md-m b { font-size: 1.2rem; font-variant-numeric: tabular-nums; } .rb-md-m small { color: var(--rb-muted); font-weight: 400; font-size: .72rem; }
.rb-md-group { margin-bottom: 1.5rem; }
.rb-md-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--rb-muted); margin: 0 0 .35rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.rb-md-overdue .rb-md-h { color: var(--rb-error); }
.rb-md-count { background: var(--rb-bg); border: 1px solid var(--rb-border); border-radius: 999px; padding: 0 .5rem; font-size: .72rem; color: var(--rb-text); }
.rb-md-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .6rem; }
.rb-md-card { --c: var(--rb-primary); display: flex; gap: .75rem; background: #fff; border: 1px solid var(--rb-border); border-left: 3px solid var(--c); border-radius: .75rem; padding: .75rem .85rem; }
.rb-md-urgent { box-shadow: 0 0 0 1px rgba(179, 38, 30, .15); }
.rb-md-ic { flex: 0 0 36px; height: 36px; border-radius: 50%; border: 2px solid var(--c); display: flex; align-items: center; justify-content: center; color: var(--rb-muted); }
.rb-md-ic svg { width: 18px; height: 18px; }
.rb-md-body { min-width: 0; flex: 1; }
.rb-md-title { font-weight: 800; color: var(--c); line-height: 1.25; }
.rb-md-who { font-size: .9rem; margin-top: .1rem; overflow-wrap: anywhere; }
.rb-md-text { font-size: .82rem; color: var(--rb-muted); margin-top: .15rem; }
.rb-md-acts { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.rb-md-empty { display: flex; gap: .75rem; align-items: center; background: #fff; border: 1px solid var(--rb-border); border-radius: .75rem; padding: 1.25rem; color: var(--rb-success); }
.rb-md-empty svg { width: 32px; height: 32px; }
.rb-db-search { max-width: 260px; }
.rb-db-board { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; }
.rb-db-col { flex: 0 0 260px; background: #eef2f3; border-radius: .75rem; padding: .5rem; max-height: calc(100vh - 230px); display: flex; flex-direction: column; }
.rb-db-colh { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .25rem .35rem .5rem; font-size: .88rem; }
.rb-db-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; padding: 0; }
.rb-db-n { margin-left: auto; color: var(--rb-muted); font-weight: 600; }
.rb-db-sum { flex-basis: 100%; font-size: .75rem; color: var(--rb-muted); min-height: 1em; }
.rb-db-cards { overflow-y: auto; min-height: 60px; display: flex; flex-direction: column; gap: .45rem; padding: 2px; }
.rb-db-card { background: #fff; border: 1px solid var(--rb-border); border-radius: .6rem; padding: .55rem .65rem; font-size: .82rem; }
.rb-db-card[data-move="1"] { cursor: grab; }
.rb-db-stuck { border-left: 3px solid var(--rb-error); }
.rb-db-top { display: flex; justify-content: space-between; gap: .35rem; align-items: flex-start; }
.rb-db-name { font-weight: 700; color: var(--rb-text); text-decoration: none; font-size: .88rem; overflow-wrap: anywhere; } .rb-db-name:hover { color: var(--rb-primary); text-decoration: underline; }
.rb-db-person, .rb-db-next, .rb-db-owner { color: var(--rb-muted); }
.rb-db-meta { display: flex; justify-content: space-between; margin-top: .25rem; font-variant-numeric: tabular-nums; } .rb-db-meta span { color: var(--rb-muted); }
.rb-db-flag { color: var(--rb-error); font-weight: 600; margin-top: .2rem; }
.rb-db-more { color: var(--rb-muted); min-width: 28px; min-height: 28px; }
.sortable-ghost { opacity: .4; }
@media (max-width: 767.98px) {
    .rb-md-month { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-md-list { grid-template-columns: 1fr; }
    .rb-db-col { flex-basis: 82vw; max-height: none; }
}

/* [CHANGED 2026-10-13] UX step 4 - capture page (Capture.php) + dashboard head with the capture button */
.rb-dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.rb-cap { max-width: 640px; padding-bottom: 1rem; }
.rb-cap-banner { display: flex; align-items: center; gap: .75rem; background: var(--rb-primary); color: #fff; border-radius: .75rem; padding: .75rem 1rem; margin-bottom: 1rem; }
.rb-cap-for { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.rb-cap-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.rb-cap-ev { font-size: 1.15rem; font-weight: 600; line-height: 1.25; cursor: pointer; overflow-wrap: anywhere; }
.rb-cap-tally { font-size: .85rem; opacity: .9; }
.rb-cap-banner .btn-light { flex: 0 0 auto; }
.rb-cap-queue { border: 1px solid var(--rb-accent); background: #fff8ec; border-radius: .75rem; padding: .75rem 1rem; margin-bottom: 1rem; }
.rb-cap-queue-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-bottom: .25rem; }
.rb-cap-queue-list { list-style: none; padding: 0; margin: 0 0 .25rem; }
.rb-cap-queue-list li { padding: .25rem 0; border-bottom: 1px dashed var(--rb-border); }
.rb-cap-form { background: #fff; border: 1px solid var(--rb-border); border-radius: .75rem; padding: 1rem; }
.rb-cap-form .form-control-lg, .rb-cap-form .form-select-lg { font-size: 1rem; }
.rb-cap-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-cap-chips .btn { min-height: 44px; flex: 1 1 auto; }
.rb-cap-photo-btn { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.rb-cap-photo { display: flex; align-items: flex-start; gap: .75rem; }
.rb-cap-photo img { max-width: 160px; max-height: 120px; border-radius: .5rem; border: 1px solid var(--rb-border); object-fit: cover; }
.rb-cap-dup { margin-top: .75rem; border: 1px solid var(--rb-accent); background: #fff8ec; border-radius: .5rem; padding: .5rem .75rem; }
.rb-cap-dup-h { font-weight: 600; color: #8a5a00; margin-bottom: .25rem; display: flex; align-items: center; gap: .35rem; }
.rb-cap-dup-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-top: 1px solid #f1e2c6; }
.rb-cap-dup-act { display: flex; gap: .35rem; flex-wrap: wrap; }
.rb-cap-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; position: sticky; bottom: 0; background: #fff; padding: .75rem 0 .25rem; border-top: 1px solid var(--rb-border); z-index: 5; }
.rb-cap-actions .btn { flex: 1 1 0; padding-left: .5rem; padding-right: .5rem; line-height: 1.2; }
.rb-cap-actions .btn-primary { flex-grow: 1.4; }
.rb-cap-actions .btn-outline-primary { white-space: nowrap; }
.rb-cap-recent { margin-top: 1.25rem; }
.rb-cap-recent-list { list-style: none; padding: 0; margin: 0; }
.rb-cap-recent-list li { padding: .5rem 0; border-bottom: 1px solid var(--rb-border); }
.rb-cap-newev { border: 1px solid var(--rb-border); border-radius: .5rem; padding: .75rem; background: var(--rb-bg); }
#cap-ev-list .list-group-item { cursor: pointer; }
.rb-cap-form legend { font-size: 1rem; }
main#content .container.rb-cap { max-width: 680px; }
.rb-cap .btn-outline-primary { --bs-btn-color: var(--rb-primary); --bs-btn-border-color: var(--rb-primary); --bs-btn-hover-bg: var(--rb-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--rb-primary); --bs-btn-active-bg: var(--rb-primary); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--rb-primary); }
.rb-cap .btn-check:checked + .btn-outline-primary { background-color: var(--rb-primary); border-color: var(--rb-primary); color: #fff; }
.rb-cap .btn-link { color: var(--rb-primary); }
/* [CHANGED 2026-10-13] UX polish: outline primary buttons and links in brand teal everywhere (Bootstrap blue before) */
.btn-outline-primary { --bs-btn-color: var(--rb-primary); --bs-btn-border-color: var(--rb-primary); --bs-btn-hover-bg: var(--rb-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--rb-primary); --bs-btn-active-bg: var(--rb-primary); --bs-btn-active-color: #fff; --bs-btn-active-border-color: var(--rb-primary); --bs-btn-disabled-color: var(--rb-primary); --bs-btn-disabled-border-color: var(--rb-primary); }
.btn-check:checked + .btn-outline-primary { background-color: var(--rb-primary); border-color: var(--rb-primary); color: #fff; }
.nav-pills .nav-link.active { background-color: var(--rb-primary); }
.nav-pills .nav-link { color: var(--rb-primary); }
.form-check-input:checked { background-color: var(--rb-primary); border-color: var(--rb-primary); }
.rb-page-head .btn { white-space: nowrap; }
/* [CHANGED 2026-10-14] wizards (New offer, Close the deal) */
.rb-wz-steps { list-style: none; display: flex; gap: .25rem; padding: 0; margin: .5rem 0 0; counter-reset: none; }
.rb-wz-steps li { flex: 1 1 0; display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--rb-muted); padding-top: .45rem; border-top: 3px solid var(--rb-border); transition: border-color 250ms, color 250ms; min-width: 0; }
.rb-wz-steps li span { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; background: var(--rb-border); color: var(--rb-text); transition: background-color 250ms, color 250ms; }
.rb-wz-steps li.is-on { color: var(--rb-primary); font-weight: 600; border-top-color: var(--rb-primary); }
.rb-wz-steps li.is-on span, .rb-wz-steps li.is-done span { background: var(--rb-primary); color: #fff; }
.rb-wz-steps li.is-done { border-top-color: var(--rb-primary); color: var(--rb-text); }
@media (max-width: 575.98px) { .rb-wz-steps li { font-size: 0; gap: 0; justify-content: center; } .rb-wz-steps li span { font-size: .72rem; } }
.rb-wz-step:not(.d-none) { animation: rb-wz-in 220ms cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes rb-wz-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.rb-wz-line { border: 1px solid var(--rb-border); border-radius: .6rem; padding: .6rem; margin-bottom: .5rem; background: #fff; }
.rb-wz-total { background: var(--rb-bg); border: 1px solid var(--rb-border); border-radius: .6rem; padding: .75rem 1rem; display: grid; gap: .25rem; }
.rb-wz-total-big { font-size: 1.15rem; font-weight: 700; color: var(--rb-primary); border-top: 1px solid var(--rb-border); padding-top: .35rem; margin-top: .15rem; }
.rb-wz-preview { border: 1px solid var(--rb-border); border-radius: .6rem; overflow: hidden; background: #e9eef0; height: min(60vh, 560px); }
.rb-wz-preview iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.rb-wz-send { display: flex; flex-wrap: wrap; gap: .5rem; }
.rb-wz-send .btn { min-height: 44px; }
.rb-wz-pick { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border: 1px solid var(--rb-border); border-radius: .6rem; margin-bottom: .4rem; cursor: pointer; background: #fff; }
.rb-wz-pick.is-on, .rb-wz-pick:has(input:checked) { border-color: var(--rb-primary); background: rgba(19, 99, 123, .05); }
.rb-wz-pick .rb-num { margin-left: auto; font-weight: 600; }
.rb-wz-done { display: flex; gap: 1rem; align-items: flex-start; padding: .5rem 0; }
.rb-wz-done-ic { font-size: 2.6rem; color: var(--rb-success); line-height: 1; }
.rb-wz-done-ic .ti { stroke-dasharray: 64; animation: rb-wz-draw 700ms 150ms cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes rb-wz-draw { from { stroke-dashoffset: 64; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .rb-wz-step:not(.d-none), .rb-wz-done-ic .ti { animation: none; } }

/* [CHANGED 2026-10-14] UX step 5 - Business pulse (Pulse.php). Bars are plain HTML; every bar also prints its number. */
.rb-pl { max-width: 1600px; margin-inline: auto; }
.rb-pl-period .btn.active { background: var(--rb-primary); color: #fff; }
.rb-pl-nums { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.rb-pl-nums .rb-md-m b, .rb-pl-nums .rb-md-m strong { display: block; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rb-pl-nums .rb-md-m strong { font-size: 1.2rem; }
.rb-pl-nums .rb-md-m small { font-size: .72rem; }
.rb-pl-sub { font-size: .75rem; color: var(--rb-muted); margin-top: .1rem; }
.rb-pl-d { font-size: .75rem; font-weight: 600; color: var(--rb-muted); }
.rb-pl-d.up { color: var(--rb-success); } .rb-pl-d.down { color: var(--rb-error); }
.rb-pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.rb-pl-card .card-body { padding: 1rem 1.1rem; }
.rb-pl-row { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) 9.5rem; align-items: center; gap: .6rem; padding: .3rem 0; }
.rb-pl-rl { min-width: 0; overflow-wrap: anywhere; }
.rb-pl-cl { display: block; }
.rb-pl-rv { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-pl-bar { height: .85rem; background: var(--rb-bg); border: 1px solid var(--rb-border); border-radius: 999px; overflow: hidden; }
.rb-pl-bar > span { display: block; height: 100%; border-radius: 999px; }
.rb-pl-worst .rb-pl-rl b { color: var(--rb-error); }
.rb-pl-cur { margin-bottom: .9rem; }
.rb-pl-curh, .rb-pl-h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rb-muted); font-weight: 700; margin: 0 0 .25rem; }
.rb-pl-h2 { margin-top: 1rem; }
.rb-pl-stack { display: flex; height: 1.1rem; border-radius: 999px; overflow: hidden; background: var(--rb-bg); border: 1px solid var(--rb-border); }
.rb-pl-stack > span { display: block; height: 100%; }
.rb-pl-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .8rem; margin-top: .35rem; }
.rb-pl-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .3rem; }
.rb-pl-list { list-style: none; margin: 0; padding: 0; }
.rb-pl-it { display: flex; gap: .65rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--rb-border); }
.rb-pl-it:first-child { border-top: 0; }
.rb-pl-ic { flex: 0 0 auto; color: var(--rb-primary); margin-top: .1rem; }
.rb-pl-k-invoice .rb-pl-ic, .rb-pl-k-offer .rb-pl-ic { color: var(--rb-error); } .rb-pl-k-stuck .rb-pl-ic { color: var(--rb-warning); }
.rb-pl-evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .6rem; }
.rb-pl-ev { border: 1px solid var(--rb-border); border-radius: .75rem; padding: .7rem .85rem; background: #fff; }
.rb-pl-off { opacity: .65; }
.rb-pl-evh { margin-bottom: .45rem; }
.rb-pl-kvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .4rem .75rem; }
.rb-pl-kv span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rb-muted); }
.rb-pl-kv b { font-size: .95rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .rb-pl-kv small { color: var(--rb-muted); font-weight: 400; }
.rb-pl-tbar { margin-top: .6rem; height: .6rem; }
.rb-pl-lab { min-width: 6.5rem; max-width: 45%; text-align: left; white-space: normal; background: var(--rb-bg); }
@media (max-width: 1199.98px) { .rb-pl-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .rb-pl-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .rb-pl-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rb-pl-row { grid-template-columns: minmax(0, 1fr) auto; }
    .rb-pl-row .rb-pl-bar { grid-column: 1 / -1; grid-row: 2; }
    .rb-pl-period { width: 100%; } .rb-pl-period .btn { flex: 1 1 0; }
}


/* [CHANGED 2026-10-15] Guide: now the GuidePanel lib (Plugins/GuidePanel); its Robateks variables are mapped in tour.css (it loads after the lib). */

/* ---------- [CHANGED 2026-10-14] My day: colour per type (card) and per group (overdue / today / to do / coming up) ---------- */
.rb-md-overdue { --g: var(--rb-error); } .rb-md-today { --g: #a8680a; } .rb-md-todo { --g: var(--rb-primary); } .rb-md-later { --g: #2f7fc1; }
.rb-md-h { color: var(--g); }
.rb-md-overdue .rb-md-h, .rb-md-today .rb-md-h { color: var(--g); }
.rb-md-dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--g); display: inline-block; flex: 0 0 auto; }
.rb-md-count { background: color-mix(in srgb, var(--g) 12%, #fff); border-color: color-mix(in srgb, var(--g) 35%, #fff); color: var(--g); font-weight: 700; }
.rb-md-list { border-top: 2px solid color-mix(in srgb, var(--g) 30%, #fff); padding-top: .6rem; }
.rb-md-none .rb-md-h { margin-bottom: .2rem; }
.rb-md-card { position: relative; overflow: hidden; border-left-width: 1px; background: color-mix(in srgb, var(--c) 6%, #fff); }
.rb-md-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.rb-md-ic { background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c); }
.rb-md-title { color: color-mix(in srgb, var(--c) 75%, #000); }
.rb-md-kind { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, #000); background: color-mix(in srgb, var(--c) 14%, #fff); border-radius: 999px; padding: 0 .5rem; margin-bottom: .2rem; }
.rb-md-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1rem; font-size: .78rem; color: var(--rb-muted); }
.rb-md-lg { display: inline-flex; align-items: center; gap: .35rem; }
.rb-md-lg i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c); display: inline-block; }
/* the card's own --c default (above) came later than the .rb-tl-* colours and hid them: the type colour now wins */
.rb-md-card.rb-tl-teal, .rb-md-lg.rb-tl-teal { --c: var(--rb-primary); } .rb-md-card.rb-tl-grey, .rb-md-lg.rb-tl-grey { --c: #8493a0; } .rb-md-card.rb-tl-blue, .rb-md-lg.rb-tl-blue { --c: #2f7fc1; }
.rb-md-card.rb-tl-green, .rb-md-lg.rb-tl-green { --c: var(--rb-success); } .rb-md-card.rb-tl-red, .rb-md-lg.rb-tl-red { --c: var(--rb-error); } .rb-md-card.rb-tl-amber, .rb-md-lg.rb-tl-amber { --c: var(--rb-warning); }
.rb-tl-violet { --c: #6b4fbb; } .rb-md-card.rb-tl-violet, .rb-md-lg.rb-tl-violet { --c: #6b4fbb; }   /* meetings: apart from the teal follow-ups */
.rb-md-card[data-open] { cursor: pointer; }
.rb-md-card[data-open]:hover { border-color: color-mix(in srgb, var(--c) 45%, #fff); }

/* ---------- [CHANGED 2026-10-14] follow-up channel colours (follow-ups window): call teal, WhatsApp green, e-mail blue, meeting violet, visit amber ---------- */
.rb-ch-call { --ch: var(--rb-primary); } .rb-ch-wa { --ch: #1a8f4a; } .rb-ch-mail { --ch: #2f7fc1; } .rb-ch-meet { --ch: #6b4fbb; } .rb-ch-visit { --ch: #a8680a; } .rb-ch-other { --ch: #5b6b72; }
.rb-tl-item[class*="rb-ch-"] .rb-tl-node { background: color-mix(in srgb, var(--ch) 14%, #fff); }
.rb-tl-item[class*="rb-ch-"] .rb-tl-node svg { color: var(--ch); stroke-width: 1.6; }
.rb-tl-item[class*="rb-ch-"] .rb-tl-badges .rb-badge-muted { background: color-mix(in srgb, var(--ch) 14%, #fff); color: color-mix(in srgb, var(--ch) 80%, #000); border-color: color-mix(in srgb, var(--ch) 35%, #fff); font-weight: 700; }

/* [CHANGED 2026-10-14] no sideways jump of the header between pages with and without a scrollbar */
html { scrollbar-gutter: stable; }
