@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* ==========================================================================
   CCRM — "The Bridge" design language

   Ports the visual system from the TheBridge_Design app onto this legacy
   Metronic 4 / Bootstrap 3 theme. Tokens below were read off the running
   Bridge app (src/index.css @theme + computed styles), not eyeballed:

     surface        #F8FAFC      on-surface        #0F172A
     accent         #3B82F6      on-surface-variant #64748B
     primary        #0F172A      outline-variant   #E2E8F0
     cards          white, 16px radius, hairline border, soft shadow
     headings       Poppins 900, letter-spacing -0.6px
     buttons        pill, 10px / 900 / uppercase / 1px tracking
     micro labels   uppercase, 900, wide tracking

   Loaded as the LAST stylesheet in <head>, after custom.min.css, so it wins
   on equal specificity. It only restyles existing theme classes; no markup
   was changed, so removing the <link> restores the original look exactly.
   ========================================================================== */

:root {
    --br-font: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;

    /* Bridge @theme tokens, re-pointed at the Calvatis brand blue.
       --br-navy is sampled from the logo wordmark (assets/logo.png). */
    --br-navy: #00457c;
    --br-navy-deep: #00365f;
    --br-navy-soft: #0a5390;
    --br-primary: #00457c;
    --br-primary-container: #0a5390;
    --br-accent: #0b63ae;
    --br-accent-hover: #00457c;
    /* Canvas is pulled down from Bridge's #F8FAFC so white cards read as
       distinctly raised rather than melting into the page. */
    --br-surface: #f7f9fc;
    --br-surface-lowest: #ffffff;
    --br-surface-low: #eaf1f9;
    --br-surface-high: #e6edf5;
    --br-on-surface: #0f172a;
    --br-on-surface-variant: #55657a;
    --br-outline-variant: #c2d3e5;
    --br-error: #ef4444;

    /* Derived tints */
    --br-accent-05: rgba(11, 99, 174, .06);
    --br-accent-10: rgba(11, 99, 174, .12);
    --br-accent-20: rgba(11, 99, 174, .24);
    --br-hairline: #cbd9e8;

    /* Status */
    --br-emerald: #059669;
    --br-amber: #d97706;
    --br-rose: #e11d48;
    /* client status palette: Active green, Inactive red, Re-engaged orange, Closed black — used everywhere */
    --br-st-active: #059669;
    --br-st-inactive: #e11d48;
    --br-st-reengaged: #f97316;
    --br-st-closed: #111827;
    --br-indigo: #4f46e5;

    /* Shape — generously rounded throughout */
    --br-radius: 28px;
    --br-radius-lg: 34px;
    --br-radius-sm: 18px;
    --br-radius-pill: 9999px;

    /* Elevation — deepened so cards lift clearly off the tinted canvas */
    --br-shadow: 0 2px 6px -1px rgba(15, 23, 42, .09), 0 1px 3px -1px rgba(15, 23, 42, .07);
    --br-shadow-md: 0 12px 22px -8px rgba(15, 23, 42, .16), 0 4px 10px -4px rgba(15, 23, 42, .10);
    --br-shadow-lg: 0 22px 30px -8px rgba(15, 23, 42, .18), 0 10px 14px -8px rgba(15, 23, 42, .12);
    --br-shadow-accent: 0 4px 10px -2px rgba(0, 69, 124, .35), 0 2px 5px -2px rgba(0, 69, 124, .3);

    /* Layout metrics */
    --br-header-h: 60px;
    --br-sidebar-w: 84px;    /* the module rail; menus open as popups */
}

/* --------------------------------------------------------------------------
   0. Flex clearfix reset

   The theme clearfixes its rows with `:before/:after { content:" "; display:table }`.
   Those pseudo-elements become real flex items in any container switched to
   `display:flex`, silently pushing real content out of alignment (a lone card
   title ends up centred). Neutralise them wherever we use flex.
   -------------------------------------------------------------------------- */

.portlet.light > .portlet-title:before,
.portlet.light > .portlet-title:after,
.portlet.light > .portlet-title > .caption:before,
.portlet.light > .portlet-title > .caption:after,
.page-bar:before,
.page-bar:after,
.page-bar .page-breadcrumb:before,
.page-bar .page-breadcrumb:after,
.nav-tabs:before,
.nav-tabs:after,
.page-header.navbar .page-logo:before,
.page-header.navbar .page-logo:after,
.timeline > li > .timeline-item > .timeline-footer:before,
.timeline > li > .timeline-item > .timeline-footer:after {
    content: none !important;
    display: none !important;
}

/* --------------------------------------------------------------------------
   0. Page-to-page motion
   Every navigation is a full document load. Cross-document view transitions
   crossfade the two documents; the header and sidebar are named so they hold
   still while the content changes underneath. Prefetch and the progress bar
   live in js/ccrm-nav.js.
   -------------------------------------------------------------------------- */
@view-transition { navigation: auto; }

::view-transition-group(*) {
    animation-duration: 220ms;
    animation-timing-function: cubic-bezier(.2, 0, 0, 1);
}
::view-transition-old(root) { animation: 160ms cubic-bezier(.4, 0, 1, 1) both ccrm-vt-out; }
::view-transition-new(root) { animation: 260ms cubic-bezier(.2, 0, 0, 1) both ccrm-vt-in; }
@keyframes ccrm-vt-out { to { opacity: 0; } }
@keyframes ccrm-vt-in { from { opacity: 0; transform: translateY(6px); } }

/* chrome that stays put between pages */
.page-header.navbar { view-transition-name: ccrm-header; }
.page-sidebar { view-transition-name: ccrm-sidebar; }
::view-transition-old(ccrm-header), ::view-transition-old(ccrm-sidebar) { animation: none; opacity: 0; }
::view-transition-new(ccrm-header), ::view-transition-new(ccrm-sidebar) { animation: none; }

/* browsers without view transitions still get a soft entrance */
@supports not (view-transition-name: x) {
    .page-content-wrapper .page-content, body.ccrm-standalone > .ccrm-drawer-body, body.ccrm-login .ccrm-login__card {
        animation: 240ms cubic-bezier(.2, 0, 0, 1) both ccrm-vt-in;
    }
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* progress bar shown from the click until the next page paints */
.ccrm-navbar {
    position: fixed; top: 0; left: 0; z-index: 100000;
    height: 3px; width: 0; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--br-accent), #7cc4ff);
    box-shadow: 0 0 10px rgba(11, 99, 174, .6);
    border-radius: 0 3px 3px 0 !important;
    transition: opacity 180ms ease;
}
.ccrm-navbar.is-on { opacity: 1; animation: ccrm-navbar-grow 6s cubic-bezier(.1, .7, .2, 1) forwards; }
.ccrm-navbar.is-done { width: 100% !important; animation: none; opacity: 0; transition: width 120ms ease, opacity 260ms ease 80ms; }
@keyframes ccrm-navbar-grow { 0% { width: 0; } 20% { width: 45%; } 60% { width: 78%; } 100% { width: 92%; } }
html.ccrm-leaving { cursor: progress; }

/* --------------------------------------------------------------------------
   1. Base & typography
   -------------------------------------------------------------------------- */

body {
    font-family: var(--br-font);
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: -.011em;
    color: var(--br-on-surface);
    background: var(--br-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.btn, .form-control, .page-title, .caption-subject,
input, select, textarea, button, .badge, .label {
    font-family: var(--br-font);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--br-on-surface);
    font-weight: 700;
    letter-spacing: -.025em;
}

a { color: var(--br-accent); transition: color .2s ease; }
a:hover, a:focus { color: var(--br-accent-hover); text-decoration: none; }

/* --------------------------------------------------------------------------
   2. Page shell
   -------------------------------------------------------------------------- */

body.page-header-fixed { padding-top: var(--br-header-h) !important; }

/* The theme offsets .page-container by the old header height on top of the
   body padding-top, double-counting it. We already reserve the header space
   with body.page-header-fixed, so zero the duplicate. */
.page-container { background: var(--br-surface); }
body.page-header-fixed .page-container { margin-top: 0 !important; }

.page-content-wrapper .page-content,
body.page-content-white .page-content {
    background: var(--br-surface) !important;
    padding: 20px 32px 48px !important;
    margin-left: var(--br-sidebar-w);
    min-height: calc(100vh - var(--br-header-h)) !important;
}

.page-sidebar-closed .page-content-wrapper .page-content,
body.page-sidebar-closed.page-content-white .page-content {
    margin-left: 45px !important;
}

/* --------------------------------------------------------------------------
   3. Header — Calvatis brand blue, continuous with the sidebar
   -------------------------------------------------------------------------- */

.page-header.navbar {
    background: var(--br-navy) !important;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0, 54, 95, .25);
    height: var(--br-header-h);
    min-height: var(--br-header-h);
    filter: none;
}

/* Logo sits left, sidebar toggler pinned to the right edge of the logo column
   so it lines up with the sidebar rather than crowding the wordmark. */
.page-header.navbar .page-logo {
    background: transparent !important;
    width: var(--br-sidebar-w);
    height: var(--br-header-h);
    padding: 0 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.page-header.navbar .page-logo > a {
    display: flex;
    align-items: center;
    height: 100%;
    flex: 0 1 auto;
    min-width: 0;
}

/* The wordmark is 707x353 (2:1). Drive height only and let width follow —
   setting both squashed it to 3.6:1. `width:auto` also beats the width="100"
   attribute in the markup. */
.page-header.navbar .page-logo img.logo-default {
    margin: 0 !important;
    height: 46px;
    width: auto !important;
    max-width: none;
    opacity: 1;
    transition: opacity .25s ease;
}

.page-header.navbar .page-logo > a:hover img.logo-default { opacity: 1; }

.page-header.navbar .menu-toggler.responsive-toggler {
    opacity: .5;
    transition: opacity .2s ease;
}

.page-header.navbar .menu-toggler.responsive-toggler:hover { opacity: 1; }

.page-header.navbar .top-menu { margin: 0; }

.page-header.navbar .top-menu .navbar-nav {
    display: flex;
    align-items: center;
    height: var(--br-header-h);
    padding-right: 10px;
}

/* Bridge header controls, translated to the blue chrome.
   Float is cleared so the <li>s behave as flex items and share one height. */
.page-header.navbar .top-menu .navbar-nav > li {
    float: none !important;
    display: flex;
    align-items: center;
    height: auto;
}

.page-header.navbar .top-menu .navbar-nav > li.dropdown > .dropdown-toggle {
    padding: 0 16px;
    margin: 0 0 0 10px;
    height: 42px;
    min-width: 42px;
    justify-content: center;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--br-radius-pill) !important;
    transition: background .2s ease;
}

.page-header.navbar .top-menu .navbar-nav > li.dropdown > .dropdown-toggle:hover,
.page-header.navbar .top-menu .navbar-nav > li.dropdown.open > .dropdown-toggle {
    background: rgba(255, 255, 255, .22) !important;
}

.page-header.navbar .top-menu .navbar-nav > li.dropdown-user .username {
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.page-header.navbar .top-menu .navbar-nav > li.dropdown > .dropdown-toggle > i,
.page-header.navbar .top-menu .navbar-nav > li.dropdown .fa-angle-down {
    color: rgba(255, 255, 255, .65) !important;
    font-size: 12px;
}

.page-header.navbar .top-menu .navbar-nav > li.dropdown-user .img-circle {
    width: 26px;
    height: 26px;
    margin: 0;
    border-radius: var(--br-radius-pill) !important;
    border: none;
    background: rgba(255, 255, 255, .2);
}

/* Initials-free avatar chip replacing the remotely hosted avatar.png */
.page-header.navbar .top-menu .ccrm-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: var(--br-radius-pill) !important;
    background: #fff;
    color: var(--br-navy);
    font-size: 12px;
}

.page-header.navbar .top-menu .ccrm-avatar > i { margin: 0; line-height: 1; }

/* Icon-only control (logout) renders as a true circle */
.page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
}

.page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle > i {
    color: #fff !important;
    font-size: 15px;
    margin: 0;
}

.page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle:hover {
    background: rgba(255, 255, 255, .26) !important;
}

/* Logout reads as the one destructive control in the header */
.page-header.navbar .top-menu .navbar-nav > li.ccrm-logout-item > .dropdown-toggle > i {
    font-size: 16px;
}

.page-header.navbar .top-menu .navbar-nav > li.ccrm-logout-item > .dropdown-toggle:hover {
    background: var(--br-rose) !important;
    border-color: var(--br-rose) !important;
}

/* --- confirmation dialog --- */
.ccrm-confirm .modal-dialog { margin-top: 12vh; }

.ccrm-confirm .modal-content {
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 32, 58, .35);
}

.ccrm-confirm__body {
    text-align: center;
    padding: 30px 28px 20px !important;
}

.ccrm-confirm__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: var(--br-radius-pill) !important;
    background: rgba(225, 29, 72, .12);
    color: var(--br-rose);
    font-size: 21px;
}

.ccrm-confirm__title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--br-on-surface);
}

.ccrm-confirm__text {
    margin: 0;
    font-size: 13px;
    color: var(--br-on-surface-variant);
    line-height: 1.5;
}

.ccrm-confirm__actions {
    display: flex;
    gap: 10px;
    border-top: none !important;
    padding: 0 28px 28px !important;
    text-align: center;
}

.ccrm-confirm__actions > .btn {
    flex: 1 1 0;
    margin: 0 !important;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

/* --------------------------------------------------------------------------
   4. Sidebar — Calvatis brand blue (Bridge Sidebar layout, brand colouring)
   -------------------------------------------------------------------------- */

.page-sidebar-wrapper { background: var(--br-navy) !important; }

.page-sidebar,
.page-sidebar.navbar-collapse {
    background: var(--br-navy) !important;
    border-right: none;
    width: var(--br-sidebar-w);
}

/* The sidebar is position:fixed with the theme's top:50px, sized for its
   original header. Ours is taller, so the first menu item was being clipped
   under it. Pin the sidebar to the real header height and let it scroll. */
@media (min-width: 992px) {
    body.page-header-fixed .page-sidebar {
        top: var(--br-header-h) !important;
        height: calc(100vh - var(--br-header-h));
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.page-sidebar .page-sidebar-menu { padding: 16px 12px !important; background: transparent !important; }

/* Prefixed with .page-sidebar to outrank layout.min.css, which sets
   `.page-sidebar .page-sidebar-menu > li > a { display: block }` — without
   this the flex layout silently never applies and the chevrons sit ragged
   immediately after each label instead of pinned to the right edge. */
.page-sidebar .page-sidebar-menu > li > a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 14px !important;
    margin-bottom: 2px;
    border: none !important;
    border-radius: var(--br-radius-pill) !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    background: transparent !important;
    transition: background .2s ease, color .2s ease;
}

.page-sidebar .page-sidebar-menu > li > a > i {
    color: rgba(255, 255, 255, .5) !important;
    font-size: 15px;
    width: 18px;
    flex: 0 0 18px;
    margin: 0 !important;
    text-align: center;
    transition: color .2s ease;
}

/* Label takes the slack so the chevron lands on the right edge every time */
.page-sidebar .page-sidebar-menu > li > a > .title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-sidebar .page-sidebar-menu > li > a > .arrow {
    flex: 0 0 auto;
    margin-left: auto;
    float: none !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    line-height: 1;
}

.page-sidebar .page-sidebar-menu > li:hover > a,
.page-sidebar .page-sidebar-menu > li.open > a {
    background: rgba(255, 255, 255, .1) !important;
    color: #fff !important;
}

.page-sidebar .page-sidebar-menu > li:hover > a > i,
.page-sidebar .page-sidebar-menu > li.open > a > i { color: #fff !important; }

/* Active item inverts to white so it reads clearly on the brand blue */
.page-sidebar .page-sidebar-menu > li.active > a,
.page-sidebar .page-sidebar-menu > li.active.open > a,
.page-sidebar .page-sidebar-menu > li.active:hover > a {
    background: #fff !important;
    border: none !important;
    color: var(--br-navy) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 32, 58, .3);
}

.page-sidebar .page-sidebar-menu > li.active > a > i,
.page-sidebar .page-sidebar-menu > li.active.open > a > i { color: var(--br-navy) !important; }

.page-sidebar .page-sidebar-menu > li > a > .selected { display: none !important; }

.page-sidebar .page-sidebar-menu > li > a > .arrow:before,
.page-sidebar .page-sidebar-menu > li > a > .arrow.open:before {
    color: rgba(255, 255, 255, .45) !important;
    font-size: 12px;
}

.page-sidebar .page-sidebar-menu > li.active > a > .arrow:before { color: var(--br-navy) !important; }

/* Micro section heading — Bridge uses 10px / 900 / widest tracking */
.page-sidebar .page-sidebar-menu > li.heading > h3 {
    color: rgba(255, 255, 255, .45) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 20px 12px 8px;
    margin: 0;
}

/* Reserved menu entries (e.g. Laboratory): visible, dimmed, not clickable */
.page-sidebar .page-sidebar-menu > li.ccrm-nav-disabled > a { opacity: .42; pointer-events: none; cursor: default; }
.page-sidebar .page-sidebar-menu > li.ccrm-nav-disabled > a > .ccrm-nav-soon {
    margin-left: auto; padding: 2px 7px; border-radius: 999px !important;
    font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    background: rgba(255, 255, 255, .14); color: #fff;
}
.page-sidebar .page-sidebar-menu > li.ccrm-nav-disabled > a > .title { flex: 0 0 auto !important; }

/* Sub-menus: indented with a hairline rail (Bridge: ml-6 border-l) */
.page-sidebar .page-sidebar-menu .sub-menu {
    background: transparent !important;
    border-left: 1px solid rgba(255, 255, 255, .18);
    margin: 2px 0 6px 22px !important;
    padding: 2px 0 2px 8px !important;
}

.page-sidebar .page-sidebar-menu .sub-menu > li > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 7px 12px !important;
    margin-bottom: 1px;
    border: none !important;
    border-radius: var(--br-radius-pill) !important;
    color: rgba(255, 255, 255, .62) !important;
    font-size: 12.5px;
    font-weight: 500;
    background: transparent !important;
    transition: background .2s ease, color .2s ease;
}

.page-sidebar .page-sidebar-menu .sub-menu > li > a > i {
    font-size: 12px;
    color: rgba(255, 255, 255, .4) !important;
    width: 13px;
    margin: 0 !important;
}

.page-sidebar .page-sidebar-menu .sub-menu > li:hover > a,
.page-sidebar .page-sidebar-menu .sub-menu > li.open > a {
    background: rgba(255, 255, 255, .1) !important;
    color: #fff !important;
}

.page-sidebar .page-sidebar-menu .sub-menu > li.active > a,
.page-sidebar .page-sidebar-menu .sub-menu > li.active.open > a,
.page-sidebar .page-sidebar-menu .sub-menu > li.active:hover > a {
    background: rgba(255, 255, 255, .18) !important;
    color: #fff !important;
    font-weight: 700;
}

.page-sidebar .page-sidebar-menu .sub-menu > li.active > a > i { color: #fff !important; }

/* --------------------------------------------------------------------------
   4b. Collapsed sidebar (icon rail)

   The theme shrinks the sidebar to 45px but our menu keeps its 12/14px
   padding, which pushes the icons off the rail instead of centring them.
   The theme also expands the rail back on hover, so the rail styling is
   scoped to :not(:hover) and the expanded state falls back to the rules above.
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {
    body.page-sidebar-closed .page-sidebar:not(:hover) .page-sidebar-menu {
        padding: 12px 5px !important;
    }

    body.page-sidebar-closed .page-sidebar:not(:hover) .page-sidebar-menu > li > a {
        justify-content: center;
        gap: 0;
        padding: 11px 0 !important;
        border-radius: 14px !important;
    }

    body.page-sidebar-closed .page-sidebar:not(:hover) .page-sidebar-menu > li > a > i {
        width: auto !important;
        flex: 0 0 auto;
        margin: 0 !important;
        font-size: 16px;
    }

    /* section headings collapse into a plain divider */
    body.page-sidebar-closed .page-sidebar:not(:hover) .page-sidebar-menu > li.heading > h3 {
        display: none !important;
    }

    body.page-sidebar-closed .page-sidebar:not(:hover) .page-sidebar-menu > li.heading {
        height: 1px !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 12px 9px !important;
        background: rgba(255, 255, 255, .18);
        overflow: hidden;
    }

    /* hover expansion should match our sidebar width, not the theme's 235px */
    body.page-sidebar-closed.page-sidebar-fixed .page-sidebar:hover {
        width: var(--br-sidebar-w) !important;
        box-shadow: 8px 0 24px -8px rgba(0, 32, 58, .45);
    }

    /* flyout sub-menus while the rail is expanded on hover */
    body.page-sidebar-closed .page-sidebar:hover .page-sidebar-menu .sub-menu {
        background: rgba(0, 0, 0, .18) !important;
    }

    /* the logo column no longer needs to span a 256px sidebar */
    body.page-sidebar-closed .page-header.navbar .page-logo {
        width: auto;
        padding-right: 18px;
    }
}

/* --------------------------------------------------------------------------
   5. Page bar, breadcrumb, title
   -------------------------------------------------------------------------- */

/* Metronic gives .page-bar a negative side margin so it hangs outside the
   content column; zero it so it lines up with the cards below. */
.page-bar {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 6px !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 38px;
}

/* Breadcrumb becomes a chip that mirrors the toolbar control opposite it */
.page-bar .page-breadcrumb {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: 38px;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, .65);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
}

.page-bar .page-breadcrumb > li > a,
.page-bar .page-breadcrumb > li > span {
    color: var(--br-on-surface-variant);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: color .2s ease;
}

.page-bar .page-breadcrumb > li:last-child > span { color: var(--br-on-surface); }

.page-bar .page-breadcrumb > li > a:hover { color: var(--br-accent); }

.page-bar .page-breadcrumb > li > i {
    color: rgba(100, 116, 139, .35);
    font-size: 4px !important;
    margin: 0 10px;
    vertical-align: middle;
}

.page-bar .page-toolbar {
    float: none;
    padding: 0 !important;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Same chip geometry as the breadcrumb opposite it */
.page-bar .page-toolbar .btn,
#dashboard-report-range.btn {
    float: none !important;
    display: flex;
    align-items: center;
    height: 38px;
    background: rgba(255, 255, 255, .65) !important;
    border: 1px solid var(--br-hairline) !important;
    border-radius: var(--br-radius-pill) !important;
    color: var(--br-on-surface) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0 18px !important;
    box-shadow: none;
    margin: 0;
}

.page-bar .page-toolbar .btn:hover,
#dashboard-report-range.btn:hover { background: var(--br-surface-low) !important; }

#dashboard-report-range.btn > i { color: var(--br-accent) !important; }

/* Bridge page heading: 900 weight, tight tracking */
.page-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--br-on-surface) !important;
    letter-spacing: -.035em;
    margin: 14px 0 26px !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.2;
}

.page-title small {
    display: block;
    color: var(--br-on-surface-variant);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -.01em;
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   6. Portlets (cards)
   -------------------------------------------------------------------------- */

.portlet.light {
    position: relative;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    padding: 0 !important;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow .35s ease;
}

.portlet.light:hover { box-shadow: var(--br-shadow-md); }

/* Flatten the theme's decorative 3px coloured top borders */
.portlet.light.bb1,
.portlet.light.bb2,
.portlet.light.bb3,
.portlet.light.bb4 {
    border-top: 1px solid var(--br-hairline) !important;
}

.portlet.light > .portlet-title {
    padding: 18px 24px !important;
    margin: 0 !important;
    min-height: auto !important;
    border-bottom: 1px solid var(--br-hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.portlet.light > .portlet-title > .caption {
    padding: 0 !important;
    float: none;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--br-on-surface);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.portlet.light > .portlet-title > .caption > i {
    color: var(--br-accent);
    font-size: 14px;
    margin: 0;
}

.portlet.light > .portlet-title > .caption > .caption-subject {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-on-surface);
}

.portlet.light > .portlet-title > .actions,
.portlet.light > .portlet-title > .tools { float: none; padding: 0; margin: 0; }

.portlet.light > .portlet-body { padding: 22px 24px !important; }

/* --------------------------------------------------------------------------
   7. KPI stat tiles — Bridge StatCard

   CCRM's markup is .visual (icon) then .details > .number, .desc. Bridge puts
   the micro label on top and the big number at the bottom, so .desc is pulled
   above .number with flex order and the icon floats top-right.
   -------------------------------------------------------------------------- */

.dashboard-stat.dashboard-stat-v2 {
    position: relative;
    display: block;
    background: var(--br-surface-lowest) !important;
    background-image: none !important;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-lg) !important;
    box-shadow: var(--br-shadow);
    padding: 26px 28px !important;
    margin-bottom: 20px;
    min-height: 168px;
    overflow: hidden;
    transition: box-shadow .5s ease, transform .5s ease;
}

.dashboard-stat.dashboard-stat-v2:hover {
    box-shadow: var(--br-shadow-lg);
    transform: translateY(-2px);
}

/* Bridge's blurred accent blob in the top-right corner */
.dashboard-stat.dashboard-stat-v2:after {
    content: '';
    position: absolute;
    top: -64px;
    right: -64px;
    width: 128px;
    height: 128px;
    border-radius: 50% !important;
    background: var(--br-accent-05);
    filter: blur(40px);
    pointer-events: none;
}

.dashboard-stat.dashboard-stat-v2 > .visual {
    position: absolute;
    top: 24px;
    right: 26px;
    float: none;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--br-radius-sm) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    background: var(--br-accent-10);
    z-index: 2;
}

.dashboard-stat.dashboard-stat-v2 > .visual > i {
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1;
    color: var(--br-accent) !important;
    /* the theme fades this icon to 10% behind a coloured panel */
    opacity: 1 !important;
}

.dashboard-stat.dashboard-stat-v2 > .details {
    position: static;
    float: none;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    min-height: 116px;
    text-align: left;
    z-index: 2;
    position: relative;
}

/* micro label above the number */
.dashboard-stat.dashboard-stat-v2 > .details > .desc {
    order: -1;
    font-size: 10.5px !important;
    font-weight: 700;
    color: var(--br-accent) !important;
    text-transform: uppercase;
    letter-spacing: .13em;
    text-align: left;
    margin: 0 0 8px;
    padding-right: 48px;
}

/* Bridge's short bar under the label, growing on hover */
.dashboard-stat.dashboard-stat-v2 > .details > .desc:after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 8px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent-20);
    transition: width .5s ease;
}

.dashboard-stat.dashboard-stat-v2:hover > .details > .desc:after { width: 56px; }

.dashboard-stat.dashboard-stat-v2 > .details > .number {
    margin-top: auto !important;
    font-size: 46px !important;
    font-weight: 700;
    color: var(--br-on-surface) !important;
    letter-spacing: -.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

/* Per-tile accent variants */
.dashboard-stat.dashboard-stat-v2.red > .visual { background: rgba(225, 29, 72, .1); }
.dashboard-stat.dashboard-stat-v2.red > .visual > i { color: var(--br-rose) !important; }
.dashboard-stat.dashboard-stat-v2.red > .details > .desc { color: var(--br-rose) !important; }
.dashboard-stat.dashboard-stat-v2.red > .details > .desc:after { background: rgba(225, 29, 72, .2); }
.dashboard-stat.dashboard-stat-v2.red:after { background: rgba(225, 29, 72, .05); }

.dashboard-stat.dashboard-stat-v2.green > .visual { background: rgba(5, 150, 105, .1); }
.dashboard-stat.dashboard-stat-v2.green > .visual > i { color: var(--br-emerald) !important; }
.dashboard-stat.dashboard-stat-v2.green > .details > .desc { color: var(--br-emerald) !important; }
.dashboard-stat.dashboard-stat-v2.green > .details > .desc:after { background: rgba(5, 150, 105, .2); }
.dashboard-stat.dashboard-stat-v2.green:after { background: rgba(5, 150, 105, .05); }

.dashboard-stat.dashboard-stat-v2.yellow > .visual { background: rgba(217, 119, 6, .1); }
.dashboard-stat.dashboard-stat-v2.yellow > .visual > i { color: var(--br-amber) !important; }
.dashboard-stat.dashboard-stat-v2.yellow > .details > .desc { color: var(--br-amber) !important; }
.dashboard-stat.dashboard-stat-v2.yellow > .details > .desc:after { background: rgba(217, 119, 6, .2); }
.dashboard-stat.dashboard-stat-v2.yellow:after { background: rgba(217, 119, 6, .05); }

.dashboard-stat.dashboard-stat-v2.purple > .visual { background: rgba(79, 70, 229, .1); }
.dashboard-stat.dashboard-stat-v2.purple > .visual > i { color: var(--br-indigo) !important; }
.dashboard-stat.dashboard-stat-v2.purple > .details > .desc { color: var(--br-indigo) !important; }

/* --------------------------------------------------------------------------
   7b. Dashboard greeting strip

   Purpose-built markup in lb/dashboard/index.php, so these own their classes
   instead of overriding the theme.
   -------------------------------------------------------------------------- */

.ccrm-hello {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    padding: 22px 28px;
    margin: 0 0 20px;
}

.ccrm-hello__main { min-width: 0; }

.ccrm-hello__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--br-accent);
    margin-bottom: 5px;
}

.ccrm-hello__name {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--br-on-surface);
    line-height: 1.15;
}

.ccrm-hello__meta {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
}

.ccrm-hello__field {
    padding: 2px 22px;
    border-left: 1px solid var(--br-hairline);
    min-width: 0;
}

.ccrm-hello__field:first-child { border-left: none; }

.ccrm-hello__field--date { padding-right: 0; }

.ccrm-hello__key {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    margin-bottom: 4px;
    white-space: nowrap;
}

.ccrm-hello__val {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--br-on-surface);
}

.ccrm-hello__field--date .ccrm-hello__val { color: var(--br-accent); }

@media (max-width: 767px) {
    .ccrm-hello { padding: 20px; }
    .ccrm-hello__meta { gap: 14px 0; }
    .ccrm-hello__field { padding: 0 16px; }
    .ccrm-hello__field:first-child { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   7bb. Dashboard news strip

   Replaces the full-height news card: one slim bar with the headlines inline
   as chips, so three items cost ~56px instead of ~150px.
   -------------------------------------------------------------------------- */

.ccrm-news {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    box-shadow: var(--br-shadow);
    padding: 10px 18px;
    margin-bottom: 20px;
}

.ccrm-news__tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-accent);
    white-space: nowrap;
}

.ccrm-news__tag > i { font-size: 12px; }

.ccrm-news__items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.ccrm-news__item {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 14px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    color: var(--br-on-surface) !important;
    text-decoration: none;
    max-width: 100%;
    transition: background .2s ease, color .2s ease;
}

.ccrm-news__item:hover,
.ccrm-news__item:focus {
    background: var(--br-accent-10);
    color: var(--br-accent) !important;
    text-decoration: none;
}

.ccrm-news__title {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccrm-news__date {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--br-on-surface-variant);
    white-space: nowrap;
}

.ccrm-news__more {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-accent) !important;
    white-space: nowrap;
}

.ccrm-news__more i { margin-left: 5px; transition: transform .25s ease; }
.ccrm-news__more:hover i { transform: translateX(3px); }

/* When "see all" is on, the strip grows into a wrapped list */
@media (max-width: 767px) {
    .ccrm-news { border-radius: var(--br-radius) !important; padding: 12px 16px; }
    .ccrm-news__more { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   7c. Dashboard KPI cards

   Minimal clickable cards: tinted icon chip, micro label, oversized figure,
   and a "View all" affordance that slides in on hover.
   -------------------------------------------------------------------------- */

.ccrm-kpi {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    padding: 18px 24px 16px;
    margin-bottom: 22px;
    min-height: 142px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}

.ccrm-kpi:hover,
.ccrm-kpi:focus {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--br-shadow-lg);
    border-color: var(--br-kpi, var(--br-accent));
}

/* soft bloom in the corner, tinted per card */
.ccrm-kpi:before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50% !important;
    background: var(--br-kpi, var(--br-accent));
    opacity: .07;
    transition: opacity .35s ease, transform .35s ease;
}

.ccrm-kpi:hover:before { opacity: .13; transform: scale(1.15); }

.ccrm-kpi__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-kpi, var(--br-accent));
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

.ccrm-kpi__label {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-kpi__value {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--br-on-surface);
    font-variant-numeric: tabular-nums;
}

.ccrm-kpi__go {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 12px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-kpi, var(--br-accent));
    opacity: .5;
    transition: opacity .3s ease;
}

.ccrm-kpi__go i { margin-left: 5px; transition: transform .3s ease; }
.ccrm-kpi:hover .ccrm-kpi__go { opacity: 1; }
.ccrm-kpi:hover .ccrm-kpi__go i { transform: translateX(4px); }

.ccrm-kpi--rose { --br-kpi: #e11d48; }
.ccrm-kpi--emerald { --br-kpi: #059669; }
.ccrm-kpi--amber { --br-kpi: #d97706; }
.ccrm-kpi--blue { --br-kpi: var(--br-accent); }

@media (max-width: 767px) {
    .ccrm-kpi { min-height: 128px; padding: 16px 16px 14px; }
    .ccrm-kpi__value { font-size: 28px; }
}

/* --------------------------------------------------------------------------
   7d. Department sections & widgets

   Charts are server-rendered inline SVG (lb/functions/widgets.php) — no chart
   library ships with the theme and assets/ is gitignored, so a JS library
   would not survive deployment.
   -------------------------------------------------------------------------- */

.ccrm-section {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}

.ccrm-section__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--br-on-surface);
}

.ccrm-section__note {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-w {
    display: flex;
    flex-direction: column;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    margin-bottom: 20px;
    height: calc(100% - 20px);
    overflow: hidden;
}

.ccrm-w__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 12px;
}

.ccrm-w__title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--br-on-surface);
}

.ccrm-w__meta {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-w__link {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-accent) !important;
    white-space: nowrap;
    opacity: .65;
    transition: opacity .2s ease;
}

.ccrm-w:hover .ccrm-w__link { opacity: 1; }
.ccrm-w__link i { margin-left: 4px; }

.ccrm-w__body { padding: 4px 22px 20px; flex: 1 1 auto; }

.ccrm-w__empty {
    margin: 10px 0;
    font-size: 12.5px;
    color: var(--br-on-surface-variant);
}

/* --- horizontal bars --- */
.ccrm-bars { list-style: none; margin: 0; padding: 0; }
.ccrm-bars > li { margin-bottom: 12px; }
.ccrm-bars > li:last-child { margin-bottom: 0; }

.ccrm-bars__row {
    display: grid;
    grid-template-columns: 1fr 88px;
    grid-template-areas: 'label value' 'track track';
    align-items: center;
    gap: 5px 10px;
    text-decoration: none !important;
}

.ccrm-bars__label {
    grid-area: label;
    font-size: 12px;
    font-weight: 600;
    color: var(--br-on-surface);
    letter-spacing: -.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccrm-bars__value {
    grid-area: value;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: var(--br-on-surface);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ccrm-bars__value em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--br-on-surface-variant);
    margin-left: 5px;
}

.ccrm-bars__track {
    grid-area: track;
    display: block;
    height: 7px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    overflow: hidden;
}

.ccrm-bars__fill {
    display: block;
    height: 100%;
    border-radius: var(--br-radius-pill) !important;
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}

a.ccrm-bars__row:hover .ccrm-bars__label { color: var(--br-accent); }

/* --- donut --- */
.ccrm-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ccrm-donut__svg { width: 132px; height: 132px; flex: 0 0 132px; }

.ccrm-donut__total {
    font-size: 26px;
    font-weight: 700;
    fill: var(--br-on-surface);
    letter-spacing: -.04em;
}

.ccrm-donut__cap {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    fill: var(--br-on-surface-variant);
}

.ccrm-donut__legend { list-style: none; margin: 0; padding: 0; flex: 1 1 130px; min-width: 130px; }

.ccrm-donut__legend > li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 0;
    border-bottom: 1px solid var(--br-hairline);
}

.ccrm-donut__legend > li:last-child { border-bottom: none; }

.ccrm-donut__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: var(--br-radius-pill) !important;
}

.ccrm-donut__name { flex: 1 1 auto; font-size: 12px; font-weight: 600; color: var(--br-on-surface); }

.ccrm-donut__num {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--br-on-surface);
    font-variant-numeric: tabular-nums;
}

.ccrm-donut__num em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--br-on-surface-variant);
    margin-left: 4px;
}

/* --- trend --- */
.ccrm-trend { position: relative; }
.ccrm-trend__svg { width: 100%; height: 180px; display: block; overflow: visible; }
.ccrm-trend__grid { stroke: var(--br-hairline); stroke-width: 1; }
.ccrm-trend__line { stroke: var(--br-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ccrm-trend__dot { fill: #fff; stroke: var(--br-accent); stroke-width: 2; }

.ccrm-trend__axis {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.ccrm-trend__axis > span {
    flex: 1 1 0;
    text-align: center;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-trend__peak {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

@media (max-width: 767px) {
    .ccrm-donut { justify-content: center; }
    .ccrm-w__body { padding: 4px 16px 18px; }
    .ccrm-w__head { padding: 16px 16px 10px; }
}

/* --------------------------------------------------------------------------
   8. Tabs
   -------------------------------------------------------------------------- */

.portlet.light > .portlet-title > .nav-tabs,
.nav-tabs {
    border-bottom: none;
    margin: 0;
    display: flex;
    gap: 4px;
    background: var(--br-surface-low);
    border-radius: var(--br-radius-pill) !important;
    padding: 3px;
}

.nav-tabs > li { float: none; margin: 0; }

/* the theme marks the active tab with a 4px cyan underline on the <li> */
.nav-tabs > li, .nav-tabs > li.active { border: none !important; }

.nav-tabs > li > a {
    border: none !important;
    background: transparent !important;
    color: var(--br-on-surface-variant) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 7px 14px !important;
    margin: 0 !important;
    border-radius: var(--br-radius-pill) !important;
    transition: background .2s ease, color .2s ease;
}

.nav-tabs > li > a:hover { color: var(--br-on-surface) !important; }

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: var(--br-surface-lowest) !important;
    color: var(--br-accent) !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

/* --------------------------------------------------------------------------
   9. Buttons — Bridge pill: 10px / 900 / uppercase / wide tracking
   -------------------------------------------------------------------------- */

.btn {
    border-radius: var(--br-radius-pill) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn:focus, .btn:active:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--br-accent-20);
}

.btn.btn-sm, .btn-sm { padding: 8px 16px; font-size: 9.5px; }
.btn.btn-xs, .btn-xs { padding: 6px 12px; font-size: 9px; letter-spacing: .07em; }
.btn.btn-lg, .btn-lg { padding: 13px 28px; font-size: 11px; }

.btn.default, .btn.btn-default {
    background: var(--br-surface-lowest) !important;
    border-color: var(--br-hairline) !important;
    color: var(--br-on-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.btn.default:hover, .btn.btn-default:hover { background: var(--br-surface-low) !important; }

.btn.blue, .btn.btn-primary {
    background: var(--br-accent) !important;
    border-color: var(--br-accent) !important;
    color: #fff !important;
    box-shadow: var(--br-shadow-accent);
}

.btn.blue:hover, .btn.btn-primary:hover {
    background: var(--br-accent-hover) !important;
    border-color: var(--br-accent-hover) !important;
}

/* Bridge's primary dark action (e.g. "My Workspace", "Sign In") */
.btn.dark, .btn.btn-inverse {
    background: var(--br-primary) !important;
    border-color: var(--br-primary) !important;
    color: #fff !important;
}

.btn.dark:hover, .btn.btn-inverse:hover {
    background: var(--br-primary-container) !important;
    border-color: var(--br-primary-container) !important;
}

.btn.green, .btn.btn-success {
    background: var(--br-emerald) !important;
    border-color: var(--br-emerald) !important;
    color: #fff !important;
}

.btn.green:hover, .btn.btn-success:hover { background: #047857 !important; border-color: #047857 !important; }

.btn.red, .btn.btn-danger {
    background: var(--br-rose) !important;
    border-color: var(--br-rose) !important;
    color: #fff !important;
}

.btn.red:hover, .btn.btn-danger:hover { background: #be123c !important; border-color: #be123c !important; }

.btn.yellow, .btn.btn-warning {
    background: var(--br-amber) !important;
    border-color: var(--br-amber) !important;
    color: #fff !important;
}

.btn.yellow:hover, .btn.btn-warning:hover { background: #b45309 !important; border-color: #b45309 !important; }

/* btn-info was indigo, which reads as a foreign colour next to the brand
   blue; it is a secondary action so it takes the accent. */
.btn.btn-info {
    background: var(--br-accent) !important;
    border-color: var(--br-accent) !important;
    color: #fff !important;
}

.btn.btn-info:hover { background: var(--br-accent-hover) !important; border-color: var(--br-accent-hover) !important; }

.btn.purple {
    background: var(--br-indigo) !important;
    border-color: var(--br-indigo) !important;
    color: #fff !important;
}

.btn.purple:hover { background: #4338ca !important; border-color: #4338ca !important; }

/* the theme's outline button never got a palette entry */
.btn.btn-secondary-outline,
.btn.btn-secondary {
    background: var(--br-surface-lowest) !important;
    border-color: var(--br-hairline) !important;
    color: var(--br-on-surface) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.btn.btn-secondary-outline:hover,
.btn.btn-secondary:hover {
    background: var(--br-surface-low) !important;
    border-color: var(--br-border-strong, var(--br-hairline)) !important;
    color: var(--br-on-surface) !important;
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

.form-control {
    height: 42px;
    padding: 9px 16px;
    font-size: 13.5px;
    color: var(--br-on-surface);
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-control:focus {
    border-color: var(--br-accent);
    box-shadow: 0 0 0 3px var(--br-accent-10);
    outline: none;
}

.form-control::placeholder { color: rgba(100, 116, 139, .6); }

textarea.form-control { height: auto; }

.control-label, .form-group > label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.input-group-addon {
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    color: var(--br-on-surface-variant);
    font-size: 13px;
}

/* Select2 */
.select2-container .select2-choice,
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1px solid var(--br-hairline) !important;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-lowest) !important;
    box-shadow: none !important;
    font-size: 13.5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    color: var(--br-on-surface);
}

.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px !important; }

.select2-dropdown {
    border: 1px solid var(--br-hairline) !important;
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow-lg);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--br-accent) !important;
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */

.table { font-size: 13px; color: var(--br-on-surface); margin-bottom: 0; }

.table > thead > tr > th {
    background: transparent;
    color: var(--br-on-surface-variant);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    border-bottom: 1px solid var(--br-hairline) !important;
    border-top: none !important;
    padding: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.table > tbody > tr > td {
    border-top: 1px solid var(--br-hairline) !important;
    padding: 13px 12px;
    vertical-align: middle;
    color: #334155;
    font-variant-numeric: tabular-nums;
}

.table > tbody > tr:first-child > td { border-top: none !important; }

.table-hover > tbody > tr:hover,
.table-striped > tbody > tr:nth-of-type(odd):hover { background: var(--br-surface) !important; }

.table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }

.table-bordered,
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td { border-color: var(--br-hairline) !important; }

/* DataTables chrome */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    height: 38px;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    padding: 6px 16px;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--br-on-surface-variant);
    font-size: 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--br-radius-pill) !important;
    border: 1px solid var(--br-hairline) !important;
    background: var(--br-surface-lowest) !important;
    color: var(--br-on-surface) !important;
    padding: 6px 13px !important;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--br-accent) !important;
    border-color: var(--br-accent) !important;
    color: #fff !important;
}

.Zebra_Pagination ul li a {
    border-radius: var(--br-radius-pill) !important;
    border: 1px solid var(--br-hairline) !important;
    color: var(--br-on-surface) !important;
    font-size: 12px;
    font-weight: 700;
}

.Zebra_Pagination ul li a.current,
.Zebra_Pagination ul li a:hover {
    background: var(--br-accent) !important;
    border-color: var(--br-accent) !important;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   12. Timeline list — Bridge "Accounts & Companies" rows

   The list screens (clients, contacts, …) render rows as an AdminLTE timeline
   rather than a table, so they get the Bridge list-row card treatment.
   -------------------------------------------------------------------------- */

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }

.timeline:before { display: none; }

.timeline > li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 0;
    list-style: none;
}

.timeline > li:after, .timeline > li:before { display: none; }

.timeline > li > .timeline-item {
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    padding: 18px 22px 18px 62px;
    margin: 0;
    position: relative;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.timeline > li > .timeline-item:hover {
    box-shadow: var(--br-shadow-md);
    border-color: var(--br-accent-20);
}

/* Status marker, tucked inside the row card */
.timeline > li > .client-status-dot,
.timeline > li > i.fa {
    position: absolute;
    left: 22px;
    top: 20px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 10px !important;
    background: var(--br-accent-10);
    color: var(--br-accent) !important;
    font-style: normal;
    font-size: 10px;
    line-height: 1;
}

/* letter badges use the UI font; i.fa badges must keep FontAwesome or
   they render as empty boxes */
.timeline > li > .client-status-dot {
    font-family: var(--br-font) !important;
    font-weight: 700;
}

.timeline > li > i.fa { font-size: 12px; }

/* The page's own rules set these solid with !important, so match that weight.
   Colours follow the app's existing semantics: active green, inactive red,
   re-engaged amber, closed dark. */
.timeline > li > .client-status-dot.status-active { background: rgba(5, 150, 105, .12) !important; color: var(--br-st-active) !important; }
.timeline > li > .client-status-dot.status-inactive { background: rgba(225, 29, 72, .12) !important; color: var(--br-st-inactive) !important; }
.timeline > li > .client-status-dot.status-reengaged { background: rgba(249, 115, 22, .14) !important; color: var(--br-st-reengaged) !important; }
.timeline > li > .client-status-dot.status-closed { background: rgba(17, 24, 39, .1) !important; color: var(--br-st-closed) !important; }

/* Section labels ("CURRENT", "POTENTIAL LEADS", …) */
.timeline > li.time-label { padding-left: 0; margin: 28px 0 14px; }

.timeline > li.time-label > span {
    display: inline-block;
    background: transparent !important;
    color: var(--br-on-surface-variant) !important;
    padding: 0;
    border-radius: 0 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.timeline > li > .timeline-item > .timeline-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--br-on-surface);
    letter-spacing: -.015em;
    margin: 0 0 3px;
    padding: 0;
    border: none !important;
    line-height: 1.35;
}

.timeline > li > .timeline-item > .timeline-header > a { color: var(--br-on-surface); font-weight: 700; }
.timeline > li > .timeline-item > .timeline-header > a:hover { color: var(--br-accent); }

.timeline > li > .timeline-item > .time {
    float: right;
    color: rgba(100, 116, 139, .7);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0 0 0 12px;
}

.timeline > li > .timeline-item > .time > a { color: var(--br-accent); }

/* Left as a block: the list pages ship inline styles that lay the controls out
   as inline-block, and flexing this container distorts them. */
.timeline > li > .timeline-item > .timeline-footer {
    padding: 14px 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--br-hairline);
}

.timeline > li > .timeline-item > .timeline-footer > .btn { margin-right: 4px; }

.timeline-footer .client-status-dropdown {
    border-radius: var(--br-radius-pill) !important;
    border-color: var(--br-hairline) !important;
    font-weight: 700;
    letter-spacing: .02em;
    padding-left: 10px !important;
}

/* --------------------------------------------------------------------------
   12b. Accounts page (lb/clients/index.php)

   The list keeps the theme's timeline markup because the page JS is bound to
   it (.time-label[id], li.<type>, .timeline-header/.timeline-footer, .par,
   .container-m, .over). Everything visual is layered on new ccrm-* classes.
   -------------------------------------------------------------------------- */

.ccrm-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px 0 18px;
}

.ccrm-page-head__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--br-on-surface);
}

.ccrm-page-head__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--br-on-surface-variant);
}

.ccrm-page-head__actions { display: flex; align-items: center; gap: 10px; }
.ccrm-page-head__actions .btn > i { margin-right: 6px; }

.ccrm-backlink {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant) !important;
    transition: color .2s ease;
}

.ccrm-backlink:hover { color: var(--br-accent) !important; }

/* --- client overview header --- */
.ccrm-clienthead {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    padding: 20px 24px;
    margin-bottom: 22px;
}

.ccrm-clienthead__id {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    min-width: 0;
    padding-right: 22px;
    border-right: 1px solid var(--br-hairline);
}

.ccrm-clienthead__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px !important;
    font-size: 14px;
    font-weight: 700;
    background: var(--br-accent-10);
    color: var(--br-accent) !important;
}

.ccrm-clienthead__avatar.status-active { background: rgba(5, 150, 105, .12) !important; color: var(--br-st-active) !important; }
.ccrm-clienthead__avatar.status-inactive { background: rgba(225, 29, 72, .12) !important; color: var(--br-st-inactive) !important; }
.ccrm-clienthead__avatar.status-reengaged { background: rgba(249, 115, 22, .14) !important; color: var(--br-st-reengaged) !important; }
.ccrm-clienthead__avatar.status-closed { background: rgba(17, 24, 39, .1) !important; color: var(--br-st-closed) !important; }

.ccrm-clienthead__name {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--br-on-surface);
}

.ccrm-clienthead__type {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-accent);
}

.ccrm-clienthead__stats {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px 30px;
    flex: 1 1 auto;
}

.ccrm-stat { min-width: 0; }
.ccrm-stat--wide { flex: 1 1 200px; }

.ccrm-stat__k {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    margin-bottom: 3px;
}

.ccrm-stat__v {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--br-on-surface);
}

.ccrm-stat__v em {
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--br-emerald);
    margin-left: 5px;
}

.ccrm-stat__v--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.ccrm-stat__v--1 { color: var(--br-st-active); }
.ccrm-stat__v--0 { color: var(--br-st-inactive); }
.ccrm-stat__v--2 { color: var(--br-st-reengaged); }
.ccrm-stat__v--3 { color: var(--br-st-closed); }

/* --- branch cards --- */
.ccrm-branch {
    position: relative;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-left-width: 3px;
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    padding: 16px 18px 14px;
    margin-bottom: 16px;
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}

.ccrm-branch:hover { box-shadow: var(--br-shadow-md); transform: translateY(-1px); }
.ccrm-branch.is-active { border-left-color: var(--br-emerald); }
.ccrm-branch.is-inactive { border-left-color: var(--br-rose); }
.ccrm-branch.is-inactive .ccrm-branch__title > a { color: var(--br-on-surface-variant); }

/* list layout: one row per branch, actions on the right */
.ccrm-branchlist .ccrm-branch {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    margin-bottom: 8px;
}

.ccrm-branchlist .ccrm-branch__top { flex: 1 1 auto; min-width: 0; align-items: center; }
/* the status toggle sits on the same line as the action buttons, vertically centred with them */
.ccrm-branchlist .ccrm-branch__switch { display: flex; align-items: center; margin-left: auto; padding-right: 14px; border-right: 1px solid var(--br-hairline); height: 26px; }
.ccrm-branchlist .ccrm-branch__actions { display: flex; align-items: center; gap: 6px; }
.ccrm-branchlist .ccrm-branch { gap: 14px; }

.ccrm-branchlist .ccrm-branch__actions {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-wrap: nowrap;
}

.ccrm-branch__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ccrm-branch__title { min-width: 0; flex: 1 1 auto; }

.ccrm-branch__title > a {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--br-on-surface);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccrm-branch__title > a:hover { color: var(--br-accent); }

.ccrm-branch__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 5px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--br-on-surface-variant);
}

.ccrm-branch__meta i { margin-right: 3px; opacity: .6; }

.ccrm-branch__serial {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    padding: 2px 8px;
    color: var(--br-on-surface);
}

.ccrm-branch__switch { flex: 0 0 auto; }

.ccrm-branch__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--br-hairline);
}

@media (max-width: 991px) {
    .ccrm-branchlist .ccrm-branch { flex-wrap: wrap; gap: 10px; }
    .ccrm-branchlist .ccrm-branch__actions { flex-wrap: wrap; width: 100%; }
}

@media (max-width: 767px) {
    .ccrm-clienthead { padding: 16px; gap: 16px; }
    .ccrm-clienthead__id { border-right: none; padding-right: 0; }
    .ccrm-clienthead__stats { gap: 12px 20px; }
}

/* --- toolbar --- */
.ccrm-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    box-shadow: var(--br-shadow);
    padding: 10px 14px;
    margin-bottom: 18px;
}

.ccrm-toolbar__search {
    position: relative;
    flex: 1 1 260px;
    min-width: 200px;
}

.ccrm-toolbar__search > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--br-on-surface-variant);
    font-size: 13px;
    pointer-events: none;
}

.ccrm-toolbar__search > .form-control {
    height: 40px;
    padding-left: 40px !important;
    border-radius: var(--br-radius-pill) !important;
    border-color: transparent !important;
    background: var(--br-surface-low) !important;
}

.ccrm-toolbar__search > .form-control:focus {
    background: var(--br-surface-lowest) !important;
    border-color: var(--br-accent) !important;
}

.ccrm-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* select2 keeps the original <select> in the DOM as .select2-hidden-accessible;
   it must stay visually hidden or it eats a slot in the flex row. */
.ccrm-toolbar__filters > select.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.ccrm-toolbar__filters > select.form-control:not(.select2-hidden-accessible) {
    flex: 0 0 auto;
    width: 152px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--br-radius-pill) !important;
    font-size: 12.5px;
    font-weight: 600;
}

.ccrm-toolbar__filters .select2-container {
    flex: 0 0 auto;
    width: 152px !important;
    height: 40px;
}

.ccrm-toolbar__filters .select2-container .select2-selection--single,
.ccrm-toolbar__filters .select2-container--bootstrap .select2-selection--single {
    display: flex !important;
    align-items: center;
    height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid var(--br-hairline) !important;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-lowest) !important;
    box-shadow: none !important;
    font-size: 12.5px;
    font-weight: 600;
}

.ccrm-toolbar__filters .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 1.4 !important;
    color: var(--br-on-surface) !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ccrm-toolbar__filters .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 10px !important;
}

.ccrm-toolbar__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-rose) !important;
    white-space: nowrap;
}

/* --- group headers --- */
.ccrm-accounts .timeline > li.time-label { margin: 22px 0 12px; cursor: pointer; }
.ccrm-accounts .timeline > li.time-label:first-child { margin-top: 4px; }

.ccrm-accounts .timeline > li.time-label > span.ccrm-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px !important;
    background: var(--br-surface-lowest) !important;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    box-shadow: var(--br-shadow);
    color: var(--br-on-surface) !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ccrm-accounts .timeline > li.time-label:hover > span.ccrm-group {
    border-color: var(--br-accent-20);
    box-shadow: var(--br-shadow-md);
}

.ccrm-group__chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent-10);
    color: var(--br-accent);
    font-size: 9px;
    transition: transform .25s ease;
}

.time-label.is-open .ccrm-group__chev { transform: rotate(180deg); }

.ccrm-group__count {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    color: var(--br-on-surface-variant);
    font-size: 10px;
    font-weight: 700;
}

.ccrm-group__lock { color: var(--br-amber); font-size: 11px; }

/* --- account rows --- */
/* Compact rows: the list is long, so vertical rhythm is tightened and the
   type scale steps down one notch from the card defaults. */
.ccrm-accounts .timeline > li { margin-bottom: 6px; }

.ccrm-accounts .timeline > li > .timeline-item {
    padding: 11px 16px 11px 52px;
    border-radius: 14px !important;
}

.ccrm-accounts .timeline > li > .client-status-dot,
.ccrm-accounts .timeline > li > i.fa {
    left: 15px;
    top: 12px;
    width: 26px;
    height: 26px;
    border-radius: 9px !important;
    font-size: 9px;
}

/* timeline.css paints this row #f7f7f7, which reads as a grey band behind
   the account name. */
.ccrm-accounts .timeline > li > .timeline-item > .timeline-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    font-size: 12.5px;
    line-height: 1.3;
    min-height: 22px;
}

.ccrm-acc__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -.012em;
    color: var(--br-on-surface);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fixed column widths so status, branch count, ID and chevron line up
   vertically down the whole list instead of drifting with content length. */
.ccrm-acc__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

/* Status is already carried by the colour of the letter chip at the row's
   left edge, so the word is dropped and this slot shows the branch count. */

/* Branch count as a small round badge */
.ccrm-acc__branches {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    color: var(--br-on-surface);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    cursor: help;
}

/* The account ID is a reference people read and quote, so it gets a legible
   monospaced chip rather than 9px muted grey. */
.ccrm-acc__serial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 3px 9px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    color: var(--br-on-surface);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ccrm-acc__serial.is-empty {
    background: transparent;
    border-color: transparent;
    color: var(--br-on-surface-variant);
    opacity: .5;
}

.ccrm-acc__chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    color: var(--br-on-surface-variant);
    font-size: 8px;
    transition: transform .25s ease, background .2s ease, color .2s ease;
}

.timeline-header.togledown .ccrm-acc__chev {
    transform: rotate(180deg);
    background: var(--br-accent-10);
    color: var(--br-accent);
}

.ccrm-accounts .timeline > li > .timeline-item > .timeline-header:hover .ccrm-acc__chev {
    background: var(--br-accent-10);
    color: var(--br-accent);
}

/* --- expanded footer --- */
.ccrm-acc__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ccrm-acc__manage {
    margin-left: auto;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-accent) !important;
    white-space: nowrap;
}

.ccrm-acc__manage i { margin-left: 5px; }

.ccrm-acc__branchlist {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--br-hairline);
}

.ccrm-acc__branchlabel {
    display: block;
    margin-bottom: 7px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

/* --- branch rows ---------------------------------------------------------
   .par keeps position:relative and the overflow toggle, because the actions
   popup (.over) is absolutely positioned and escapes via .par.open-over.
   DOM order is hamburger, switch, popup, title — reordered with flex so the
   name reads first and the controls sit on the right.
   ------------------------------------------------------------------------- */

.ccrm-acc__branchlist .par {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--br-surface-low) !important;
    border: 1px solid var(--br-hairline);
    border-left-width: 3px;
    border-radius: 11px !important;
    padding: 6px 10px 6px 12px !important;
    margin: 0 0 5px !important;
    position: relative;
    overflow: hidden;
    transition: background .18s ease, border-color .18s ease;
}

.ccrm-acc__branchlist .par:last-child { margin-bottom: 0 !important; }

.ccrm-acc__branchlist .par:hover {
    background: var(--br-surface-lowest) !important;
    border-color: var(--br-accent-20);
}

.ccrm-acc__branchlist .par.branch-active { border-left-color: var(--br-emerald) !important; }
.ccrm-acc__branchlist .par.branch-inactive { border-left-color: var(--br-rose) !important; }

/* branch name first */
.ccrm-acc__branchlist .par > a:not(.menu-btn) {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--br-on-surface) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccrm-acc__branchlist .par > a:not(.menu-btn):hover { color: var(--br-accent) !important; }

/* on/off switch */
.ccrm-acc__branchlist .par > .pll11 {
    order: 2;
    float: none !important;
    margin: 0 !important;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* kebab / hamburger trigger */
.ccrm-acc__branchlist .par > .container-m {
    order: 3;
    float: none !important;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: var(--br-radius-pill) !important;
    transition: background .18s ease;
}

.ccrm-acc__branchlist .par > .container-m:hover { background: var(--br-accent-10); }

.ccrm-acc__branchlist .par > .container-m .bar1,
.ccrm-acc__branchlist .par > .container-m .bar2,
.ccrm-acc__branchlist .par > .container-m .bar3 {
    width: 14px !important;
    height: 2px !important;
    margin: 1.5px 0 !important;
    border-radius: 2px !important;
    background-color: var(--br-on-surface-variant) !important;
}

.ccrm-acc__branchlist .par > .container-m:hover .bar1,
.ccrm-acc__branchlist .par > .container-m:hover .bar2,
.ccrm-acc__branchlist .par > .container-m:hover .bar3 {
    background-color: var(--br-accent) !important;
}

/* actions popup */
.ccrm-acc__branchlist .par > .over {
    order: 4;
    border-radius: var(--br-radius-sm) !important;
    border: 1px solid var(--br-hairline) !important;
    box-shadow: var(--br-shadow-lg) !important;
    padding: 7px 9px !important;
}

/* compact the bootstrap-switch inside branch rows */
.ccrm-acc__branchlist .par .bootstrap-switch { margin: 0 !important; }

/* --- empty state --- */
.ccrm-accounts__empty {
    list-style: none;
    text-align: center;
    padding: 56px 20px !important;
    background: var(--br-surface-lowest);
    border: 1px dashed var(--br-border-strong, var(--br-hairline));
    border-radius: var(--br-radius) !important;
}

.ccrm-accounts__empty > i {
    font-size: 26px;
    color: var(--br-on-surface-variant);
    opacity: .5;
}

.ccrm-accounts__empty > h4 {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.ccrm-accounts__empty > p {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--br-on-surface-variant);
}

@media (max-width: 767px) {
    .ccrm-toolbar { border-radius: var(--br-radius) !important; }
    .ccrm-toolbar__filters { width: 100%; }
    .ccrm-toolbar__filters > .form-control { flex: 1 1 130px; min-width: 130px; }
    .ccrm-page-head__actions { width: 100%; }
    .ccrm-page-head__actions .btn { flex: 1 1 auto; justify-content: center; display: inline-flex; }
    .ccrm-acc__meta { gap: 7px; }
    .ccrm-acc__serial { display: none; }
}

/* --------------------------------------------------------------------------
   12c. Side drawer (Bridge SideDrawer)

   Used for "New account" so the list stays in view behind the form.
   -------------------------------------------------------------------------- */

.ccrm-drawer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    visibility: hidden;
    pointer-events: none;
}

.ccrm-drawer.is-open { visibility: visible; pointer-events: auto; }

.ccrm-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(6, 28, 47, .45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .28s ease;
}

.ccrm-drawer.is-open .ccrm-drawer__scrim { opacity: 1; }

.ccrm-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--br-surface-lowest);
    box-shadow: -18px 0 44px -16px rgba(0, 32, 58, .4);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}

.ccrm-drawer.is-open .ccrm-drawer__panel { transform: translateX(0); }

.ccrm-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid var(--br-hairline);
}

.ccrm-drawer__eyebrow {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--br-accent);
    margin-bottom: 4px;
}

.ccrm-drawer__title {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--br-on-surface);
}

.ccrm-drawer__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-lowest);
    color: var(--br-on-surface-variant);
    transition: background .2s ease, color .2s ease;
}

.ccrm-drawer__close:hover {
    background: var(--br-surface-low);
    color: var(--br-on-surface);
}

.ccrm-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 22px 26px 26px;
    display: flex;
    flex-direction: column;
}

.ccrm-field { margin-bottom: 18px; }

.ccrm-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-field__req { color: var(--br-rose); }

.ccrm-field__hint {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--br-on-surface-variant);
}

.ccrm-drawer__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 0;
    padding: 12px 14px;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-accent-05);
    border: 1px solid var(--br-accent-20);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--br-on-surface-variant);
}

.ccrm-drawer__note > i { color: var(--br-accent); margin-top: 1px; }

.ccrm-drawer__actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.ccrm-drawer__actions > .btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.ccrm-drawer-open { overflow: hidden; }
/* the page behind an open drawer is pinned (side_drawer.php keeps its scroll position in top) */
body.ccrm-drawer-locked { position: fixed; left: 0; right: 0; width: 100%; }
/* size the drawer to the part of the screen actually visible, not the height behind the browser's toolbars */
.ccrm-drawer { bottom: auto; height: 100%; height: 100dvh; }
.ccrm-drawer__frameWrap { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* wide variant for the embedded branch form */
.ccrm-drawer--wide .ccrm-drawer__panel { width: 720px; }
.ccrm-drawer--wide.ccrm-drawer--xl .ccrm-drawer__panel { width: 940px; }

.ccrm-client-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 14px 26px;
    background: var(--br-surface-low);
    border-bottom: 1px solid var(--br-hairline);
}

.ccrm-client-card__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px !important;
    background: var(--br-accent-10);
    color: var(--br-accent);
    font-size: 12px;
    font-weight: 700;
}

.ccrm-client-card__text { min-width: 0; }

.ccrm-client-card__name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--br-on-surface);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccrm-client-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-client-card__meta > * { position: relative; }

.ccrm-client-card__meta > * + *::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
}

.ccrm-client-card__meta em { font-style: normal; color: var(--br-accent); }

/* --- form sub-cards (branches/content_add.php) --- */
.ccrm-formsec {
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow);
    padding: 15px 18px 4px;
    margin-bottom: 14px;
}

.ccrm-formsec__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-accent);
}

.ccrm-formsec__title::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--br-hairline);
}

/* --- in-place editing: cards flip between a view layer and an edit layer --- */
.ccrm-formsec__title::after { order: 1; }

.ccrm-formsec__tools {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.ccrm-formsec__edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: none;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent-10);
    color: var(--br-accent) !important;
    font-family: var(--br-font);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease;
}

.ccrm-formsec__edit .fa { font-size: 9px; }
.ccrm-formsec__edit:hover { background: var(--br-accent); color: #fff !important; }
.ccrm-formsec__edit.is-save { background: var(--br-accent); color: #fff !important; }
.ccrm-formsec__edit.is-save:hover { background: var(--br-navy); }
.ccrm-formsec__edit.is-cancel { background: var(--br-surface-low); color: var(--br-on-surface-variant) !important; }
.ccrm-formsec__edit.is-cancel:hover { background: var(--br-hairline); color: var(--br-on-surface) !important; }
.ccrm-formsec__edit[disabled] { opacity: .6; cursor: default; }

.ccrm-editable .ccrm-mode-edit { display: none; }
.ccrm-editable:not(.is-editing) [data-cancel],
.ccrm-editable:not(.is-editing) [data-save] { display: none; }
.ccrm-editable.is-editing [data-edit] { display: none; }
.ccrm-editable.is-editing .ccrm-mode-view { display: none; }
.ccrm-editable.is-editing .ccrm-kv.ccrm-mode-edit { display: grid; }
.ccrm-editable.is-editing .ccrm-mode-edit--block { display: block; }

.ccrm-editable.is-editing {
    border-color: var(--br-accent-20);
    box-shadow: 0 0 0 3px var(--br-accent-10), var(--br-shadow);
}

/* inputs sized to sit exactly where the read-only value was */
.ccrm-in,
.ccrm-inline .form-control.ccrm-in {
    height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--br-hairline) !important;
    border-radius: 12px !important;
    background: var(--br-surface-lowest) !important;
    box-shadow: none !important;
    font-family: var(--br-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--br-on-surface);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.ccrm-in:focus,
.ccrm-inline .form-control.ccrm-in:focus {
    border-color: var(--br-accent) !important;
    box-shadow: 0 0 0 3px var(--br-accent-10) !important;
    outline: none;
}

textarea.ccrm-in { height: auto; min-height: 96px; line-height: 1.55; resize: vertical; }
select.ccrm-in { padding-right: 28px; }

.ccrm-kv__hint {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--br-on-surface-variant);
}

.ccrm-in-pair { display: flex; gap: 8px; }
.ccrm-in-pair > .ccrm-in { flex: 0 0 96px; }
.ccrm-in-pair > .ccrm-in-rec { flex: 1 1 auto; min-width: 0; }
.ccrm-in-pair > .ccrm-in-rec.is-off { display: none; }
.ccrm-kv__i.ccrm-in-rec.is-off { display: none; }
.ccrm-page-head__actions .ccrm-toggle--head { margin-right: 8px; }

.ccrm-notes--empty { color: var(--br-on-surface-variant); font-style: italic; }

/* select2 dressed like the inputs */
.ccrm-inline .select2-container--bootstrap .select2-selection {
    border: 1px solid var(--br-hairline) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    min-height: 36px;
    font-size: 13px;
    font-weight: 600;
}

.ccrm-inline .select2-container--bootstrap.select2-container--focus .select2-selection,
.ccrm-inline .select2-container--bootstrap.select2-container--open .select2-selection {
    border-color: var(--br-accent) !important;
    box-shadow: 0 0 0 3px var(--br-accent-10) !important;
}

.ccrm-inline .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent-10);
    border: none;
    color: var(--br-navy);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
}

/* contact picker rows inside the card */
.ccrm-inline .contact-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 0 0 8px !important;
    padding: 8px 12px;
    background: var(--br-surface-low);
    border-radius: 12px !important;
}

.ccrm-inline .contact-row > div { float: none !important; width: auto !important; padding: 0 !important; flex: 1 1 0; min-width: 0; }
.ccrm-inline .contact-row > .col-md-1 { flex: 0 0 auto; }
.ccrm-inline .contact-row .form-group { margin: 0 !important; padding-top: 14px !important; }
.ccrm-inline .contact-row .form-control { font-size: 12px !important; height: 30px !important; }
.ccrm-inline .contact-row .form-md-line-input > label { font-size: 9px !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 700 !important; }
.ccrm-inline .contact-row .contact-remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px;
    padding: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: rgba(225, 29, 72, .12) !important;
    color: var(--br-rose) !important;
}

.ccrm-inline .contact-row .contact-remove:hover { background: var(--br-rose) !important; color: #fff !important; }
.ccrm-inline #contact-picker-container hr { border-color: var(--br-hairline); margin: 12px 0; }
.ccrm-inline #contact-picker-container .btn { border-radius: var(--br-radius-pill) !important; }

/* --- price list editing --- */
.ccrm-prod__in { display: none; align-items: center; gap: 6px; }
.ccrm-prod__in .ccrm-in { width: 112px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-prod__pick { flex: 1 1 auto; min-width: 0; }

.ccrm-prod__rm {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 10px !important;
    background: rgba(225, 29, 72, .12);
    color: var(--br-rose);
    font-size: 12px;
    cursor: pointer;
}

.ccrm-prod__rm:hover { background: var(--br-rose); color: #fff; }

#pl.is-editing .ccrm-prod__price > a,
#pl.is-editing .ccrm-prod__foot { display: none; }
#pl.is-editing .ccrm-prod__in { display: inline-flex; }
#pl.is-editing .ccrm-prod__rm { display: inline-flex; }
#pl.is-editing .ccrm-toolbar__search,
#pl.is-editing .ccrm-toolbar__filters > select { opacity: .4; pointer-events: none; }
#pl.is-editing [data-pl-edit] { display: none; }
.ccrm-pl-editonly { display: none; }
#pl.is-editing .ccrm-pl-editonly { display: inline-flex; }

.ccrm-prod.is-removed { display: none !important; }
.ccrm-prod.is-new { border-color: var(--br-accent-20); background: #f4f8fd; }
.ccrm-prod.is-new .ccrm-prod__top { flex: 1 1 auto; }
.ccrm-prod.is-new .ccrm-prod__price { min-width: 0; }

/* --- read-only key/value grid (branch view) --- */
.ccrm-kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px 26px;
    padding-bottom: 12px;
}

.ccrm-kv__i { min-width: 0; }
.ccrm-kv__i--wide { grid-column: 1 / -1; }
.ccrm-kv__i--break { grid-column-start: 1; }

.ccrm-kv__k {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    margin-bottom: 3px;
}

.ccrm-kv__v {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--br-on-surface);
    word-break: break-word;
}

.ccrm-kv__v--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

.ccrm-kv__v em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--br-on-surface-variant);
    margin-left: 7px;
}

.ccrm-flag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: var(--br-radius-pill) !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ccrm-flag.is-yes { background: rgba(5, 150, 105, .12); color: var(--br-emerald); }
.ccrm-flag.is-no { background: var(--br-surface-low); color: var(--br-on-surface-variant); }

.ccrm-notes {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}

/* status pill beside the page title */
.ccrm-status-pill {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    padding: 4px 11px;
    border-radius: var(--br-radius-pill) !important;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
    position: relative;
    top: -3px;
}

.ccrm-status-pill.is-active { background: rgba(5, 150, 105, .12); color: var(--br-st-active); }
.ccrm-status-pill.is-inactive { background: rgba(225, 29, 72, .12); color: var(--br-st-inactive); }
.ccrm-status-pill.is-reengaged { background: rgba(249, 115, 22, .14); color: var(--br-st-reengaged); }
.ccrm-status-pill.is-closed { background: rgba(17, 24, 39, .1); color: var(--br-st-closed); }

/* quick-facts strip without the identity column */
.ccrm-clienthead--stats { padding: 16px 24px; }

/* two-level tab navigation (branch view) */
.ccrm-tabs { margin-bottom: 4px; }

.ccrm-tabs__primary {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--br-hairline);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ccrm-tabs__primary::-webkit-scrollbar { display: none; }

.ccrm-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--br-radius-pill) !important;
    background: transparent;
    color: var(--br-on-surface-variant);
    font-family: var(--br-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ccrm-tab .fa {
    width: 16px;
    text-align: center;
    font-size: 13px;
    opacity: .75;
}

.ccrm-tab:hover {
    background: var(--br-surface-lowest);
    border-color: var(--br-hairline);
    color: var(--br-on-surface);
}

.ccrm-tab.is-active,
.ccrm-tab.is-active:hover {
    background: var(--br-navy);
    border-color: var(--br-navy);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 69, 124, .22);
}

.ccrm-tab.is-active .fa { opacity: 1; }

/* sub-tabs reuse the pill-track .nav-tabs styling, one group visible at a time */
.ccrm-tabs .ccrm-subtabs {
    display: none;
    margin: 12px 0 0;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
}

.ccrm-tabs .ccrm-subtabs.is-active { display: flex; }

/* a group with a single pane needs no second row */
.ccrm-tabs .ccrm-subtabs.is-active.is-single { display: none; }

.ccrm-tabs .ccrm-subtabs > li > a .fa {
    margin-right: 5px;
    font-size: 11px;
    opacity: .7;
}

.ccrm-tabs .ccrm-subtabs > li.active > a .fa { opacity: 1; }

@media (max-width: 767px) {
    .ccrm-tab { padding: 9px 13px; font-size: 10.5px; }
    .ccrm-tab span { display: none; }
    .ccrm-tab.is-active span { display: inline; }
}

/* tab card on the branch view */
.ccrm-tabcard {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.ccrm-tabcard > .portlet-body { padding: 0 !important; }

.ccrm-tabcard .tab-content {
    background: transparent;
    border: none !important;
    padding: 18px 0 0 !important;
}

.ccrm-tabcard .ccrm-formsec .table { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
   Branch view tabs

   Sales / Technical / Engineering share a notes-feed + add-note + visits
   layout; Water Sampling and Products & Services are tables; Orders and
   Consignments are stage-grouped timelines.
   -------------------------------------------------------------------------- */

/* each widget block becomes a sub-card like the form sections */
.ccrm-tabcard .tab-content .portlet.light,
.ccrm-tabcard .tab-content .portlet.light.tasks-widget {
    background: var(--br-surface-lowest) !important;
    border: 1px solid var(--br-hairline) !important;
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow) !important;
    padding: 4px 18px 10px !important;
    margin-bottom: 14px !important;
}

.ccrm-tabcard .tab-content .portlet.light > .portlet-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--br-hairline) !important;
    min-height: 0 !important;
}

.ccrm-tabcard .tab-content .portlet.light > .portlet-title .caption-subject {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-accent) !important;
}

.ccrm-tabcard .tab-content .portlet.light > .portlet-body { padding: 12px 0 0 !important; }

/* "Completed Notes" toggles a hidden block — make that obvious */
.ccrm-tabcard .caption-subject[onclick] { cursor: pointer; }
.ccrm-tabcard .caption-subject[onclick]:hover { color: var(--br-accent-hover) !important; }
.ccrm-tabcard .caption-subject[onclick] .fa { margin-left: 6px; opacity: .6; }

/* --- notes feed --- */
.ccrm-tabcard ul.feeds { list-style: none; margin: 0; padding: 0; }

.ccrm-tabcard ul.feeds > li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid var(--br-hairline);
}

.ccrm-tabcard ul.feeds > li:last-child { border-bottom: none; }

.ccrm-tabcard ul.feeds .col1 { flex: 1 1 auto; min-width: 0; float: none; width: auto; }
.ccrm-tabcard ul.feeds .cont { display: flex; align-items: flex-start; gap: 11px; }
.ccrm-tabcard ul.feeds .cont-col1 { flex: 0 0 auto; }

.ccrm-tabcard ul.feeds .cont-col1 .label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent-10) !important;
    color: var(--br-accent) !important;
    font-size: 10px;
}

.ccrm-tabcard ul.feeds .cont-col2 { flex: 1 1 auto; min-width: 0; }

.ccrm-tabcard ul.feeds .desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--br-on-surface);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.ccrm-tabcard ul.feeds .col2 { flex: 0 0 auto; float: none; width: auto; }

.ccrm-tabcard ul.feeds .date {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    white-space: nowrap;
}

/* empty feed reads as a message rather than a blank gap */
.ccrm-tabcard ul.feeds:empty::after {
    content: 'Nothing logged yet';
    display: block;
    padding: 14px 0;
    font-size: 12.5px;
    color: var(--br-on-surface-variant);
}

/* --- add note form --- */
.ccrm-tabcard #notesForm,
.ccrm-tabcard form[action="updatenotes.php"] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
}

.ccrm-tabcard form[action="updatenotes.php"] textarea.form-control {
    flex: 1 1 auto;
    margin-bottom: 0 !important;
    min-height: 40px;
    resize: vertical;
}

.ccrm-tabcard form[action="updatenotes.php"] .btn {
    flex: 0 0 auto;
    float: none !important;
    margin-bottom: 0 !important;
}

.ccrm-tabcard .btn.green-haze {
    background: var(--br-accent) !important;
    border-color: var(--br-accent) !important;
    color: #fff !important;
}

.ccrm-tabcard .btn.green-haze:hover { background: var(--br-accent-hover) !important; border-color: var(--br-accent-hover) !important; }

/* --- tables inside tabs --- */
.ccrm-tabcard .table-responsive { border: none !important; }

.ccrm-tabcard .table > thead > tr > th {
    background: var(--br-surface-low);
    font-size: 9px !important;
    letter-spacing: .1em;
    white-space: nowrap;
}

.ccrm-tabcard .table.table-bordered,
.ccrm-tabcard .table.table-bordered > thead > tr > th,
.ccrm-tabcard .table.table-bordered > tbody > tr > td {
    border-color: var(--br-hairline) !important;
}

.ccrm-tabcard .table > tbody > tr > td { font-size: 12px; }

/* --- orders / consignments stage groups --- */
.ccrm-tabcard .timeline > li.time-label { margin: 18px 0 10px; }

.ccrm-tabcard .timeline > li.time-label > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--br-surface-low) !important;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    padding: 6px 14px !important;
    color: var(--br-on-surface) !important;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* the stage icon is absolutely positioned on the rail, so the card has to
   leave room for it or it sits on top of the text */
.ccrm-tabcard .timeline > li { padding-left: 0; }

.ccrm-tabcard .timeline > li > .timeline-item {
    border-radius: var(--br-radius-sm) !important;
    padding: 13px 16px 13px 54px;
}

.ccrm-tabcard .timeline > li > i.fa {
    left: 12px;
    top: 11px;
    width: 30px;
    height: 30px;
    border-radius: 10px !important;
    font-size: 11px;
    box-shadow: none;
}

.ccrm-tabcard .timeline > li > .timeline-item > .timeline-header {
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
    font-weight: 700;
}

/* --- products & services cards --- */
.ccrm-toolbar--tab {
    border-radius: var(--br-radius-sm) !important;
    padding: 9px 12px;
    margin-bottom: 16px;
    box-shadow: none;
}

.ccrm-toolbar__count {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    white-space: nowrap;
}

/* one row per product */
.ccrm-prodgrid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ccrm-prod {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow);
    padding: 11px 18px;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.ccrm-prod:hover {
    box-shadow: var(--br-shadow-md);
    border-color: var(--br-accent-20);
}

.ccrm-prod__top { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }

.ccrm-prod__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 9px !important;
    background: var(--br-accent-10);
    color: var(--br-accent);
    font-size: 11px;
}

.ccrm-prod__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.012em;
    color: var(--br-on-surface);
}

.ccrm-prod__price {
    margin: 0;
    flex: 0 0 auto;
    min-width: 116px;
    text-align: right;
}

.ccrm-prod__price > a {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--br-on-surface) !important;
    font-variant-numeric: tabular-nums;
}

.ccrm-prod__price > a:hover { color: var(--br-accent) !important; }
.ccrm-prod__cur { font-size: 13px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-prod__price > a .fa { font-size: 11px; color: var(--br-accent); opacity: .55; }
.ccrm-prod:hover .ccrm-prod__price > a .fa { opacity: 1; }

/* the chart icon plus its tooltip carry this in list mode */
.ccrm-prod__hint { display: none; }

.ccrm-prod__foot {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 186px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    padding-left: 18px;
    border-left: 1px solid var(--br-hairline);
}

.ccrm-prod__k {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-prod__date {
    font-size: 11px;
    font-weight: 700;
    color: var(--br-accent) !important;
    white-space: nowrap;
}

.ccrm-prod__date .fa { font-size: 9px; opacity: .6; margin-left: 3px; }
.ccrm-prod__date.is-never { color: var(--br-on-surface-variant) !important; font-weight: 600; }

@media (max-width: 767px) {
    .ccrm-prod { flex-wrap: wrap; gap: 10px; }
    .ccrm-prod__top { flex: 1 1 100%; }
    .ccrm-prod__price { text-align: left; min-width: 0; }
    .ccrm-prod__foot { border-left: none; padding-left: 0; margin-left: auto; min-width: 0; }
}

/* --- equipment installed: same row anatomy as the products list --- */
.ccrm-toolbar__cta {
    margin-left: 6px;
    white-space: nowrap;
}

.ccrm-eq { padding: 10px 14px 10px 16px; gap: 14px; }

.ccrm-eq.is-inactive { background: var(--br-surface-low); }
.ccrm-eq.is-inactive .ccrm-prod__icon { background: rgba(15, 23, 42, .08); color: var(--br-on-surface-variant); }
.ccrm-eq.is-inactive .ccrm-eq__code { color: var(--br-on-surface-variant) !important; }

.ccrm-eq__id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.ccrm-eq__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--br-accent) !important;
    text-decoration: none !important;
}

.ccrm-eq__code:hover { text-decoration: underline !important; }

.ccrm-eq .ccrm-prod__name { font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-eq .ccrm-prod__top { flex: 0 0 215px; }

.ccrm-eq__meta {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    flex: 1 1 auto;
    min-width: 0;
}

.ccrm-eq__cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.ccrm-eq__cell--wide { flex: 1.6 1 0; }

.ccrm-eq__v {
    font-size: 12px;
    font-weight: 600;
    color: var(--br-on-surface);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccrm-eq__v .ccrm-chip { margin: 0; padding: 2px 9px; font-size: 9.5px; white-space: nowrap; }
.ccrm-eq__cell--chip .ccrm-eq__v { overflow: visible; }

.ccrm-eq__foot { min-width: 150px; padding-left: 14px; }

.ccrm-eq__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding-left: 14px;
    border-left: 1px solid var(--br-hairline);
}

.ccrm-eq__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px !important;
    background: var(--br-surface-low);
    color: var(--br-on-surface-variant) !important;
    font-size: 12px;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease;
}

a.ccrm-eq__btn:hover { background: var(--br-accent-10); color: var(--br-accent) !important; }
a.ccrm-eq__btn.is-danger:hover { background: rgba(225, 29, 72, .12); color: var(--br-rose) !important; }
.ccrm-eq__btn.is-off { opacity: .35; cursor: default; }

@media (max-width: 1199px) {
    .ccrm-eq { flex-wrap: wrap; row-gap: 8px; }
    .ccrm-eq .ccrm-prod__top { flex: 1 1 100%; }
    .ccrm-eq__meta { flex: 1 1 100%; gap: 16px; }
    .ccrm-eq__foot { border-left: none; padding-left: 0; min-width: 0; }
    .ccrm-eq__actions { margin-left: auto; }
}

/* ==========================================================================
   Standalone drawer pages (no theme chrome) and the product order history
   ========================================================================== */
body.ccrm-standalone {
    margin: 0;
    /* Metronic ships body { padding: 0 !important }, so a standalone page —
       every side-card form — would otherwise sit flush against the edges */
    padding: 16px !important;
    background: var(--br-surface);
    font-family: var(--br-font);
    color: var(--br-on-surface);
    -webkit-font-smoothing: antialiased;
}

.ccrm-oh { max-width: 720px; margin: 0 auto; }

.ccrm-oh__head { margin: 2px 2px 14px; }

.ccrm-oh__eyebrow {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-accent);
}

.ccrm-oh__title {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.ccrm-oh__sub { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-oh__sub .fa { margin-right: 4px; color: var(--br-accent); }
.ccrm-oh__head.is-embedded { margin: 0 2px 10px; }
.ccrm-oh__head.is-embedded .ccrm-oh__sub { margin: 0; }

.ccrm-oh__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.ccrm-oh__stat {
    padding: 10px 12px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
}

.ccrm-oh__stat-v {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    color: var(--br-on-surface);
}

.ccrm-oh__stat-v small { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--br-on-surface-variant); }

.ccrm-oh__stat-k {
    display: block;
    margin-top: 2px;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-oh__chart {
    padding: 12px 14px 8px;
    margin-bottom: 14px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
}

.ccrm-oh__chart-title {
    display: block;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

/* column chart */
.ccrm-cols__svg { display: block; width: 100%; height: auto; }

/* wide range: fixed px per column, pan sideways */
.ccrm-cols.is-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.ccrm-cols.is-scroll::-webkit-scrollbar { display: none; }
.ccrm-cols.is-scroll.is-dragging { cursor: grabbing; user-select: none; }
.ccrm-cols.is-scroll .ccrm-cols__svg { width: auto; height: auto; max-width: none; }
.ccrm-oh__chart-hint { float: right; font-style: normal; font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 10px; color: var(--br-on-surface-variant); }
.ccrm-oh__chart-hint .fa { margin-right: 3px; color: var(--br-accent); }
.ccrm-cols__grid { stroke: var(--br-hairline); stroke-width: 1; stroke-dasharray: 2 4; }
.ccrm-cols__bar { fill: var(--br-accent); opacity: .85; }
.ccrm-cols__bar.is-now { fill: var(--br-navy); opacity: 1; }
.ccrm-cols__bar.is-zero { fill: var(--br-hairline); }
.ccrm-cols__bar2 { fill: var(--br-amber); opacity: .9; }
.ccrm-cols__bar2.is-now { opacity: 1; }
.ccrm-cols__bar2.is-hl { fill: #b45309; }
.ccrm-cols__hit { fill: transparent; cursor: pointer; }
.ccrm-cols__hit:hover { fill: var(--br-accent-10); }
.ccrm-cols__bar.is-hl { fill: var(--br-navy); opacity: 1; }
.ccrm-cols__bar.is-zero.is-hl { fill: var(--br-accent-20); }
.ccrm-cols__val { font-family: var(--br-font); font-size: 11px; font-weight: 700; fill: var(--br-on-surface); }
.ccrm-cols__lbl { font-family: var(--br-font); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; fill: var(--br-on-surface-variant); }

/* one card per order line */
.ccrm-oh__list { display: flex; flex-direction: column; gap: 7px; }

/* long lists scroll inside their own box so a hovered month never scrolls the page */
.ccrm-oh__list--box {
    position: relative;
    max-height: min(62vh, 640px);
    overflow-y: auto;
    padding: 2px 4px 2px 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--br-hairline) transparent;
    scroll-behavior: smooth;
}
.ccrm-oh__list--box::-webkit-scrollbar { width: 6px; }
.ccrm-oh__list--box::-webkit-scrollbar-thumb { background: var(--br-hairline); border-radius: 3px; }

.ccrm-oh__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow);
}

.ccrm-oh__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    padding: 6px 0;
    border-radius: 12px !important;
    background: var(--br-accent-10);
    color: var(--br-navy);
    line-height: 1.1;
}

.ccrm-oh__day { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }

/* month <-> orders hover link */
.ccrm-oh__item { transition: opacity .15s ease, border-color .15s ease, box-shadow .15s ease; }
.ccrm-oh__list.is-filtering .ccrm-oh__item:not(.is-hl) { opacity: .35; }
.ccrm-oh__item.is-hl { border-color: var(--br-accent); box-shadow: 0 0 0 3px var(--br-accent-10), var(--br-shadow-md); }
.ccrm-oh__item.is-hl .ccrm-oh__date { background: var(--br-navy); color: #fff; }
.ccrm-oh__mon { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.ccrm-oh__mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

.ccrm-oh__qty {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.ccrm-oh__qty small { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--br-on-surface-variant); margin-left: 2px; }

.ccrm-oh__mid .ccrm-chip { margin: 0; font-size: 9px; padding: 2px 9px; }
.ccrm-chip--ok { background: rgba(5, 150, 105, .12) !important; color: var(--br-emerald) !important; }

.ccrm-oh__order {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--br-accent) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.ccrm-oh__order .fa { font-size: 9px; opacity: .6; margin-left: 2px; }
.ccrm-oh__order:hover { text-decoration: underline !important; }

@media (max-width: 420px) {
    .ccrm-oh__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- sales order read view (drawer / standalone) --- */
.ccrm-so { max-width: 720px; margin: 0 auto; }

.ccrm-so__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ccrm-so__back { flex: 0 0 auto; }
.ccrm-so__badges { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ccrm-so__badges .ccrm-chip { margin: 0; }
.ccrm-so__imp .fa { margin-right: 4px; font-size: 9px; }
.ccrm-so__imp.is-hot { background: rgba(225, 29, 72, .12) !important; color: var(--br-rose) !important; }
.ccrm-so__imp.is-cold { background: var(--br-surface-low) !important; color: var(--br-on-surface-variant) !important; }

.ccrm-so__head { margin: 2px 2px 14px; }

/* stage tracker */
.ccrm-so__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    list-style: none;
    margin: 0 0 12px;
    padding: 12px 14px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    counter-reset: step;
}

.ccrm-so__step { position: relative; min-width: 0; padding-top: 4px; }

/* connector between dots */
.ccrm-so__step + .ccrm-so__step::before {
    content: '';
    position: absolute;
    left: calc(-50% + 14px);
    right: calc(50% + 14px);
    top: 17px;
    height: 2px;
    background: var(--br-hairline);
}

.ccrm-so__step.is-done + .ccrm-so__step::before,
.ccrm-so__step.is-done + .ccrm-so__step.is-done::before { background: var(--br-emerald); }

.ccrm-so__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border-radius: 50% !important;
    background: var(--br-surface-low);
    color: var(--br-on-surface-variant);
    font-size: 11px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.ccrm-so__step.is-done .ccrm-so__dot { background: var(--br-emerald); color: #fff; }
.ccrm-so__step.is-current .ccrm-so__dot { background: var(--br-accent); color: #fff; box-shadow: 0 0 0 4px var(--br-accent-10); }

.ccrm-so__step-label {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-so__step.is-done .ccrm-so__step-label,
.ccrm-so__step.is-current .ccrm-so__step-label { color: var(--br-on-surface); }

.ccrm-so__step-meta {
    display: block;
    margin-top: 3px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--br-on-surface-variant);
    overflow-wrap: anywhere;
}

.ccrm-so__step-meta b { display: block; font-weight: 700; color: var(--br-navy); }
.ccrm-so__step.is-current .ccrm-so__step-meta { color: var(--br-accent); font-weight: 700; }

/* items */
.ccrm-so__items { display: flex; flex-direction: column; gap: 6px; }

.ccrm-so__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 88px 104px 100px;
    gap: 12px;
    align-items: center;
    padding: 9px 12px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: 12px !important;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--br-on-surface);
}

.ccrm-so__item--head {
    padding: 0 12px 2px;
    background: transparent;
    border: none;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-so__c-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 700; }
.ccrm-so__c-name .ccrm-prod__icon { flex: 0 0 26px; width: 26px; height: 26px; font-size: 10px; }
.ccrm-so__item--head .ccrm-so__c-name { font-weight: 700; }
.ccrm-so__c-qty, .ccrm-so__c-pack, .ccrm-so__c-price, .ccrm-so__c-total { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* consignment items have no package column */
.ccrm-so__items--cr .ccrm-so__item { grid-template-columns: minmax(0, 1fr) 90px 110px 110px; }
.ccrm-so__c-price .is-none, .ccrm-so__c-total .is-none { color: var(--br-on-surface-variant); font-weight: 600; }
.ccrm-so__c-pack b { font-weight: 700; }
.ccrm-so__c-pack .is-none { color: var(--br-hairline); }
.ccrm-so__c-price small { font-size: 9.5px; font-weight: 700; color: var(--br-on-surface-variant); margin-left: 1px; }
.ccrm-so__total > span small { display: block; font-size: 8.5px; letter-spacing: .04em; text-transform: none; font-weight: 600; margin-top: 2px; }
.ccrm-so__c-qty small { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-so__c-total { font-weight: 700; }

.ccrm-so__total {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 14px;
    padding: 8px 12px 2px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-so__total b { font-size: 17px; font-weight: 700; letter-spacing: -.03em; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
    .ccrm-so__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 6px; }
    .ccrm-so__step + .ccrm-so__step::before { display: none; }
    /* each item: the product on top, then every figure under its own label */
    .ccrm-so__item--head { display: none; }
    .ccrm-so__item:not(.ccrm-so__item--head), .ccrm-so__items--cr .ccrm-so__item:not(.ccrm-so__item--head) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
    .ccrm-so__item .ccrm-so__c-name { grid-column: 1 / -1; }
    .ccrm-so__item:not(.ccrm-so__item--head) > [class*="ccrm-so__c-"]:not(.ccrm-so__c-name) { text-align: left; white-space: normal; }
    .ccrm-so__item:not(.ccrm-so__item--head) > [class*="ccrm-so__c-"]:not(.ccrm-so__c-name)::before { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
    .ccrm-so__item .ccrm-so__c-qty::before { content: 'Quantity'; }
    .ccrm-so__item .ccrm-so__c-pack::before { content: 'Package'; }
    .ccrm-so__item .ccrm-so__c-price::before { content: 'Unit price'; }
    .ccrm-so__item .ccrm-so__c-total::before { content: 'Line total'; }
}

/* --- dispenser service history (drawer) --- */
.ccrm-oh__title small { display: block; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); letter-spacing: 0; }
.ccrm-oh__sub .ccrm-chip { margin: 0 0 0 8px; font-size: 8.5px; padding: 2px 8px; vertical-align: middle; }
.ccrm-oh__stat-k small { font-weight: 700; letter-spacing: 0; text-transform: none; }
a.ccrm-dh__item { text-decoration: none !important; color: inherit; }
a.ccrm-dh__item:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }
.ccrm-dh__job { font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-dh__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-dh__meta .fa { margin-right: 3px; opacity: .7; }
.ccrm-dh__item .ccrm-act__test { flex: 0 0 auto; }
.ccrm-dh__item .ccrm-oh__order { flex: 0 0 auto; }
.ccrm-standalone .ccrm-so__bar { margin-bottom: 14px; }

/* ==========================================================================
   Stock products: list, edit card, item page
   ========================================================================== */
.ccrm-listcard {
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    overflow: hidden;
    margin-bottom: 22px;
}

/* DataTables toolbar rows (length / info / paging on the left, search + export on the right) */
.ccrm-listcard .dataTables_wrapper > .row { margin: 0; padding: 12px 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.ccrm-listcard .dataTables_wrapper > .row:first-child { border-bottom: 1px solid var(--br-hairline); }
.ccrm-listcard .dataTables_wrapper > .row:last-child { border-top: 1px solid var(--br-hairline); }
.ccrm-listcard .dataTables_wrapper > .row > div { float: none !important; width: auto !important; padding: 0 !important; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ccrm-listcard .dataTables_wrapper > .row > div:last-child { margin-left: auto; }
.ccrm-listcard .dataTables_wrapper > .row:last-child > div:last-child { display: none; }
.ccrm-listcard .dataTables_length label, .ccrm-listcard .dataTables_filter label { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-listcard .dataTables_info { font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); padding: 0 !important; }
.ccrm-listcard .dataTables_filter input { width: 220px; border-radius: var(--br-radius-pill) !important; }
.ccrm-listcard .table-group-actions { margin: 0; }
.ccrm-listcard .dt-buttons { display: inline-flex; gap: 6px; float: none !important; }
.ccrm-listcard .dt-buttons .btn { border-radius: var(--br-radius-pill) !important; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; }
.ccrm-listcard .dataTables_processing { border-radius: var(--br-radius-sm) !important; }

/* the table itself */
.ccrm-dt { border: none !important; }
.ccrm-dt > thead > tr > th {
    background: var(--br-surface-low) !important;
    border: none !important;
    padding: 10px 16px !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant) !important;
    white-space: nowrap;
}
.ccrm-dt > tbody > tr > td { padding: 11px 16px !important; vertical-align: middle !important; border-top: 1px solid var(--br-hairline) !important; font-size: 12.5px; }
.ccrm-dt > tbody > tr:hover > td { background: var(--br-surface) !important; }
.ccrm-dt__id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-dt__name { font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface) !important; text-decoration: none !important; }
.ccrm-dt__name:hover { color: var(--br-accent) !important; }
.ccrm-dt__num { font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-dt__none { color: var(--br-hairline); }
.ccrm-dt__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-dt__price small { font-weight: 700; color: var(--br-on-surface-variant); margin-right: 1px; }
.ccrm-dt .ccrm-chip { margin: 0; }
.ccrm-dt__th-acts { text-align: right; }
.ccrm-dt__acts { display: inline-flex; gap: 6px; justify-content: flex-end; width: 100%; }
.ccrm-dt .bootstrap-switch { border-radius: var(--br-radius-pill) !important; border-color: var(--br-hairline) !important; }

/* edit card */
.ccrm-editform .ccrm-kv.ccrm-mode-edit { display: grid; }
.ccrm-editform__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 2px 0; }
.ccrm-in-money { display: flex; align-items: center; gap: 6px; }
.ccrm-packpick__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccrm-packpick__row > select[name=pack_mode] { flex: 0 0 220px; }
.ccrm-packpick__auto { font-weight: 600; color: var(--br-on-surface); padding: 0 4px; }
.ccrm-packpick__auto.is-none { color: var(--br-on-surface-variant); font-weight: 500; font-style: italic; }
.ccrm-packpick .ccrm-packpick__size, .ccrm-packpick .ccrm-packpick__form { display: none; }
.ccrm-packpick.is-manual .ccrm-packpick__auto { display: none; }
.ccrm-packpick.is-manual .ccrm-packpick__size { display: block; flex: 0 0 110px; }
.ccrm-packpick.is-manual .ccrm-packpick__form { display: block; flex: 0 0 110px; }
.ccrm-catpick .ccrm-catpick__new { display: none; margin-top: 6px; }
.ccrm-catpick.is-new select { display: none; }
.ccrm-catpick.is-new .ccrm-catpick__new { display: block; margin-top: 0; }
.ccrm-in-money > span { font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-in-money .ccrm-in { flex: 1 1 auto; }
.ccrm-pack { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.ccrm-pack b { font-size: 16px; font-weight: 700; }
.ccrm-pack em { font-style: normal; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-pack .ccrm-chip { margin: 0; }

/* item page */
.ccrm-tab__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 7px; margin-left: 4px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent-10); color: var(--br-accent);
    font-style: normal; font-size: 9.5px; font-weight: 700;
}
.ccrm-tab.is-active .ccrm-tab__count { background: rgba(255, 255, 255, .18); color: #fff; }
.ccrm-stat__v small { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-page-head__title .ccrm-status-pill { top: -4px; }

a.ccrm-plrow { text-decoration: none !important; color: inherit; }
.ccrm-plrow .ccrm-prod__name em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-plrow__price { font-size: 15px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ccrm-plrow__diff { display: block; font-size: 10px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-plrow__diff.is-up { color: var(--br-rose); }
.ccrm-plrow__diff.is-down { color: var(--br-emerald); }

a.ccrm-tx { text-decoration: none !important; color: inherit; }
a.ccrm-tx:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }
.ccrm-tx__mid { gap: 5px; }
.ccrm-tx__who { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.ccrm-tx__who em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-tx__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.ccrm-tx__meta .ccrm-chip { margin: 0; font-size: 8.5px; padding: 2px 8px; }
.ccrm-chip--warn { background: rgba(217, 119, 6, .12) !important; color: var(--br-amber) !important; }
.ccrm-tx__qty { flex: 0 0 90px; text-align: right; font-size: 15px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ccrm-tx__qty small { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-tx__price { flex: 0 0 80px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface-variant); font-variant-numeric: tabular-nums; }
.ccrm-tx .ccrm-oh__order { flex: 0 0 auto; }

@media (max-width: 767px) {
    .ccrm-tx { flex-wrap: wrap; }
    .ccrm-tx__mid { flex: 1 1 60%; }
    .ccrm-tx__price { flex: 0 0 auto; margin-left: auto; }   /* wraps under the quantity instead of disappearing */
}

/* --- sales order add / edit: package + line totals in the item rows --- */
.ccrm-so-pack, .ccrm-so-line {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    background: var(--br-surface-low) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
}
.ccrm-so-pack b { font-weight: 700; }
.ccrm-so-pack .is-none { color: var(--br-hairline); }
.ccrm-so-line { color: var(--br-navy); }
.ccrm-so-cell { margin-bottom: 0; }
.ccrm-so-cell .control-label { display: block; padding-top: 0 !important; text-align: left !important; }
.ccrm-so-ordertotal {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 4px 0;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}
.ccrm-so-ordertotal b { font-size: 18px; font-weight: 700; letter-spacing: -.03em; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-so-ordertotal small { flex-basis: 100%; text-align: right; font-size: 8.5px; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.ccrm-so-ordertotal { flex-wrap: wrap; }

/* --- new order / consignment form (drawer) --- */
.ccrm-neworder__lead { display: flex; align-items: center; gap: 6px; margin: 0 2px 12px; font-size: 12.5px; font-weight: 700; }
.ccrm-neworder__lead .fa { color: var(--br-accent); }
.ccrm-neworder__lead em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-neworder .ccrm-formsec__title small { margin-left: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--br-on-surface-variant); }

.ccrm-no__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px 68px 76px 104px 36px 96px 28px;
    gap: 8px;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: 14px !important;
}
.ccrm-no__row--head {
    padding: 0 14px 4px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}
.ccrm-no__c { min-width: 0; }
/* every field spans exactly its column, header labels sit over the values */
.ccrm-no__c > .form-control, .ccrm-no__c .ccrm-in, .ccrm-no__c .ccrm-in-money, .ccrm-no__c .ccrm-so-pack, .ccrm-no__c .ccrm-so-line { width: 100%; }
.ccrm-no__c--name { overflow: hidden; }
.ccrm-no__row--head .ccrm-no__c--qty, .ccrm-no__row--head .ccrm-no__c--price, .ccrm-no__row--head .ccrm-no__c--total { text-align: right; }
.ccrm-no__row--head .ccrm-no__c--unit, .ccrm-no__row--head .ccrm-no__c--pack, .ccrm-no__row--head .ccrm-no__c--free { text-align: center; }
.ccrm-no__c--pack .ccrm-so-pack { justify-content: center; }
.ccrm-no__c--qty .ccrm-in, .ccrm-no__c--price .ccrm-in { text-align: right; }
.ccrm-no__c--pack .ccrm-so-pack, .ccrm-no__c--total .ccrm-so-line { height: 36px; }
.ccrm-no__c--free { display: flex; justify-content: center; }
.ccrm-no__c--rm { display: flex; justify-content: flex-end; }
.ccrm-no .ccrm-prod__rm.is-shown { display: inline-flex; }
.ccrm-no .select2-container { width: 100% !important; }
.ccrm-no .select2-container--bootstrap .select2-selection { min-height: 36px; border-radius: 12px !important; border-color: var(--br-hairline) !important; box-shadow: none !important; font-size: 12.5px; font-weight: 600; }
/* the chosen product must sit on the middle line of the box. The bootstrap theme adds 6px of
   vertical padding, leaving a 22px content box, so the old fixed 34px line-height pushed the name
   below the centre. Centring with flex holds whatever padding or height the theme applies. */
.ccrm-no .select2-container--bootstrap .select2-selection--single { display: flex; align-items: center; }
.ccrm-no .select2-container--bootstrap .select2-selection--single .select2-selection__rendered { line-height: 1.35; flex: 1 1 auto; min-width: 0; }
.ccrm-no .select2-container--bootstrap .select2-selection--single .select2-selection__arrow { height: 100%; }
.ccrm-no__foot { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 6px 2px 0; }
.ccrm-no__foot .ccrm-so-ordertotal { padding-top: 0; }

/* on/off check drawn as a small pill */
.ccrm-check { position: relative; display: inline-flex; width: 34px; height: 20px; margin: 0; cursor: pointer; }
.ccrm-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.ccrm-check span { position: absolute; inset: 0; border-radius: 999px !important; background: var(--br-hairline); transition: background .16s ease; }
.ccrm-check span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50% !important; background: #fff; transition: transform .16s ease; }
.ccrm-check input:checked + span { background: var(--br-emerald); }
.ccrm-check input:checked + span::after { transform: translateX(14px); }

.ccrm-neworder__actions { position: sticky; bottom: 0; padding: 12px 0 4px; background: linear-gradient(to top, var(--br-surface) 70%, transparent); }

/* small bar at the top of a tab pane */
.ccrm-panebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.ccrm-panebar__text { font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }

.ccrm-no__row--cr { grid-template-columns: minmax(0, 1fr) 80px 124px 110px 32px; }
.ccrm-no__c .ccrm-in, .ccrm-no__c .form-control { padding-left: 8px; padding-right: 8px; font-size: 12px; }
.ccrm-no__c--pack .ccrm-so-pack, .ccrm-no__c--total .ccrm-so-line { font-size: 12px; }
.ccrm-no__c--price .ccrm-in-money > span { font-size: 11px; }
.ccrm-no__c--total .ccrm-so-line { justify-content: flex-end; }

/* phones and narrow drawers: each item becomes a small card. The product takes the top line,
   every other field keeps its place under its own label, so nothing has to be hidden. */
@media (max-width: 760px) {
    .ccrm-no__row--head { display: none; }
    .ccrm-no__row:not(.ccrm-no__row--head) {
        position: relative;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas: "name name name" "qty unit pack" "price free total";
        gap: 10px 8px;
        padding: 12px;
    }
    .ccrm-no__row--cr:not(.ccrm-no__row--head) { grid-template-areas: "name name name" "qty price total"; }
    .ccrm-no__c--name { grid-area: name; padding-right: 40px; overflow: visible; }
    .ccrm-no__c--qty { grid-area: qty; }
    .ccrm-no__c--unit { grid-area: unit; }
    .ccrm-no__c--pack { grid-area: pack; }
    .ccrm-no__c--price { grid-area: price; }
    .ccrm-no__c--free { grid-area: free; }
    .ccrm-no__c--total { grid-area: total; }
    .ccrm-no__c--rm { position: absolute; top: 12px; right: 10px; }
    .ccrm-no__c--rm .ccrm-prod__rm { width: 34px; height: 36px; align-items: center; justify-content: center; }
    .ccrm-no__row:not(.ccrm-no__row--head) .ccrm-no__c:not(.ccrm-no__c--name):not(.ccrm-no__c--rm)::before {
        display: block; margin: 0 0 4px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); text-align: left;
    }
    .ccrm-no__c--qty::before { content: 'Qty'; }
    .ccrm-no__c--unit::before { content: 'Unit'; }
    .ccrm-no__c--pack::before { content: 'Package'; }
    .ccrm-no__c--price::before { content: 'Price / KG-L'; }
    .ccrm-no__row--cr .ccrm-no__c--price::before { content: 'Unit price'; }
    .ccrm-no__c--free::before { content: 'Free'; }
    .ccrm-no__c--total::before { content: 'Line total'; }
    .ccrm-no__c--free { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
    .ccrm-no__c--free .ccrm-check { margin-top: 8px; }
    .ccrm-no__c .ccrm-in, .ccrm-no__c .form-control, .ccrm-no .select2-container--bootstrap .select2-selection { font-size: 16px; }   /* 16px stops iOS zooming into the field */
    .ccrm-no__c--pack .ccrm-so-pack, .ccrm-no__c--total .ccrm-so-line { font-size: 13px; }
    .ccrm-no__foot { flex-wrap: wrap; }
}

/* subtotal / VAT / transport / total */
.ccrm-so-sum { margin-left: auto; min-width: 300px; max-width: 420px; padding: 4px 0 0; }
.ccrm-formsec--sum .ccrm-so-sum { max-width: 460px; }
.ccrm-formsec--sum .ccrm-alert { margin-top: 12px; }
.ccrm-so-sum__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 4px; font-size: 12px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-so-sum__row small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0; }
.ccrm-so-sum__row b { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--br-on-surface); }
.ccrm-so-sum__row.is-transport b, .ccrm-so-sum__row.is-transport { color: var(--br-amber); }
.ccrm-so-sum__row.is-total { margin-top: 4px; padding-top: 9px; border-top: 2px solid var(--br-navy); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ccrm-so-sum__row.is-total b { font-size: 19px; letter-spacing: -.03em; font-weight: 700; }
.ccrm-alert { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 9px 12px; border-radius: 12px !important; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.ccrm-alert .fa { margin-top: 2px; }
.ccrm-alert--warn { background: rgba(217, 119, 6, .12); color: #8a5a06; }
.ccrm-so__items .ccrm-so-sum { margin-top: 6px; }

/* --- transactions strips + clickable timeline entries (branch view) --- */
.ccrm-oh__chart--slim { padding: 10px 14px 6px; margin-bottom: 14px; }
.ccrm-cols__val.is-slim { font-size: 9.5px; }
/* the whole entry is the link; it keeps the .timeline-item box so the existing rules apply */
.ccrm-tabcard .timeline > li > a.timeline-item { display: block; color: inherit !important; text-decoration: none !important; cursor: pointer; }
.ccrm-tabcard .timeline > li > .ccrm-tl__actions { position: absolute; right: 18px; bottom: 10px; z-index: 2; }
.ccrm-tl__open { float: right; margin-left: 12px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-accent); white-space: nowrap; }
.ccrm-tl__open .fa { font-size: 11px; }
.ccrm-tl__actions { display: inline-flex; gap: 6px; }
.ccrm-tabcard .timeline > li > .timeline-item.ccrm-tl:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }
.ccrm-tabcard .timeline > li.is-hl > .timeline-item { border-color: var(--br-accent) !important; box-shadow: 0 0 0 3px var(--br-accent-10), var(--br-shadow-md) !important; }
.ccrm-tabcard .timeline.is-filtering > li:not(.is-hl):not(.time-label) { opacity: .4; }
.ccrm-tabcard .timeline > li { transition: opacity .15s ease; }

/* chart legend + hover tooltip */
.ccrm-legend { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px 2px; font-size: 9.5px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-legend__dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px !important; background: var(--br-accent); margin-right: 2px; }
.ccrm-legend__dot.is-vat { background: var(--br-amber); margin-left: 8px; }
.ccrm-oh__chart-title .ccrm-legend { margin: 0 0 0 12px; vertical-align: middle; }
.ccrm-tip {
    position: absolute; z-index: 2000; pointer-events: none;
    min-width: 150px; padding: 8px 11px;
    background: var(--br-navy); color: #fff;
    border-radius: 12px !important; box-shadow: 0 10px 24px rgba(0, 43, 80, .28);
    font-size: 11px; font-weight: 600; line-height: 1.5;
}
.ccrm-tip b { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; margin-bottom: 3px; }
.ccrm-tip span { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ccrm-tip span em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-tip span.is-total { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .25); }
.ccrm-tip .ccrm-legend__dot { margin: 0 6px 0 0; }
.ccrm-tip .ccrm-legend__dot.is-vat { margin-left: 0; }

/* --------------------------------------------------------------------------
   Contacts: people cards + contact card in the drawer
   -------------------------------------------------------------------------- */
.ccrm-toolbar--page { margin-bottom: 18px; }

/* one row per person */
.ccrm-ctgrid { display: flex; flex-direction: column; gap: 7px; }

.ccrm-ct {
    position: relative;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow);
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.ccrm-ct:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }

.ccrm-ct__main { display: flex; align-items: center; gap: 14px; padding: 10px 16px; color: inherit !important; text-decoration: none !important; }
.ccrm-ct__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 40px; width: 40px; height: 40px;
    border-radius: 13px !important;
    background: hsl(var(--ct-h, 210), 55%, 92%);
    color: hsl(var(--ct-h, 210), 45%, 32%);
    font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.ccrm-ct__avatar--lg { flex-basis: 64px; width: 64px; height: 64px; border-radius: 20px !important; font-size: 20px; }
.ccrm-ct__body { display: grid; grid-template-columns: minmax(170px, 1.1fr) minmax(190px, 1.3fr) 150px minmax(220px, 1.5fr); gap: 4px 18px; align-items: center; min-width: 0; flex: 1 1 auto; padding-right: 76px; }
.ccrm-ct__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccrm-ct__name { font-size: 13px; font-weight: 700; letter-spacing: -.015em; color: var(--br-on-surface); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-ct__pos { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-ct__meta { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--br-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-ct__meta .fa { width: 14px; text-align: center; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-ct__meta em { font-style: normal; color: var(--br-hairline); font-weight: 600; }
.ccrm-ct__use { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--br-hairline); font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-ct__use b { color: var(--br-on-surface); font-weight: 700; }
.ccrm-ct__use em { font-style: normal; }
.ccrm-ct__client { color: var(--br-navy); font-weight: 700; margin-left: 2px; }
.ccrm-ct__use .ccrm-chip { margin: 0 0 0 auto; font-size: 8px; padding: 1px 7px; }

.ccrm-ct__acts { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); display: inline-flex; gap: 6px; opacity: 0; transition: opacity .15s ease; }
.ccrm-ct:hover .ccrm-ct__acts, .ccrm-ct:focus-within .ccrm-ct__acts { opacity: 1; }
.ccrm-ct__acts .ccrm-eq__btn { width: 28px; height: 28px; font-size: 11px; }

/* compact rows inside a branch card: no usage column, profile cue at the right */
.ccrm-ctgrid--inset { margin-top: 2px; }
.ccrm-ct--compact .ccrm-ct__body { grid-template-columns: minmax(160px, 1.1fr) minmax(180px, 1.3fr) 140px minmax(200px, 1.2fr); padding-right: 0; }
.ccrm-ct--compact .ccrm-ct__use { justify-content: flex-start; }
.ccrm-ct--compact .ccrm-ct__avatar { display: none; }
.ccrm-ct--compact .ccrm-ct__main { padding: 11px 16px; }
.ccrm-ct--compact .ccrm-ct__id { justify-content: center; }
.ccrm-ct__open { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-accent); white-space: nowrap; }
.ccrm-ct--compact.is-inactive { background: var(--br-surface-low); }
.ccrm-ct--compact.is-inactive .ccrm-ct__name { color: var(--br-on-surface-variant); }
@media (max-width: 1199px) { .ccrm-ct--compact .ccrm-ct__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* contact card (drawer) */
.ccrm-cv__head { display: flex; align-items: center; gap: 16px; margin: 2px 2px 14px; }
.ccrm-cv__who { min-width: 0; }
.ccrm-cv__line { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ccrm-cv__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ccrm-drawer__actions { display: flex; align-items: center; align-self: center; gap: 8px; margin: 0 14px 0 auto; }
.ccrm-drawer__actions:empty { display: none; }
.ccrm-drawer__actions .ccrm-cv__btn { padding: 7px 12px !important; }
.ccrm-cv .ccrm-mode-edit .ccrm-alert { grid-column: 1 / -1; margin-top: 0; }
.ccrm-cv .ccrm-kv__hint.ccrm-kv__i--wide { margin: 0; }
.ccrm-cv__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px !important; font-size: 10px !important; }
.ccrm-cv__btn .fa { font-size: 13px; }
.ccrm-cv__btn--wa, .ccrm-cv__btn--wa:hover { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
.ccrm-cv__btn--wa:hover { background: #1ebe5b !important; }
.ccrm-cv__btn--call, .ccrm-cv__btn--call:hover { background: var(--br-accent) !important; border-color: var(--br-accent) !important; color: #fff !important; }
.ccrm-cv__btn--call:hover { background: var(--br-navy) !important; }
.ccrm-cv__line .ccrm-chip { margin: 0; }
.ccrm-cv .ccrm-kv__v em { font-size: 10px; color: var(--br-on-surface-variant); font-style: normal; margin-left: 6px; font-weight: 600; }
.ccrm-cv__clients { display: flex; flex-direction: column; gap: 10px; }
.ccrm-cv__client { padding: 10px 12px 12px; border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; background: var(--br-surface-lowest); }
.ccrm-cv__clientname { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--br-on-surface) !important; text-decoration: none !important; }
.ccrm-cv__clientname:hover { color: var(--br-accent) !important; }
.ccrm-cv__clientname em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-cv__branches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ccrm-cv__branch {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    color: var(--br-on-surface) !important;
    font-size: 11.5px; font-weight: 700;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease;
}
.ccrm-cv__branch:hover { background: var(--br-accent-10); color: var(--br-accent) !important; }
.ccrm-cv__branch .fa { color: var(--br-accent); font-size: 10px; }
.ccrm-cv__branch .ccrm-chip { margin: 0 0 0 2px; font-size: 8px; padding: 1px 6px; }

@media (max-width: 1199px) {
    .ccrm-ct__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ccrm-ct__use { grid-column: 1 / -1; padding: 6px 0 0; border-left: none; border-top: 1px solid var(--br-hairline); }
}
@media (max-width: 600px) {
    .ccrm-ct__body { grid-template-columns: minmax(0, 1fr); }
    .ccrm-ct__acts { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Branch profile report (screen + print)
   -------------------------------------------------------------------------- */
body.ccrm-rpt { padding: 22px 16px 40px; }
.ccrm-rpt__toolbar { display: flex; justify-content: space-between; gap: 10px; max-width: 980px; margin: 0 auto 14px; }
.ccrm-rpt__paper { max-width: 980px; margin: 0 auto; padding: 34px 40px 30px; background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: var(--br-radius) !important; box-shadow: var(--br-shadow-md); }
.ccrm-rpt__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 2px solid var(--br-navy); }
.ccrm-rpt__title { margin: 4px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: var(--br-on-surface); }
.ccrm-rpt__sub { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-rpt__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); text-align: right; }
.ccrm-rpt__meta .ccrm-rep__logo { margin-bottom: 6px; }
.ccrm-rpt__meta b { color: var(--br-on-surface); }

.ccrm-rpt__kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 20px 0 8px; }
.ccrm-rpt__kpi { padding: 12px 14px; border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; background: var(--br-surface-low); }
.ccrm-rpt__kpi-v { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--br-navy); }
.ccrm-rpt__kpi-k { display: block; margin-top: 3px; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-rpt__kpi-k em { display: block; margin-top: 3px; font-style: normal; font-size: 10px; letter-spacing: 0; text-transform: none; font-weight: 600; }

.ccrm-rpt__section { margin-top: 26px; break-inside: avoid; }
.ccrm-rpt__h { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--br-hairline); font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-rpt__h small { font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-rpt__kv { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ccrm-rpt__findings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ccrm-rpt__findings li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px !important; font-size: 12.5px; font-weight: 600; line-height: 1.5; background: var(--br-surface-low); color: var(--br-on-surface); }
.ccrm-rpt__findings li .fa { margin-top: 3px; }
.ccrm-rpt__findings li.is-good .fa { color: var(--br-emerald); }
.ccrm-rpt__findings li.is-warn { background: rgba(0, 69, 124, .07); }
.ccrm-rpt__findings li.is-warn .fa { color: var(--br-rose); }
.ccrm-rpt__findings li.is-info .fa { color: var(--br-accent); }

.ccrm-rpt__chart { padding: 12px 14px 6px; border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; margin-bottom: 12px; }
.ccrm-rpt__chart .ccrm-legend { margin-left: 12px; }
.ccrm-rpt__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccrm-rpt__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccrm-rpt__card { padding: 12px 14px; border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; min-width: 0; }
.ccrm-rpt__card .ccrm-oh__chart-title { margin-bottom: 8px; }
.ccrm-rpt__note { display: block; margin-top: 2px; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 10px; }
.ccrm-rpt__foot { display: block; margin-top: 8px; font-size: 10px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-rpt__card .ccrm-donut { display: flex; align-items: center; gap: 14px; }
.ccrm-rpt__card .ccrm-donut__svg { width: 120px; flex: 0 0 120px; }

.ccrm-rpt__facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ccrm-rpt__facts > div { padding: 9px 12px; border-radius: 12px !important; background: var(--br-surface-low); }
.ccrm-rpt__facts > div.is-warn { background: rgba(0, 69, 124, .08); }
.ccrm-rpt__facts > div.is-warn b { color: var(--br-rose); }
.ccrm-rpt__facts b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ccrm-rpt__facts span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); margin-top: 2px; }

.ccrm-rpt__table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 8px; }
.ccrm-rpt__table th { text-align: left; padding: 7px 10px; font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); background: var(--br-surface-low); border-bottom: 1px solid var(--br-hairline); }
.ccrm-rpt__table td { padding: 7px 10px; border-bottom: 1px solid var(--br-hairline); font-weight: 600; vertical-align: top; }
.ccrm-rpt__table td em { font-style: normal; font-size: 10px; color: var(--br-on-surface-variant); margin-left: 4px; }
.ccrm-rpt__table td.is-nowrap { white-space: nowrap; }
.ccrm-rpt__table td.is-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.ccrm-rpt__table tr.is-muted td { color: var(--br-on-surface-variant); font-weight: 500; }
.ccrm-rpt__table tr.is-warn td { background: rgba(0, 69, 124, .05); }
.ccrm-rpt__table tr.is-warn td em.is-late, .ccrm-rpt__table tr.is-warn td:first-child em { color: var(--br-rose); }
.ccrm-rpt__table--tight { margin-top: 12px; }
.ccrm-rpt__footer { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--br-hairline); font-size: 10px; font-weight: 600; color: var(--br-on-surface-variant); }

@media (max-width: 900px) {
    .ccrm-rpt__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ccrm-rpt__cols, .ccrm-rpt__cols--2 { grid-template-columns: minmax(0, 1fr); }
    .ccrm-rpt__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ccrm-rpt__findings { grid-template-columns: minmax(0, 1fr); }
    .ccrm-rpt__paper { padding: 22px 18px; }
}

@media print {
    @page { size: A4; margin: 12mm; }
    body.ccrm-rpt { padding: 0; background: #fff !important; }
    .ccrm-rpt__toolbar { display: none !important; }
    .ccrm-rpt__paper { max-width: none; padding: 0; border: none; box-shadow: none; border-radius: 0 !important; }
    .ccrm-rpt__kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .ccrm-rpt__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ccrm-rpt__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ccrm-rpt__section, .ccrm-rpt__card, .ccrm-rpt__chart, .ccrm-rpt__table tr { break-inside: avoid; }
    .ccrm-rpt__table thead { display: table-header-group; }
    a { color: inherit !important; text-decoration: none !important; }
}

/* --------------------------------------------------------------------------
   Sales team list + salesperson profile
   -------------------------------------------------------------------------- */
.ccrm-tm .ccrm-ct__main { align-items: center; }
/* team row body: name + divisions on the left, e-mail + phone stacked on the right */
.ccrm-tm .ccrm-ct__body { flex: 0 0 44%; min-width: 0; padding-right: 0; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-auto-flow: row dense; gap: 3px 16px; }
.ccrm-tm .ccrm-ct__id { grid-column: 1; grid-row: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ccrm-tm .ccrm-ct__id .ccrm-ct__name { flex: 0 1 auto; }
.ccrm-tm .ccrm-ct__id .ccrm-chip { font-size: 8px; padding: 1px 7px; }
.ccrm-tm .ccrm-ct__meta { grid-column: 2; }
.ccrm-tm .ccrm-ct__use { grid-column: 1; grid-row: 2; display: block; border-left: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-tm .ccrm-ct__use .fa { margin-right: 4px; }
.ccrm-tm.is-inactive .ccrm-ct__avatar { filter: grayscale(1); opacity: .6; }
.ccrm-tm.is-inactive .ccrm-ct__name { color: var(--br-on-surface-variant); }
.ccrm-tm__stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; flex: 1 1 auto; min-width: 0; margin-left: 6px; padding: 0 96px 0 18px; border-left: 1px solid var(--br-hairline); }
.ccrm-tm__stat { display: flex; flex-direction: column; min-width: 0; }
.ccrm-tm__stat b { font-size: 14px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--br-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-tm__stat span { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-tm__stat.is-warn b { color: var(--br-rose); }
.ccrm-tm .ccrm-ct__acts { display: flex; align-items: center; gap: 10px; }
.ccrm-tm .bootstrap-switch { margin: 0; }
@media (max-width: 1100px) { .ccrm-tm__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ccrm-tm .ccrm-ct__body { flex-basis: 40%; } }
@media (max-width: 800px) { .ccrm-tm .ccrm-ct__main { flex-wrap: wrap; } .ccrm-tm__stats { flex: 1 1 100%; border-left: none; padding-left: 0; margin-top: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* single-level tabs + panes on the profile page */
.ccrm-tabs--flat { margin-bottom: 0; }
.ccrm-panes { padding: 18px 4px 4px; }
.ccrm-pane { display: none; }
.ccrm-pane.is-active { display: block; animation: 220ms cubic-bezier(.2, 0, 0, 1) both ccrm-vt-in; }
.ccrm-up__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.ccrm-up__grid .ccrm-formsec { margin: 0; }
.ccrm-up__identity { display: flex; gap: 16px; align-items: flex-start; }
.ccrm-up__identity .ccrm-kv { flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccrm-up__cols { margin-top: 12px; }
.ccrm-up__tasks td.is-nowrap { white-space: nowrap; }
.ccrm-up__tasks em.is-late { color: var(--br-rose); font-weight: 700; }
.ccrm-formsec__sub { font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--br-on-surface-variant); margin-left: 8px; }
.ccrm-rpt__kpis--page { margin: 0 0 12px; }
.ccrm-rpt__kpi.is-warn { background: rgba(0, 69, 124, .08); }
.ccrm-rpt__kpi.is-warn .ccrm-rpt__kpi-v { color: var(--br-rose); }
.ccrm-rpt__facts--page { margin: 0 0 14px; }
.ccrm-rpt__facts--page span em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ccrm-acct__name { color: var(--br-on-surface) !important; text-decoration: none !important; }
.ccrm-acct__name:hover b { color: var(--br-accent); }
.ccrm-acct__name span { color: var(--br-on-surface-variant); font-weight: 600; }
.ccrm-acct__go { width: 40px; text-align: right; }
.ccrm-acct td:nth-child(6), .ccrm-acct td:nth-child(7), .ccrm-acct td:nth-child(4), .ccrm-acct td:nth-child(5) { white-space: nowrap; }
.ccrm-acct__go .ccrm-eq__btn { display: inline-flex; }
.ccrm-stat__v em.is-warn { color: var(--br-rose); }
@media (max-width: 1000px) { .ccrm-up__grid { grid-template-columns: minmax(0, 1fr); } }

/* sub-tabs inside a profile pane (Tasks: Planner / Overview) */
.ccrm-subnav { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: var(--br-radius-pill) !important; background: var(--br-surface-low); }
.ccrm-subnav__btn { border: none; background: transparent; padding: 7px 16px; border-radius: var(--br-radius-pill) !important; font-family: var(--br-font); font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--br-on-surface-variant); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s ease, color .15s ease; }
.ccrm-subnav__btn:hover { color: var(--br-on-surface); }
.ccrm-subnav__btn.is-active { background: var(--br-surface-lowest); color: var(--br-navy); box-shadow: var(--br-shadow); }
.ccrm-subpane { display: none; }
.ccrm-subpane.is-active { display: block; }
.ccrm-planner { display: block; width: 100%; min-height: 640px; border: none; border-radius: 0 !important; background: transparent; }
.ccrm-planner__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }

/* --------------------------------------------------------------------------
   Salesperson profile: flat, quiet layout
   -------------------------------------------------------------------------- */
.ccrm-up .ccrm-page-head { margin-bottom: 6px; }
.ccrm-up__strip { display: flex; flex-wrap: wrap; gap: 0 40px; padding: 14px 4px 18px; border-bottom: 1px solid var(--br-hairline); margin-bottom: 18px; }
.ccrm-up__stat b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--br-on-surface); line-height: 1.1; }
.ccrm-up__stat span { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-up__stat span em { font-style: normal; color: var(--br-rose); font-weight: 700; }
.ccrm-up .ccrm-tabs--flat { background: transparent; border: none; padding: 0; margin: 0 0 6px; }
.ccrm-up .ccrm-tabs--flat .ccrm-tabs__primary { padding: 0; gap: 2px; border-bottom: 1px solid var(--br-hairline); border-radius: 0 !important; background: transparent; }
.ccrm-up .ccrm-tabs--flat .ccrm-tab { border-radius: 0 !important; border: none; border-bottom: 2px solid transparent; padding: 10px 14px; margin-bottom: -1px; background: transparent !important; box-shadow: none !important; }
.ccrm-up .ccrm-tabs--flat .ccrm-tab.is-active { border-bottom-color: var(--br-navy); color: var(--br-navy); }
.ccrm-up .ccrm-tabs--flat .ccrm-tab .ccrm-tab__count { background: var(--br-surface-low); color: var(--br-on-surface-variant); }
.ccrm-up .ccrm-tabs--flat .ccrm-tab.is-active .ccrm-tab__count { background: var(--br-navy); color: #fff; }
.ccrm-panes--flat { padding: 18px 0 0; }
.ccrm-up__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ccrm-up__two--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.ccrm-formsec--flat { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 22px !important; }
.ccrm-formsec--flat .ccrm-formsec__title { padding: 0 0 8px; margin: 0 0 12px; border-bottom: 1px solid var(--br-hairline); }
.ccrm-formsec--flat .ccrm-formsec__title .ccrm-legend { margin-left: 10px; }
.ccrm-kv--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccrm-up__notes { list-style: none; margin: 0; padding: 0; }
.ccrm-up__notes li { position: relative; padding: 7px 0 7px 18px; font-size: 13px; line-height: 1.5; color: var(--br-on-surface); border-bottom: 1px solid var(--br-hairline); }
.ccrm-up__notes li:last-child { border-bottom: none; }
.ccrm-up__notes li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--br-accent); }
.ccrm-up__notes li.is-good::before { background: var(--br-emerald); }
.ccrm-up__notes li.is-warn::before { background: var(--br-rose); }
.ccrm-up__facts { display: flex; flex-wrap: wrap; gap: 0 36px; margin: 0 0 18px; padding: 0 4px; }
.ccrm-up__facts > div { padding: 4px 0 12px; }
.ccrm-up__facts b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--br-on-surface); line-height: 1.1; }
.ccrm-up__facts span { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-up__facts span em { font-style: normal; font-weight: 700; margin-left: 4px; }
.ccrm-up__facts span em.is-up { color: var(--br-emerald); }
.ccrm-up__facts span em.is-down { color: var(--br-rose); }
.ccrm-up__facts > div.is-warn b { color: var(--br-rose); }
.ccrm-up__facts--lead b { font-size: 24px; }
.ccrm-up__subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ccrm-up__subhead .ccrm-subnav { margin: 0; }
.ccrm-up .ccrm-toolbar--tab { background: transparent; border: none; padding: 0 0 12px; box-shadow: none; }
.ccrm-table--flat { margin-top: 0; }
.ccrm-table--flat th { background: transparent; padding: 6px 10px; }
.ccrm-table--flat td { padding: 10px 10px; font-weight: 500; }
.ccrm-table--flat td b { font-weight: 700; }
.ccrm-table--flat td em { font-style: normal; color: var(--br-on-surface-variant); }
.ccrm-table--flat td.is-dim { color: var(--br-on-surface-variant); }
.ccrm-table--flat td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.ccrm-table--flat td.is-flag { color: var(--br-rose); font-weight: 700; }
.ccrm-table--flat tr.ccrm-row-link { cursor: pointer; }
.ccrm-table--flat tr.ccrm-row-link:hover td { background: var(--br-surface-low); }
.ccrm-table--flat tr.is-muted td { color: var(--br-on-surface-variant); }
.ccrm-table--flat .ccrm-acct__name span { font-weight: 500; }
.ccrm-up .ccrm-planner { border: none; background: transparent; border-radius: 0 !important; }
.ccrm-todo__add--flat { background: transparent; border: none; padding: 0; margin-bottom: 20px; }
.ccrm-up .ccrm-todo__item { box-shadow: none; }
@media (max-width: 1000px) { .ccrm-up__two, .ccrm-up__two--wide { grid-template-columns: minmax(0, 1fr); } }

/* account rows on the salesperson profile */
.ccrm-acl { display: flex; flex-direction: column; gap: 8px; }
.ccrm-acl__row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; color: inherit !important; text-decoration: none !important; box-shadow: var(--br-shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.ccrm-acl__row:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }
.ccrm-acl__row:hover .ccrm-acl__client { color: var(--br-accent); }
.ccrm-acl__row.is-inactive { background: var(--br-surface-low); box-shadow: none; }
.ccrm-acl__row.is-inactive .ccrm-acl__client { color: var(--br-on-surface-variant); }
.ccrm-acl__dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50% !important; background: var(--br-emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, .14); }
.ccrm-acl__row.is-risk .ccrm-acl__dot { background: var(--br-rose); box-shadow: 0 0 0 3px rgba(225, 29, 72, .14); }
.ccrm-acl__row.is-inactive .ccrm-acl__dot { background: var(--br-hairline); box-shadow: none; }
.ccrm-acl__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ccrm-acl__client { font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease; }
.ccrm-acl__client em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-acl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-acl__meta .fa { margin-right: 3px; font-size: 10px; }
.ccrm-acl__meta .ccrm-chip { font-size: 8px; padding: 1px 7px; }
.ccrm-acl__stats { display: grid; grid-template-columns: repeat(4, minmax(78px, auto)); gap: 18px; flex: 0 0 auto; padding-left: 18px; border-left: 1px solid var(--br-hairline); }
.ccrm-acl__stat { display: flex; flex-direction: column; min-width: 0; }
.ccrm-acl__stat b { font-size: 13.5px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--br-on-surface); white-space: nowrap; }
.ccrm-acl__stat span { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-acl__stat.is-flag b { color: var(--br-rose); }
.ccrm-acl__go { flex: 0 0 auto; color: var(--br-on-surface-variant); font-size: 16px; opacity: .5; }
.ccrm-acl__row:hover .ccrm-acl__go { opacity: 1; color: var(--br-accent); }
@media (max-width: 1000px) { .ccrm-acl__row { flex-wrap: wrap; } .ccrm-acl__stats { flex-basis: 100%; border-left: none; padding-left: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* grouped account rows: client card with its branches folded underneath */
.ccrm-acl__grp { background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; box-shadow: var(--br-shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.ccrm-acl__grp:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }
.ccrm-acl__grp.is-inactive { background: var(--br-surface-low); box-shadow: none; }
.ccrm-acl__grp.is-inactive .ccrm-acl__client { color: var(--br-on-surface-variant); }
.ccrm-acl__grp .ccrm-acl__row { border: none; background: transparent; box-shadow: none; cursor: pointer; }
.ccrm-acl__grp .ccrm-acl__row:hover .ccrm-acl__client { color: var(--br-accent); }
.ccrm-acl__grp.is-risk .ccrm-acl__dot { background: var(--br-rose); box-shadow: 0 0 0 3px rgba(225, 29, 72, .14); }
.ccrm-acl__grp.is-inactive .ccrm-acl__dot { background: var(--br-hairline); box-shadow: none; }
.ccrm-acl__grp .ccrm-acl__go { transition: transform .2s ease; }
.ccrm-acl__grp.is-open .ccrm-acl__go { transform: rotate(180deg); opacity: 1; color: var(--br-accent); }
.ccrm-acl__branches { display: none; border-top: 1px solid var(--br-hairline); padding: 4px 16px 8px 40px; }
.ccrm-acl__grp.is-open .ccrm-acl__branches { display: block; }
.ccrm-acl__branch { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px dashed var(--br-hairline); color: inherit !important; text-decoration: none !important; font-size: 12px; }
.ccrm-acl__branch:last-child { border-bottom: none; }
.ccrm-acl__branch b { font-weight: 700; color: var(--br-on-surface); }
.ccrm-acl__branch:hover b { color: var(--br-accent); }
.ccrm-acl__branch em { font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-acl__branch.is-inactive b { color: var(--br-on-surface-variant); font-weight: 600; }
.ccrm-acl__bdot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50% !important; background: var(--br-emerald); }
.ccrm-acl__branch.is-inactive .ccrm-acl__bdot { background: var(--br-hairline); }
.ccrm-acl__bstats { margin-left: auto; display: flex; gap: 16px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-acl__bstats b { color: var(--br-on-surface); font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-acl__branch > .fa-angle-right { color: var(--br-on-surface-variant); opacity: .5; }
.ccrm-acl__branch--all { justify-content: flex-end; color: var(--br-accent) !important; font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.ccrm-acl__branch--all .fa { margin-right: 4px; }
@media (max-width: 900px) { .ccrm-acl__branch { flex-wrap: wrap; } .ccrm-acl__bstats { flex-basis: 100%; margin-left: 0; padding-left: 17px; flex-wrap: wrap; gap: 8px 14px; } }

/* pill toggle (replaces bootstrap-switch) */
.ccrm-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; user-select: none; font-weight: 700; }
.ccrm-toggle__input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.ccrm-toggle__track { position: relative; display: inline-block; width: 38px; height: 22px; border-radius: 999px !important; background: var(--br-surface-high); transition: background .2s ease; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); }
.ccrm-toggle__knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50% !important; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .2s cubic-bezier(.2, 0, 0, 1); }
.ccrm-toggle__input:checked + .ccrm-toggle__track { background: var(--br-emerald); }
.ccrm-toggle__input:checked + .ccrm-toggle__track .ccrm-toggle__knob { transform: translateX(16px); }
.ccrm-toggle__input:focus-visible + .ccrm-toggle__track { outline: 2px solid var(--br-accent); outline-offset: 2px; }
.ccrm-toggle__text { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); min-width: 52px; }
.ccrm-toggle__input:checked ~ .ccrm-toggle__text { color: var(--br-emerald); }
.ccrm-toggle:hover .ccrm-toggle__track { filter: brightness(.96); }

/* compact branch rows: title and meta on one line, tighter padding, smaller controls */
.ccrm-branchlist .ccrm-branch { padding: 7px 14px 7px 12px; margin-bottom: 5px; gap: 12px; border-radius: 14px !important; }
.ccrm-branchlist .ccrm-branch:hover { transform: none; }
.ccrm-branchlist .ccrm-branch__title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.ccrm-branchlist .ccrm-branch__title > a { display: inline-block; font-size: 12.5px; max-width: 46%; }
.ccrm-branchlist .ccrm-branch__title .ccrm-chip--main { margin-left: 0; }
.ccrm-branchlist .ccrm-branch__meta { margin-top: 0; font-size: 9px; gap: 4px 10px; }
.ccrm-branchlist .ccrm-branch__switch { height: 22px; padding-right: 10px; }
.ccrm-branchlist .ccrm-branch__switch .ccrm-toggle__track { width: 32px; height: 18px; }
.ccrm-branchlist .ccrm-branch__switch .ccrm-toggle__knob { width: 12px; height: 12px; }
.ccrm-branchlist .ccrm-branch__switch .ccrm-toggle__input:checked + .ccrm-toggle__track .ccrm-toggle__knob { transform: translateX(14px); }
.ccrm-branchlist .ccrm-branch__switch .ccrm-toggle__text { font-size: 9px; min-width: 46px; }
.ccrm-branchlist .ccrm-branch__actions { gap: 4px; }
.ccrm-branchlist .ccrm-branch__actions .btn-xs { padding: 3px 8px !important; font-size: 9px !important; }
.ccrm-branchlist .ccrm-branch__actions .ccrm-eq__btn { width: 24px; height: 24px; font-size: 10px; }

/* client status dropdown in the facts strip */
.ccrm-stat--status { margin-left: auto; min-width: 150px; }
.ccrm-status-select { height: 32px !important; padding: 4px 30px 4px 10px !important; font-size: 12px !important; font-weight: 700 !important; border-radius: 999px !important; }
.ccrm-status-select.is-1 { color: var(--br-st-active) !important; border-color: rgba(5, 150, 105, .35) !important; background-color: rgba(5, 150, 105, .06) !important; }
.ccrm-status-select.is-0 { color: var(--br-st-inactive) !important; border-color: rgba(225, 29, 72, .35) !important; background-color: rgba(225, 29, 72, .06) !important; }
.ccrm-status-select.is-2 { color: var(--br-st-reengaged) !important; border-color: rgba(249, 115, 22, .4) !important; background-color: rgba(249, 115, 22, .07) !important; }
.ccrm-status-select.is-3 { color: var(--br-st-closed) !important; border-color: rgba(17, 24, 39, .35) !important; background-color: rgba(17, 24, 39, .06) !important; }
.ccrm-status-select option { color: var(--br-on-surface); font-weight: 600; }
/* the accounts list keeps its own status controls; align them to the same palette */
.client-status-dropdown.status-active { color: var(--br-st-active) !important; border-left-color: var(--br-st-active) !important; }
.client-status-dropdown.status-inactive { color: var(--br-st-inactive) !important; border-left-color: var(--br-st-inactive) !important; }
.client-status-dropdown.status-reengaged { color: var(--br-st-reengaged) !important; border-left-color: var(--br-st-reengaged) !important; }
.client-status-dropdown.status-closed { color: var(--br-st-closed) !important; border-left-color: var(--br-st-closed) !important; }
.client-status-dot.status-active { background: var(--br-st-active) !important; }
.client-status-dot.status-inactive { background: var(--br-st-inactive) !important; }
.client-status-dot.status-reengaged { background: var(--br-st-reengaged) !important; }
.client-status-dot.status-closed { background: var(--br-st-closed) !important; }

/* follow-up lists on the branch page (sales / technical / engineering) */
.ccrm-visits { padding: 4px 2px 6px; }
.ccrm-visits__bar { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-visits__count b { color: var(--br-on-surface); }
.ccrm-visits__count b.is-late { color: var(--br-rose); }
.ccrm-visits__list { display: flex; flex-direction: column; gap: 8px; }
.ccrm-visit { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 8px; cursor: pointer; background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: 14px !important; box-shadow: var(--br-shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.ccrm-visit:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }
.ccrm-visit__date { flex: 0 0 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px 3px; border-radius: 12px !important; background: var(--br-surface-low); color: var(--br-on-surface) !important; text-decoration: none !important; line-height: 1.05; }
.ccrm-visit__date b { font-size: 15px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ccrm-visit__date span { margin-top: 2px; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-visit__date em { margin-top: 2px; font-style: normal; font-size: 9px; font-weight: 600; color: var(--br-accent); }
.ccrm-visit.is-done .ccrm-visit__date { background: rgba(5, 150, 105, .1); }
.ccrm-visit.is-done .ccrm-visit__date b { color: var(--br-st-active); }
.ccrm-visit.is-late .ccrm-visit__date { background: rgba(225, 29, 72, .08); }
.ccrm-visit.is-late .ccrm-visit__date b { color: var(--br-st-inactive); }
.ccrm-visit.is-open .ccrm-visit__date { background: rgba(11, 99, 174, .08); }
.ccrm-visit.is-open .ccrm-visit__date b { color: var(--br-accent); }
.ccrm-visit__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ccrm-visit__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ccrm-visit__who { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-visit__status { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-visit.is-done .ccrm-visit__status { color: var(--br-st-active); }
.ccrm-visit.is-late .ccrm-visit__status { color: var(--br-st-inactive); }
.ccrm-visit.is-open .ccrm-visit__status { color: var(--br-accent); }
/* the excerpt and the assigner stay folded until the row is clicked */
.ccrm-visit__text { display: none; margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: var(--br-on-surface); white-space: pre-line; }
.ccrm-visit.is-expanded .ccrm-visit__text { display: block; }
.ccrm-visit__more { flex: 0 0 auto; color: var(--br-on-surface-variant); opacity: .45; font-size: 12px; transition: transform .2s ease; }
.ccrm-visit.is-expanded .ccrm-visit__more { transform: rotate(180deg); opacity: 1; color: var(--br-accent); }
.ccrm-visit.has-no-text .ccrm-visit__more { visibility: hidden; }
.ccrm-visit__by { display: none; font-size: 10.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-visit.is-expanded .ccrm-visit__by { display: block; }
.ccrm-visit__open { flex: 0 0 auto; white-space: nowrap; padding: 4px 10px !important; font-size: 9.5px !important; }
@media (max-width: 800px) { .ccrm-visit { flex-wrap: wrap; } .ccrm-visit__open { flex-basis: 100%; text-align: center; } }

/* technical report: when/where strip inside the visit summary; logo-only letterhead in the drawer */
.ccrm-rep__when { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; padding: 10px 14px; margin-bottom: 14px; border-radius: 12px !important; background: var(--br-surface-low); }
.ccrm-rep__when .ccrm-kv__v { font-size: 14px; }
.ccrm-rep__letterhead--logo { justify-content: flex-end; padding-bottom: 6px; }

/* technical report form: equipment rows, photo drop zone, signature pads */
.ccrm-frm--wide { max-width: 1120px; }
.ccrm-eqrow { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.4fr) 150px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ccrm-eqrow--head { margin-bottom: 4px; padding: 0 4px; }
.ccrm-eqrow--head span { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-eqrow .ccrm-eq__btn { width: 32px; height: 32px; }
.ccrm-eqrow .eq-type { background: var(--br-surface-low) !important; color: var(--br-on-surface-variant); }
.ccrm-frm__inline-actions--left { justify-content: flex-start; }
.ccrm-drop { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px dashed var(--br-hairline); border-radius: 14px !important; background: var(--br-surface-low); cursor: pointer; margin: 0; font-weight: 500; color: var(--br-on-surface-variant); transition: border-color .15s ease, background .15s ease; }
.ccrm-drop:hover { border-color: var(--br-accent); background: rgba(11, 99, 174, .05); }
.ccrm-drop input { display: none; }
.ccrm-drop .fa { font-size: 22px; color: var(--br-accent); }
.ccrm-drop b { color: var(--br-on-surface); }
.ccrm-drops { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ccrm-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ccrm-thumbs:empty { display: none; }
.ccrm-thumb { position: relative; width: 96px; height: 96px; border-radius: 12px !important; overflow: hidden; border: 1px solid var(--br-hairline); background: var(--br-surface-low); }
.ccrm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ccrm-thumb__rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none; border-radius: 50% !important; background: rgba(15, 23, 42, .75); color: #fff; font-size: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ccrm-sig { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ccrm-sig__pad { display: block; width: 100%; height: 170px; border: 1px dashed var(--br-hairline); border-radius: 14px !important; background: #fff; touch-action: none; cursor: crosshair; }
.ccrm-sig__bar { display: flex; align-items: center; justify-content: space-between; }
.ccrm-sig__hint { font-size: 10.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-frm .ccrm-rep__notice { margin: 0 0 12px; }
@media (max-width: 860px) { .ccrm-eqrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ccrm-eqrow--head { display: none; } .ccrm-eqrow .ccrm-eq__btn { justify-self: end; } }

/* main-branch pin */
.ccrm-chip--main { background: var(--br-navy) !important; color: #fff !important; }
.ccrm-chip--main .fa { font-size: 8px; margin-right: 3px; transform: rotate(35deg); }
.ccrm-eq__btn.ccrm-pin .fa { transform: rotate(35deg); }
.ccrm-eq__btn.ccrm-pin.is-on { background: var(--br-navy) !important; color: #fff !important; border-color: var(--br-navy) !important; }
.ccrm-branch__title .ccrm-chip--main { margin-left: 8px; vertical-align: middle; }
.ccrm-acc__branchlist .par .ccrm-chip--main { margin-left: 8px; font-size: 8px; padding: 1px 7px; }
.ccrm-acc__branchlist .par .over .ccrm-pin.is-on { background: var(--br-navy) !important; color: #fff !important; border-color: var(--br-navy) !important; }
/* "Set as main" sits on the light default button, but .menu-btn forces white text: it was invisible until pinned */
.ccrm-acc__branchlist .par .over .ccrm-pin:not(.is-on),
.par .over .menu-btn.ccrm-pin:not(.is-on) { color: var(--br-navy) !important; background: #fff !important; border: 1px solid var(--br-navy) !important; }
.ccrm-acc__branchlist .par .over .ccrm-pin:not(.is-on):hover,
.par .over .menu-btn.ccrm-pin:not(.is-on):hover { background: var(--br-navy) !important; color: #fff !important; }
.ccrm-acl__branch .ccrm-chip--main { font-size: 8px; padding: 1px 7px; }

/* to-do list */
.ccrm-todo__add { display: grid; grid-template-columns: minmax(0, 1fr) 160px 130px auto; gap: 8px; align-items: start; padding: 12px; border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; background: var(--br-surface-low); margin-bottom: 16px; }
.ccrm-todo__add .ccrm-todo__notes { grid-column: 1 / -1; resize: vertical; min-height: 38px; }
.ccrm-todo__add .btn { height: 38px; }
.ccrm-todo__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.ccrm-todo { list-style: none; margin: 0; padding: 0; }
.ccrm-todo__item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--br-hairline); border-radius: 14px !important; background: var(--br-surface-lowest); border-left-width: 4px; }
.ccrm-todo__item.p1 { border-left-color: var(--br-rose); }
.ccrm-todo__item.p2 { border-left-color: var(--br-accent); }
.ccrm-todo__item.p3 { border-left-color: var(--br-hairline); }
.ccrm-todo__item.is-late { background: rgba(225, 29, 72, .05); }
.ccrm-todo__item.is-done { opacity: .7; border-left-color: var(--br-emerald); }
.ccrm-todo__item.is-done .ccrm-todo__title { text-decoration: line-through; color: var(--br-on-surface-variant); }
.ccrm-todo__item .ccrm-check { margin-top: 2px; flex: 0 0 auto; }
.ccrm-todo__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ccrm-todo__title { font-size: 13px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-todo__note { font-size: 12px; color: var(--br-on-surface-variant); line-height: 1.5; }
.ccrm-todo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-todo__meta em { font-style: normal; font-weight: 600; }
.ccrm-todo__meta .ccrm-chip.is-late { background: rgba(225, 29, 72, .12); color: var(--br-rose); }
.ccrm-todo__item .ccrm-eq__btn { flex: 0 0 auto; }
.ccrm-empty--sm { padding: 18px; }
.ccrm-empty--sm h4 { font-size: 13px; }
@media (max-width: 900px) { .ccrm-todo__cols { grid-template-columns: minmax(0, 1fr); } .ccrm-todo__add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ccrm-todo__add .btn { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Task planner
   -------------------------------------------------------------------------- */
body.ccrm-planner-embed { padding: 14px 16px 20px; }
.ccrm-planner-wrap { max-width: 1400px; }
.ccrm-planner__bar2 { margin-bottom: 14px; }
.ccrm-planner__range { display: inline-flex; align-items: center; gap: 6px; }
.ccrm-planner__range .form-control { width: 140px !important; }
.ccrm-planner__range .fa { color: var(--br-on-surface-variant); font-size: 11px; }
.ccrm-planner__days { display: flex; flex-direction: column; gap: 16px; }
.ccrm-day { }
.ccrm-day__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; }
.ccrm-day__date { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-day.is-past .ccrm-day__date { color: var(--br-on-surface-variant); }
.ccrm-day__tag { font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px !important; background: var(--br-navy); color: #fff; }
.ccrm-day__count { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-task { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; margin-bottom: 8px; background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; box-shadow: var(--br-shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.ccrm-task:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow-md); }
.ccrm-task__when { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 52px; padding-top: 2px; }
.ccrm-task__time { font-size: 13px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--br-on-surface); }
.ccrm-task__dot { width: 10px; height: 10px; border-radius: 50% !important; background: var(--br-accent); box-shadow: 0 0 0 3px rgba(11, 99, 174, .15); }
.ccrm-task.is-done .ccrm-task__dot { background: var(--br-emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, .15); }
.ccrm-task.is-late .ccrm-task__dot { background: var(--br-rose); box-shadow: 0 0 0 3px rgba(225, 29, 72, .15); }
.ccrm-task.is-done { background: var(--br-surface-low); }
.ccrm-task.is-done .ccrm-task__who b { color: var(--br-on-surface-variant); }
.ccrm-task__body { flex: 1 1 auto; min-width: 0; }
.ccrm-task__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ccrm-task__who { color: var(--br-on-surface) !important; text-decoration: none !important; font-size: 13px; }
.ccrm-task__who b { font-weight: 700; letter-spacing: -.01em; }
.ccrm-task__who em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
a.ccrm-task__who:hover b { color: var(--br-accent); }
.ccrm-task__type .fa { margin-right: 4px; font-size: 9px; }
.ccrm-task__zone, .ccrm-task__by { font-size: 10.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-task__zone .fa { margin-right: 3px; }
.ccrm-task__by { margin-left: auto; }
.ccrm-task__notes { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--br-on-surface); }
.ccrm-task__pending { margin-top: 6px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-task__pending summary { cursor: pointer; font-weight: 700; list-style: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px !important; background: var(--br-surface-low); }
.ccrm-task__pending summary::-webkit-details-marker { display: none; }
.ccrm-task__pending ul { margin: 6px 0 0; padding: 0 0 0 4px; list-style: none; }
.ccrm-task__pending li { padding: 3px 0; border-bottom: 1px dashed var(--br-hairline); }
.ccrm-task__ntype { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-accent); margin-right: 4px; }
.ccrm-task__acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ccrm-task__acts .btn-sm { white-space: nowrap; }
.ccrm-task__acts .ccrm-eq__btn { width: 30px; height: 30px; }
.ccrm-chip.is-late { background: rgba(225, 29, 72, .12); color: var(--br-rose); }
.ccrm-modal .modal-header { border-bottom: 1px solid var(--br-hairline); }
.ccrm-modal .modal-title { font-weight: 700; letter-spacing: -.02em; }
.ccrm-modal select[multiple].ccrm-in { height: auto !important; padding: 6px !important; }
@media (max-width: 900px) { .ccrm-task { flex-wrap: wrap; } .ccrm-task__acts { flex-basis: 100%; justify-content: flex-end; } }

/* --------------------------------------------------------------------------
   Drawer forms (tasks, sales reports)
   -------------------------------------------------------------------------- */
body.ccrm-frmpage { padding: 18px 20px 28px !important; }
.ccrm-frm { max-width: 980px; margin: 0 auto; }
.ccrm-frm__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ccrm-frm__title { margin: 4px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.ccrm-frm__title em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-frm .ccrm-formsec { margin-bottom: 14px; }
.ccrm-frm__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ccrm-frm__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccrm-frm__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ccrm-frm__field { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; font-weight: 500; }
.ccrm-frm__field--wide { grid-column: 1 / -1; }
.ccrm-frm__field--2 { grid-column: span 2; }
.ccrm-frm__label { display: flex; align-items: center; gap: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-frm__label em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 10px; }
.ccrm-frm__link { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--br-accent) !important; }
.ccrm-frm textarea.ccrm-in { min-height: 90px; resize: vertical; line-height: 1.5; }
.ccrm-frm .ccrm-frm__report { min-height: 200px; font-size: 13px; }
.ccrm-frm .select2-container--bootstrap .select2-selection { border-radius: 12px !important; border-color: var(--br-hairline); min-height: 40px; font-size: 13px; }
.ccrm-frm .select2-container--bootstrap .select2-selection--single { height: 40px; padding: 8px 12px; }
.ccrm-frm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice { border-radius: 999px; background: var(--br-surface-low); border-color: var(--br-hairline); font-size: 12px; }
.ccrm-frm__notes { margin-top: 12px; padding: 10px 12px; border-radius: 12px !important; background: rgba(11, 99, 174, .06); font-size: 12px; line-height: 1.5; }
.ccrm-frm__notes-body { margin-top: 4px; }
.ccrm-frm__notes-body hr { margin: 6px 0; border-color: var(--br-hairline); }
.ccrm-frm__context { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--br-hairline); border-radius: var(--br-radius-sm) !important; background: var(--br-surface-low); }
.ccrm-frm__context .ccrm-kv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ccrm-frm__pending { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--br-hairline); }
.ccrm-frm__pending-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ccrm-frm__pending-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px !important; background: var(--br-surface-lowest); font-size: 12px; }
.ccrm-frm__pending-list li.is-done { opacity: .55; }
.ccrm-frm__pending-list li.is-done .ccrm-frm__pending-text { text-decoration: line-through; }
.ccrm-frm__pending-text { display: flex; flex-direction: column; gap: 2px; }
.ccrm-frm__pending-text em { font-style: normal; font-size: 10px; color: var(--br-on-surface-variant); }
.ccrm-frm__newcontact { margin-top: 12px; padding: 12px; border: 1px dashed var(--br-hairline); border-radius: 12px !important; background: var(--br-surface-low); }
.ccrm-frm__inline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
/* phones: the buttons wrap onto rows instead of running off the screen, two to a row */
@media (max-width: 560px) { .ccrm-frm__inline-actions .btn { flex: 1 1 calc(50% - 8px); min-width: 0; white-space: normal; } }
.ccrm-frm__actions { display: flex; align-items: center; gap: 8px; padding: 6px 0 0; }
.ccrm-frm__spacer { flex: 1 1 auto; }
.ccrm-seg { display: inline-flex; padding: 3px; border-radius: 999px !important; background: var(--br-surface-low); align-self: flex-start; }
.ccrm-seg label { margin: 0; cursor: pointer; }
.ccrm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ccrm-seg span { display: inline-block; padding: 7px 16px; border-radius: 999px !important; font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); transition: background .15s ease, color .15s ease; }
.ccrm-seg input:checked + span { background: var(--br-navy); color: #fff; }
.ccrm-alert--info { background: rgba(11, 99, 174, .08); color: var(--br-navy); }
.ccrm-comments .portlet-body { padding: 0 !important; }
.ccrm-comment { padding: 10px 12px; margin-top: 8px; border-radius: 12px !important; background: var(--br-surface-low); }
.ccrm-comment__head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.ccrm-comment__head em { font-style: normal; font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-comment__body { margin-top: 4px; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 760px) { .ccrm-frm__grid, .ccrm-frm__grid--3, .ccrm-frm__grid--4 { grid-template-columns: minmax(0, 1fr); } .ccrm-frm__field--2 { grid-column: auto; } .ccrm-frm__context .ccrm-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- report view --- */
.ccrm-rep__eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-accent);
}

.ccrm-rep__body {
    font-size: 13.5px;
    line-height: 1.7;
    color: #2b3f56;
    padding-bottom: 14px;
    white-space: normal;
    word-break: break-word;
}

.ccrm-rep__empty {
    margin: 0 0 14px;
    font-size: 12.5px;
    color: var(--br-on-surface-variant);
}

/* keep the print output clean */
@media print {
    .page-header, .page-sidebar-wrapper, .page-footer, .page-bar,
    .hiddenpr, .ccrm-page-head__actions { display: none !important; }
    .ccrm-formsec { break-inside: avoid; box-shadow: none !important; }
}

/* --- technical report specifics --- */
.ccrm-rep__letterhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 4px 16px;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--br-navy);
}

.ccrm-rep__doctitle {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--br-on-surface);
}

.ccrm-rep__logo { height: 34px; width: auto; }

.ccrm-rep__standalone { margin: 22px 0 12px; }

/* the letterhead is the report's only header: it carries the subject line
   that used to be repeated by a separate .ccrm-page-head above it */
.ccrm-rep__subject {
    margin: 5px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--br-on-surface-variant);
}

.ccrm-rep__subject span { color: var(--br-hairline); margin: 0 2px; }

.ccrm-formsec__title small {
    margin-left: 10px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--br-on-surface-variant);
}

/* signatures */
.ccrm-rep__notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-low);
    font-size: 12px;
    line-height: 1.6;
    color: var(--br-on-surface-variant);
}

.ccrm-rep__notice i { margin-top: 2px; color: var(--br-accent); }
.ccrm-rep__notice strong { color: var(--br-on-surface); }

.ccrm-rep__notice--strong {
    margin: 16px 0 0;
    background: rgba(217, 119, 6, .1);
    color: #8a5a06;
    font-weight: 600;
}

.ccrm-signs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ccrm-sign {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 132px;
    padding: 12px 14px 14px;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-lowest);
}

.ccrm-sign__k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-sign__img {
    align-self: center;
    max-width: 100%;
    max-height: 96px;
    width: auto;
    height: auto;
}

/* stands in for a signature whose file is missing or will not decode */
.ccrm-sign__none {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface);
    font-size: 12px;
    font-weight: 600;
    color: var(--br-on-surface-variant);
}

.ccrm-sign__none i { font-size: 14px; opacity: .65; }

/* attachments */
.ccrm-atts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.ccrm-att {
    display: block;
    overflow: hidden;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-lowest);
    text-decoration: none;
    transition: box-shadow .16s ease, transform .16s ease;
}

.ccrm-att:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 69, 124, .14);
}

.ccrm-att img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.ccrm-att__cap {
    display: block;
    padding: 8px 12px 10px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--br-on-surface-variant);
}

@media (max-width: 767px) {
    .ccrm-signs { grid-template-columns: minmax(0, 1fr); }
}

.ccrm-chip {
    display: inline-flex;
    align-items: center;
    margin: 2px 5px 2px 0;
    padding: 3px 10px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    font-size: 11px;
    font-weight: 700;
    color: var(--br-on-surface);
}

.ccrm-chip--accent {
    background: var(--br-accent-10);
    border-color: var(--br-accent-20);
    color: var(--br-accent);
}

/* signatures */
.ccrm-rep__body + .note,
.note.note-warning {
    border-radius: var(--br-radius-sm) !important;
    border: 1px solid rgba(217, 119, 6, .3) !important;
    background: rgba(217, 119, 6, .07) !important;
    padding: 14px 16px !important;
}

.note.note-warning h4.block {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-amber);
    margin: 0 0 6px;
}

.note.note-warning p { font-size: 12px !important; line-height: 1.6; color: #6b5324; margin: 0; }

.ccrm-tabcard .form-body .form-group h4,
#element-to-print .form-group h4 {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    margin: 0 0 8px;
}

#element-to-print .form-group img.img-responsive {
    max-height: 90px;
    width: auto;
    border-bottom: 1px solid var(--br-hairline);
    padding-bottom: 6px;
}

/* --- accomplished actions (technical report) --- */
.ccrm-actlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.ccrm-act {
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow);
    padding: 12px 16px;
}

.ccrm-act__id {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--br-hairline);
}

.ccrm-act__code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent-10);
    border: 1px solid var(--br-accent-20);
    color: var(--br-accent) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    transition: background .18s ease, color .18s ease;
}

.ccrm-act__code:hover { background: var(--br-accent); color: #fff !important; }
.ccrm-act__code .fa { font-size: 9px; opacity: .8; }

.ccrm-act__code.is-plain {
    background: var(--br-surface-low);
    border-color: var(--br-hairline);
    color: var(--br-on-surface-variant) !important;
}

.ccrm-act__qty {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--br-on-surface);
}

.ccrm-act__disp {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--br-on-surface);
}

.ccrm-act__cols { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.ccrm-act__col { min-width: 0; flex: 0 0 auto; }
.ccrm-act__col--grow { flex: 1 1 220px; }
.ccrm-act__col--test { margin-left: auto; text-align: right; }

.ccrm-act__k {
    display: block;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    margin-bottom: 3px;
}

.ccrm-act__v {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--br-on-surface);
    word-break: break-word;
}

.ccrm-act__test {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--br-radius-pill) !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ccrm-act__test.is-done { background: rgba(5, 150, 105, .12); color: var(--br-emerald); }
.ccrm-act__test.is-other { background: rgba(217, 119, 6, .12); color: var(--br-amber); }
.ccrm-act__test.is-none { background: var(--br-surface-low); color: var(--br-on-surface-variant); }

@media (max-width: 767px) {
    .ccrm-act__col--test { margin-left: 0; text-align: left; }
}

/* --- shared empty state --- */
.ccrm-empty {
    text-align: center;
    padding: 34px 20px;
    background: var(--br-surface-low);
    border: 1px dashed var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    margin: 6px 0 14px;
}

.ccrm-empty > i { font-size: 20px; color: var(--br-on-surface-variant); opacity: .5; }

.ccrm-empty > h4 {
    margin: 10px 0 4px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--br-on-surface);
}

.ccrm-empty > p { margin: 0; font-size: 12px; color: var(--br-on-surface-variant); }

.ccrm-empty-row > td {
    text-align: center !important;
    padding: 26px 12px !important;
    font-size: 12.5px !important;
    color: var(--br-on-surface-variant) !important;
    background: var(--br-surface-low);
}

/* The theme's floating labels sit at #999, which is too faint to scan. */
.form-md-line-input > label,
.form-md-floating-label > label,
.form-group.form-md-line-input > label {
    color: #3d5169 !important;
    font-weight: 700;
}

/* --- contact picker ------------------------------------------------------
   Search results carry position/email/phone, and each added contact is a
   readable card rather than a row of unlabelled readonly inputs.
   ------------------------------------------------------------------------ */

.cp-res { line-height: 1.35; padding: 2px 0; }

.cp-res__name {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--br-on-surface);
}

.cp-res__meta {
    display: block;
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--br-on-surface-variant);
}

.cp-res__meta em { font-style: normal; margin: 0 6px; opacity: .45; }
.cp-res__meta i { margin-right: 3px; opacity: .6; }
.cp-res__pos { color: var(--br-accent); font-weight: 700; }

.contact-row {
    position: relative;
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    padding: 12px 42px 2px 14px;
    margin: 0 0 10px !important;
}

/* label above value: markup is <input> then <label> */
.contact-row .form-group { display: flex; flex-direction: column-reverse; margin-bottom: 10px !important; }

.contact-row .form-md-line-input > label,
.contact-row .form-md-floating-label > label,
.contact-row .form-group > label {
    position: static !important;
    display: block;
    width: auto !important;
    margin: 0 0 2px !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant) !important;
    opacity: 1 !important;
    transform: none !important;
    top: auto !important;
    line-height: 1.3 !important;
}

.contact-row .form-control[readonly] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    font-size: 12.5px !important;
    font-weight: 600;
    color: var(--br-on-surface) !important;
}

.contact-row select.form-control {
    height: 28px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
}

/* remove button becomes a small circle pinned to the card corner */
.contact-row > div:last-child {
    position: absolute;
    top: 9px;
    right: 9px;
    width: auto !important;
    padding: 0 !important;
}

.contact-row > div:last-child > .control-label { display: none !important; }

.contact-row .contact-remove {
    width: 26px !important;
    height: 26px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br-radius-pill) !important;
    font-size: 10px;
}

.ccrm-drawer__frameWrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--br-surface-lowest);
}

.ccrm-drawer__frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ccrm-drawer__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--br-surface-lowest);
    color: var(--br-on-surface-variant);
    font-size: 12.5px;
    z-index: 2;
}

@media (max-width: 767px) {
    .ccrm-drawer--wide .ccrm-drawer__panel, .ccrm-drawer--wide.ccrm-drawer--xl .ccrm-drawer__panel { width: 100%; }
    .ccrm-client-card { padding: 12px 18px; }
}

@media (max-width: 575px) {
    .ccrm-drawer__panel { width: 100%; }
    .ccrm-drawer__head { padding: 18px 18px 14px; }
    .ccrm-drawer__body { padding: 18px; }
}

/* --------------------------------------------------------------------------
   13. Misc components
   -------------------------------------------------------------------------- */

.dropdown-menu {
    border: 1px solid var(--br-hairline) !important;
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow-lg) !important;
    padding: 6px !important;
    margin-top: 8px;
}

.dropdown-menu > li > a {
    border-radius: 9px !important;
    padding: 9px 12px !important;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--br-on-surface) !important;
}

.dropdown-menu > li > a:hover {
    background: var(--br-surface-low) !important;
    color: var(--br-accent) !important;
}

.dropdown-menu > li > a > i { color: rgba(100, 116, 139, .5) !important; }
.dropdown-menu > li > a:hover > i { color: var(--br-accent) !important; }

.badge, .label {
    border-radius: var(--br-radius-pill) !important;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 10px;
}

.alert {
    border-radius: var(--br-radius-sm) !important;
    border: 1px solid transparent;
    font-size: 13px;
    padding: 14px 18px;
}

.modal-content {
    border: none;
    border-radius: var(--br-radius-lg) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, .25);
    overflow: hidden;
}

.modal-header { border-color: var(--br-hairline); padding: 20px 24px; }
.modal-footer { border-color: var(--br-hairline); padding: 16px 24px; }
.modal-body { padding: 24px; }

.modal-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--br-on-surface);
}

.well {
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: none;
}

.page-footer {
    background: transparent !important;
    padding: 20px 32px !important;
    color: rgba(100, 116, 139, .7);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-left: var(--br-sidebar-w);
}

.page-sidebar-closed .page-footer { margin-left: 45px; }
.page-footer .page-footer-inner { color: inherit; }

/* Bridge .custom-scrollbar */
* { scrollbar-width: thin; scrollbar-color: #e2e8f0 transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 9999px !important; }
*::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* --------------------------------------------------------------------------
   14. Login screen — Bridge split layout

   The theme's photo panel (assets/pages/img/login/bg1.jpg) is excluded by
   .gitignore's assets img rule and 404s, so it is rebuilt as a Bridge
   surface panel with soft accent blooms — no missing asset to depend on.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Login: one centred column on a blurred blue field
   -------------------------------------------------------------------------- */
body.ccrm-login {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #2f6fb8 0%, #1f5da3 50%, #0e457f 100%) !important;
    font-family: var(--br-font);
    color: #fff;
    overflow-x: hidden;
}

/* soft out-of-focus blooms behind the form */
.ccrm-login__bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.ccrm-login__bg span { position: absolute; border-radius: 50% !important; filter: blur(70px); opacity: .7; }
.ccrm-login__bg span:nth-child(1) { width: 62vmax; height: 62vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, rgba(96, 150, 215, .7) 0%, rgba(70, 125, 195, .3) 45%, rgba(31, 93, 163, 0) 75%); }
.ccrm-login__bg span:nth-child(2) { width: 52vmax; height: 52vmax; right: -16vmax; top: 4vmax; background: radial-gradient(circle, #002a55 0%, rgba(0, 42, 85, .7) 40%, rgba(31, 93, 163, 0) 75%); }
.ccrm-login__bg span:nth-child(3) { width: 58vmax; height: 58vmax; left: 12vmax; bottom: -30vmax; background: radial-gradient(circle, #003060 0%, rgba(0, 48, 96, .75) 40%, rgba(31, 93, 163, 0) 75%); }

.ccrm-login__wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.ccrm-login__panel { width: 100%; max-width: 380px; text-align: center; padding: 0 !important; }

.ccrm-login__badge {
    display: flex; align-items: center; justify-content: center;
    width: auto; height: auto; margin: 0 auto 6px;
    background: transparent;
}
.ccrm-login__badge img { width: 190px; max-width: 70%; height: auto; display: block; filter: brightness(0) invert(1) drop-shadow(0 8px 22px rgba(0, 30, 60, .35)); }

.ccrm-login__title {
    margin: 0 0 34px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: none;
    color: rgba(255, 255, 255, .92);
}

.ccrm-login__text { margin: -14px 0 22px; font-size: 13px; color: rgba(255, 255, 255, .8); }

/* underline inputs with a leading icon */
.ccrm-login__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .85);
    text-align: left;
}
.ccrm-login__field > .fa { width: 22px; text-align: center; font-size: 17px; color: #fff; }
.ccrm-login__field .form-control,
body.login .login-form .ccrm-login__field .form-control {
    flex: 1 1 auto;
    height: 34px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: .02em;
}
.ccrm-login__field .form-control::placeholder { color: rgba(255, 255, 255, .78); }
.ccrm-login__field .form-control:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px transparent inset; transition: background-color 9999s; }
.ccrm-login__field:focus-within { border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.ccrm-login__eye { border: none; background: transparent; color: rgba(255, 255, 255, .75); font-size: 14px; padding: 0 2px; cursor: pointer; }
.ccrm-login__eye:hover { color: #fff; }

.ccrm-login__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 26px; font-size: 12.5px; }
.ccrm-login__remember { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-weight: 500; color: #fff; }
.ccrm-login__remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.ccrm-login__box { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 3px !important; background: #fff; color: var(--br-navy); font-size: 10px; }
.ccrm-login__box .fa { opacity: 0; }
.ccrm-login__remember input:checked + .ccrm-login__box .fa { opacity: 1; }
.ccrm-login__link, .ccrm-login__link:hover { color: #fff !important; font-style: italic; font-weight: 500; text-decoration: none !important; opacity: .95; }

.ccrm-login__submit,
body.login .login-form .btn.green.ccrm-login__submit,
body.login .forget-form .btn.green.ccrm-login__submit {
    display: block; width: 100%;
    padding: 16px 20px !important;
    background: var(--br-navy) !important;
    border: none !important;
    border-radius: 3px !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .22em;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(0, 43, 80, .35);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ccrm-login__submit:hover { background: #003663 !important; transform: translateY(-1px); box-shadow: 0 18px 34px rgba(0, 43, 80, .4); }

.ccrm-login__error {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 18px; padding: 10px 14px;
    background: rgba(225, 29, 72, .18); border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px !important;
    color: #fff; font-size: 12.5px; font-weight: 600; text-align: left;
}
.ccrm-login__error.alert { padding: 10px 14px !important; }
.ccrm-login__error.display-hide { display: none; }
.ccrm-login__error .close { color: #fff; opacity: .7; margin-left: auto; order: 3; }

.ccrm-login__copy { margin: 34px 0 0; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* the theme's login-5 stylesheet must not reintroduce its layout */
body.ccrm-login .user-login-5 { background: transparent !important; }
body.ccrm-login .user-login-5 .login-content, body.ccrm-login .user-login-5 .login-container { background: transparent !important; min-height: 0; margin: 0; }
body.ccrm-login .forget-form { display: none; }

@media (max-width: 480px) {
    .ccrm-login__panel { max-width: 300px; }
    .ccrm-login__title { font-size: 21px; letter-spacing: .2em; }
}

/* --------------------------------------------------------------------------
   15. Shape enforcement

   Several theme and per-page rules square these off with their own
   `border-radius: 0 !important`, so the rounded shape is asserted here rather
   than relying on cascade order.
   -------------------------------------------------------------------------- */

.btn,
.btn.btn-sm, .btn.btn-xs, .btn.btn-lg,
.btn-group > .btn,
.btn-group > .btn:first-child,
.btn-group > .btn:last-child,
.input-group-btn > .btn,
a.btn, button.btn, input[type="submit"], input[type="button"],
/* the list pages square these off at `.par .over .menu-btn` with !important */
.par .over .menu-btn,
.par .over .menu-btn.btn,
.menu-btn, a.menu-btn {
    border-radius: var(--br-radius-pill) !important;
}

.portlet,
.portlet.light,
.dashboard-stat,
.dashboard-stat.dashboard-stat-v2,
.timeline > li > .timeline-item,
.modal-content,
.well,
.panel,
.ccrm-hello,
.ccrm-kpi {
    border-radius: var(--br-radius) !important;
}

.dashboard-stat.dashboard-stat-v2 { border-radius: var(--br-radius-lg) !important; }

.form-control,
select.form-control,
textarea.form-control,
.input-group-addon,
.select2-container .select2-choice,
.select2-container--default .select2-selection--single,
.select2-dropdown,
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--br-radius-sm) !important;
}

.badge, .label,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_paginate .paginate_button,
.Zebra_Pagination ul li a {
    border-radius: var(--br-radius-pill) !important;
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .page-content-wrapper .page-content,
    body.page-content-white .page-content,
    .page-footer {
        margin-left: 0 !important;
        padding: 20px 16px 40px !important;
    }

    /* The theme drops the header to position:relative on phones while the body
       still reserves space for it, leaving an empty band on top. Keep it fixed
       so the offset and the header agree, and so nav stays reachable. */
    .page-header.navbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9995;
    }

    /* Metronic tints .top-menu a lighter blue on mobile, which shows as a
       block behind the header controls. */
    .page-header.navbar .top-menu,
    .page-header.navbar .top-menu .navbar-nav {
        background: transparent !important;
    }

    /* Keep the logo and the controls on one row — the 256px logo column plus
       the menu overflows a phone width and wraps the chips below the header. */
    .page-header.navbar .page-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: var(--br-header-h);
        padding-right: 10px;
    }

    .page-header.navbar .page-logo {
        width: auto;
        flex: 0 0 auto;
        padding: 0 10px 0 16px;
        gap: 10px;
    }

    .page-header.navbar .page-logo img.logo-default { height: 34px; }

    .page-header.navbar .top-menu { margin-left: auto; flex: 0 0 auto; }
    .page-header.navbar .top-menu .navbar-nav { height: var(--br-header-h); padding-right: 0; }
    .page-header.navbar .top-menu .navbar-nav > li.dropdown-user .username { display: none; }

    .page-header.navbar .top-menu .navbar-nav > li.dropdown > .dropdown-toggle {
        height: 38px;
        min-width: 38px;
        padding: 0 10px;
        margin-left: 6px;
    }

    .page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    /* Mobile drawer: full-width panel under the fixed header, scrollable,
       and closed by default until the responsive toggler opens it. */
    .page-sidebar,
    .page-sidebar.navbar-collapse {
        width: 100%;
        border-right: none;
        max-height: calc(100vh - var(--br-header-h));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 12px 24px -12px rgba(0, 32, 58, .5);
    }

    .page-sidebar-wrapper { background: transparent !important; }

    .page-sidebar .page-sidebar-menu { padding: 10px 12px 20px !important; }

    /* Bigger touch targets on phones */
    .page-sidebar .page-sidebar-menu > li > a {
        padding: 13px 16px !important;
        font-size: 14px;
    }

    .page-sidebar .page-sidebar-menu .sub-menu > li > a {
        padding: 11px 14px !important;
        font-size: 13.5px;
    }

    .page-sidebar .page-sidebar-menu > li.heading > h3 { padding: 14px 16px 6px; }

    .dashboard-stat.dashboard-stat-v2 { min-height: 140px; padding: 20px !important; }
    .dashboard-stat.dashboard-stat-v2 > .details { min-height: 92px; }
    .dashboard-stat.dashboard-stat-v2 > .details > .number { font-size: 36px !important; }

    .page-title { font-size: 21px !important; }
}


/* ---- Stock products: product lines > categories > items ---- */
.ccrm-listcard--inv { padding: 14px 18px 18px; }
.ccrm-listcard--inv .ccrm-tabs { margin-bottom: 10px; }
.ccrm-tab.is-quiet { opacity: .6; }
.ccrm-inv__bar { margin-bottom: 8px; }
.ccrm-inv__seg { display: inline-flex; background: var(--br-surface-high); border-radius: 999px; padding: 3px; gap: 2px; }
.ccrm-inv__seg > button { border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); cursor: pointer; transition: background .15s ease, color .15s ease; }
.ccrm-inv__seg > button.is-on { background: #fff; color: var(--br-accent); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.ccrm-inv__fold { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); cursor: pointer; padding: 6px 10px; border-radius: 999px; }
.ccrm-inv__fold:hover { background: var(--br-surface-high); color: var(--br-on-surface); }
.ccrm-inv__hint { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--br-surface); color: var(--br-on-surface-variant); font-size: 13px; }
.ccrm-inv__hint .fa { color: var(--br-accent); }
.ccrm-cat { border-radius: 18px; background: #fff; border: 1px solid var(--br-line); margin-bottom: 12px; overflow: hidden; }
.ccrm-cat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; user-select: none; background: var(--br-surface); }
.ccrm-cat__head:hover { background: var(--br-surface-high); }
.ccrm-cat__chev { font-size: 11px; color: var(--br-on-surface-variant); transition: transform .2s ease; }
.ccrm-cat.is-folded .ccrm-cat__chev { transform: rotate(-90deg); }
.ccrm-cat.is-folded .ccrm-cat__body { display: none; }
.ccrm-cat__title { margin: 0; font-size: 14px; font-weight: 700; color: var(--br-on-surface); letter-spacing: .01em; flex: 1 1 auto; }
.ccrm-cat--none .ccrm-cat__title { color: var(--br-on-surface-variant); font-weight: 600; }
.ccrm-cat__n { font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); background: #fff; border-radius: 999px; padding: 3px 10px; }
.ccrm-cat__body { padding: 6px 10px 10px; }
.ccrm-cat__sub + .ccrm-cat__sub { margin-top: 6px; }
.ccrm-cat__subtitle { margin: 8px 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-accent); }
.ccrm-cat__subtitle > span { color: var(--br-on-surface-variant); font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.ccrm-inv { display: flex; flex-direction: column; gap: 2px; }
.ccrm-inv__row { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 12px; transition: background .15s ease; }
.ccrm-inv__row:hover { background: var(--br-surface); }
.ccrm-inv__row.is-inactive .ccrm-inv__name { color: var(--br-on-surface-variant); text-decoration: line-through; text-decoration-color: rgba(15, 23, 42, .25); }
.ccrm-inv__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: inherit !important; text-decoration: none !important; }
.ccrm-inv__name { font-size: 13.5px; font-weight: 700; color: var(--br-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-inv__row:hover .ccrm-inv__name { color: var(--br-accent); }
.ccrm-inv__desc { font-size: 12px; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-inv__desc > i { font-style: normal; opacity: .5; }
.ccrm-inv__use { font-weight: 600; }
.ccrm-inv__pack { flex: 0 0 84px; font-size: 12px; color: var(--br-on-surface-variant); text-align: right; font-variant-numeric: tabular-nums; }
.ccrm-inv__pack > b { color: var(--br-on-surface); font-size: 13px; }
.ccrm-inv__price { flex: 0 0 96px; text-align: right; font-size: 13.5px; font-weight: 700; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-inv__price > small { font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); margin-left: 2px; }
.ccrm-inv__none { color: var(--br-on-surface-variant); opacity: .6; }
.ccrm-inv__row .ccrm-toggle { flex: 0 0 auto; }
.ccrm-inv__go, .ccrm-inv__del { flex: 0 0 auto; }
.ccrm-chip--line-hygiene { background: #e5f4ff; color: #0b63b8; }
.ccrm-chip--line-water { background: #e2f7f3; color: #0f766e; }
.ccrm-chip--line-equipment { background: #eef0f5; color: #3b4a63; }
.ccrm-chip--line-services { background: #fdf1e3; color: #9a5b12; }
@media (max-width: 900px) {
    .ccrm-inv__row .ccrm-toggle__text { display: none; }
    .ccrm-inv__pack { flex: 0 0 auto; }
}


/* ---- Client price list (branches/pricelist_report.php) ---- */
.ccrm-pl__tip { align-self: center; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-pl__tip .fa { color: var(--br-accent); margin-right: 4px; }
.ccrm-pl__paper { padding: 30px 36px 26px; }
.ccrm-pl__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--br-navy); }
.ccrm-pl__brand { display: flex; align-items: center; gap: 18px; }
.ccrm-pl__logo { height: 44px; width: auto; }
.ccrm-pl__title { margin: 2px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--br-on-surface); }
.ccrm-pl__sub { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-pl__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; margin: 0; min-width: 300px; }
.ccrm-pl__meta > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ccrm-pl__meta dt, .ccrm-pl__party dt, .ccrm-pl__terms dt { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); margin: 0; }
.ccrm-pl__meta dd { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); font-variant-numeric: tabular-nums; text-align: right; }
.ccrm-pl__parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ccrm-pl__party { padding: 12px 14px; border: 1px solid var(--br-hairline); border-radius: 14px !important; background: var(--br-surface-low); }
.ccrm-pl__party h3 { margin: 0 0 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-accent); }
.ccrm-pl__party dl { margin: 0; display: grid; gap: 5px; }
.ccrm-pl__party dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ccrm-pl__party dd { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); min-height: 1.3em; }
.ccrm-pl__party dd small { font-weight: 600; color: var(--br-on-surface-variant); margin-left: 4px; }
.ccrm-pl__terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.ccrm-pl__terms > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 14px; border-radius: 12px !important; background: rgba(0, 69, 124, .06); }
.ccrm-pl__terms dd { margin: 0; font-size: 12px; font-weight: 600; color: var(--br-on-surface); line-height: 1.45; }
.ccrm-pl__line { margin: 26px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--br-on-surface-variant); display: flex; align-items: center; gap: 12px; }
.ccrm-pl__line::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--br-hairline); }
.ccrm-pl__line.is-hygiene { color: #0b63b8; }
.ccrm-pl__line.is-water { color: #0f766e; }
.ccrm-pl__line.is-equipment { color: #3b4a63; }
.ccrm-pl__line.is-services { color: #9a5b12; }
.ccrm-pl__cat { margin-top: 18px; break-inside: avoid; }
.ccrm-pl__cathead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 14px; border-radius: 12px 12px 0 0 !important; background: var(--br-navy); color: #fff; }
.ccrm-pl__cathead h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.ccrm-pl__cathead span { font-size: 10.5px; font-weight: 600; opacity: .8; }
.ccrm-pl__table { width: 100%; border-collapse: collapse; border: 1px solid var(--br-hairline); border-top: 0; }
.ccrm-pl__table th { padding: 7px 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); text-align: left; background: var(--br-surface-low); border-bottom: 1px solid var(--br-hairline); }
.ccrm-pl__table td { padding: 7px 12px; font-size: 12px; font-weight: 500; color: var(--br-on-surface); border-bottom: 1px solid var(--br-hairline); vertical-align: top; line-height: 1.4; }
.ccrm-pl__table tr:last-child td { border-bottom: 0; }
.ccrm-pl__sub td { padding: 8px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-accent); background: #fff; border-bottom: 0; }
.ccrm-pl__item .ccrm-pl__c-name { font-weight: 700; white-space: nowrap; }
.ccrm-pl__c-desc { width: 32%; color: var(--br-on-surface-variant); }
/* the item code or barcode number, first in the line */
.ccrm-pl__c-code { width: 13%; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--br-on-surface-variant); }
.ccrm-pl__c-use { width: 13%; white-space: nowrap; }
.ccrm-pl__c-pack { width: 10%; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.ccrm-pl__c-price { width: 12%; white-space: nowrap; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-pl__c-price small { font-weight: 600; color: var(--br-on-surface-variant); margin-left: 2px; }
.ccrm-pl__dim { color: var(--br-on-surface-variant); opacity: .7; font-weight: 500; }
.ccrm-pl__conditions { margin-top: 24px; padding: 12px 14px; border: 1px solid var(--br-hairline); border-radius: 14px !important; }
.ccrm-pl__conditions h3 { margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-pl__conditions p { margin: 0; font-size: 11px; font-weight: 500; line-height: 1.55; color: var(--br-on-surface); }
.ccrm-pl__sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.ccrm-pl__sign > div { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--br-on-surface); }
.ccrm-pl__sign span { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-pl__sign b { font-size: 13px; min-height: 1.3em; display: block; }
.ccrm-pl__sign em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-pl__edit { outline: none; border-bottom: 1px dotted rgba(0, 69, 124, .45); cursor: text; }
.ccrm-pl__edit:focus { background: rgba(0, 69, 124, .06); border-bottom-color: var(--br-accent); }
.ccrm-pl__edit:empty::before { content: attr(data-placeholder); color: var(--br-on-surface-variant); opacity: .55; font-weight: 500; }
@media print {
    .ccrm-pl__paper { padding: 0; border: 0; box-shadow: none; max-width: none; }
    .ccrm-pl__edit { border-bottom: 0; }
    .ccrm-pl__edit:empty::before { content: ""; }
    .ccrm-pl__cathead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ccrm-pl__cat { break-inside: auto; }
    .ccrm-pl__table tr { break-inside: avoid; }
    .ccrm-pl__cathead, .ccrm-pl__table thead { break-after: avoid; }
}
.ccrm-pl__actions { display: inline-flex; gap: 8px; }
/* PDF export: the paper is captured exactly as on screen (980px wide) and scaled to the A4 width */
body.is-exporting .ccrm-pl__paper,
body.ccrm-rpt.is-exporting .ccrm-pl__paper { margin: 0; padding: 0; border: 0; box-shadow: none; border-radius: 0 !important; max-width: none; box-sizing: border-box; }
body.is-exporting .ccrm-pl__edit { border-bottom: 0; background: transparent; }
body.is-exporting .ccrm-pl__edit:empty::before { content: ""; }

/* ---- Sidebar: open department = a quiet list, blocks separated by small captions ---- */
.page-sidebar .page-sidebar-menu .sub-menu {
    border-left: 0;
    margin: 4px 0 8px 0 !important;
    padding: 6px 8px 8px 8px !important;
    background: rgba(255, 255, 255, .05) !important;
    border-radius: 14px !important;
}
.page-sidebar .page-sidebar-menu .sub-menu > li > a { padding: 7px 10px 7px 22px !important; font-size: 12.5px; position: relative; }
.page-sidebar .page-sidebar-menu .sub-menu > li > a > i { display: none; }
.page-sidebar .page-sidebar-menu .sub-menu > li > a::before {
    content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
    border-radius: 50%; background: rgba(255, 255, 255, .28); transition: background .2s ease, transform .2s ease;
}
.page-sidebar .page-sidebar-menu .sub-menu > li:hover > a::before { background: rgba(255, 255, 255, .7); }
.page-sidebar .page-sidebar-menu .sub-menu > li.active > a { background: #fff !important; color: var(--br-navy) !important; box-shadow: 0 2px 8px rgba(0, 32, 58, .25); }
.page-sidebar .page-sidebar-menu .sub-menu > li.active > a::before { background: var(--br-accent); transform: scale(1.25); }
.page-sidebar .page-sidebar-menu .sub-menu > li > a > .selected { display: none !important; }
.page-sidebar .page-sidebar-menu .sub-menu > li.ccrm-nav-sub { list-style: none; padding: 10px 10px 3px; }
.page-sidebar .page-sidebar-menu .sub-menu > li.ccrm-nav-sub:first-child { padding-top: 4px; }
.page-sidebar .page-sidebar-menu .sub-menu > li.ccrm-nav-sub > span {
    display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.page-sidebar .page-sidebar-menu > li.ccrm-nav-disabled > a > .ccrm-nav-soon { margin-left: auto; }

/* ---- Branch picker (New Order / New Consignment) ---- */
.ccrm-pick__only { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); cursor: pointer; }
.ccrm-pick__only input { margin: 0; }
.ccrm-pick .ccrm-acl__row { padding: 11px 16px; }
.ccrm-pick .ccrm-acl__branch { cursor: pointer; }
.ccrm-pick__cta { font-size: 11px; font-weight: 700; color: var(--br-accent); opacity: 0; transition: opacity .15s ease; }
.ccrm-pick .ccrm-acl__branch:hover .ccrm-pick__cta { opacity: 1; }
.ccrm-pick__go { flex: 0 0 auto; margin-right: 6px; }

/* ==========================================================================
   ERP navigation: module rail with popup menus (includes/sidebar.php)
   Hover (or click) a module -> popup with its pages; hover a captioned group
   inside -> second popup to the right. The sidebar itself is just the rail.
   ========================================================================== */
:root { --br-rail-w: 84px; --br-pop-w: 250px; }
@media (min-width: 992px) {
    body.page-header-fixed .page-sidebar { overflow: visible !important; }   /* popups reach outside the rail */
    .page-header.navbar .page-logo { width: auto; padding-right: 18px; }
}
.page-sidebar .ccrm-erp { position: relative; height: 100%; min-height: calc(100vh - var(--br-header-h)); }
.ccrm-rail { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: calc(100vh - var(--br-header-h)); padding: 12px 8px 16px; background: rgba(0, 0, 0, .16); }
.ccrm-rail__item { position: relative; list-style: none; }
.ccrm-rail__spacer { flex: 1 1 auto; list-style: none; }
.ccrm-rail__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 100%; min-height: 58px; padding: 8px 2px 7px; border: 0; background: transparent; color: rgba(255, 255, 255, .62); border-radius: 14px !important; font: inherit; font-size: 9px; font-weight: 600; letter-spacing: .02em; line-height: 1.15; text-align: center; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ccrm-rail__btn > i { font-size: 17px; line-height: 1; }
.ccrm-rail__btn > span { max-width: 100%; white-space: nowrap; }
a.ccrm-rail__btn { text-decoration: none !important; }
a.ccrm-rail__btn:hover { color: #fff; }
.ccrm-rail__item:hover > .ccrm-rail__btn, .ccrm-rail__item.is-open > .ccrm-rail__btn { background: rgba(255, 255, 255, .12); color: #fff; }
.ccrm-rail__btn:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 1px; }
.ccrm-rail__item.is-current > .ccrm-rail__btn { background: #fff; color: var(--br-navy); box-shadow: 0 2px 8px rgba(0, 32, 58, .3); }
.ccrm-rail__item.is-current:hover > .ccrm-rail__btn { background: #fff; color: var(--br-navy); }
.ccrm-rail__item.is-disabled > .ccrm-rail__btn { opacity: .36; cursor: default; pointer-events: none; }
.ccrm-rail__item.is-disabled > .ccrm-rail__btn > em { font-style: normal; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }

/* popup (module) and sub-popup (group): hidden until hover / open */
.ccrm-pop { display: none; position: absolute; top: -6px; left: 100%; z-index: 1200; width: var(--br-pop-w); padding-left: 10px; }   /* padding-left bridges the gap so the pointer can travel */
.ccrm-rail__item:hover > .ccrm-pop, .ccrm-rail__item.is-open > .ccrm-pop, .ccrm-rail__item:focus-within > .ccrm-pop { display: block; }
.ccrm-pop__card { background: #fff; border-radius: 18px !important; box-shadow: 0 18px 44px -14px rgba(0, 32, 58, .45), 0 0 0 1px rgba(0, 32, 58, .06); padding: 8px; animation: ccrmPopIn .14s ease-out; }
@keyframes ccrmPopIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.ccrm-pop__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--br-hairline); }
.ccrm-pop__head > i { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px !important; background: var(--br-surface-high); color: var(--br-navy); font-size: 14px; }
.ccrm-pop__head h2 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--br-on-surface); letter-spacing: -.01em; line-height: 1.15; }
.ccrm-pop__head p { margin: 2px 0 0; font-size: 11px; font-weight: 500; color: var(--br-on-surface-variant); }
.ccrm-pop__head--sub { padding: 6px 10px 8px; }
.ccrm-pop__head h3 { margin: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-accent); }
.ccrm-pop__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px !important; color: var(--br-on-surface) !important; font-size: 12.5px; font-weight: 500; text-decoration: none !important; transition: background .12s ease, color .12s ease; }
.ccrm-pop__link > i { flex: 0 0 15px; width: 15px; text-align: center; font-size: 12px; line-height: 1; color: var(--br-on-surface-variant); }
.ccrm-pop__link:hover { background: var(--br-surface); color: var(--br-accent) !important; }
.ccrm-pop__link:hover > i { color: var(--br-accent); }
.ccrm-pop__link.is-active { background: var(--br-navy); color: #fff !important; font-weight: 700; }
.ccrm-pop__link.is-active > i { color: #fff; }

/* a captioned group is a row that opens the second popup */
.ccrm-pop__grp { position: relative; margin-top: 2px; }
.ccrm-pop__grow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px !important; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); transition: background .12s ease; }
.ccrm-pop__grow > span { flex: 1 1 auto; }
.ccrm-pop__grow > em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--br-on-surface-variant); background: var(--br-surface-high); border-radius: 999px !important; padding: 1px 7px; }
.ccrm-pop__grow > .ccrm-pop__gi { flex: 0 0 15px; width: 15px; text-align: center; font-size: 12px; line-height: 1; color: var(--br-on-surface-variant); }
.ccrm-pop__grow > .ccrm-pop__chev { flex: 0 0 auto; font-size: 13px; line-height: 1; color: var(--br-on-surface-variant); }
.ccrm-pop__grp:hover > .ccrm-pop__grow > i, .ccrm-pop__grp.is-current > .ccrm-pop__grow > .ccrm-pop__gi { color: inherit; }
.ccrm-pop__grp:hover > .ccrm-pop__grow, .ccrm-pop__grp.is-open > .ccrm-pop__grow { background: var(--br-surface); color: var(--br-accent); }
.ccrm-pop__grp.is-current > .ccrm-pop__grow { color: var(--br-navy); }
.ccrm-pop__grp.is-current > .ccrm-pop__grow > em { background: var(--br-navy); color: #fff; }
.ccrm-pop--sub { top: -8px; left: 100%; padding-left: 6px; width: 236px; }
.ccrm-pop__grp:hover > .ccrm-pop--sub, .ccrm-pop__grp.is-open > .ccrm-pop--sub, .ccrm-pop__grp:focus-within > .ccrm-pop--sub { display: block; }

/* phones and tablets: the burger in the header opens the menu as a full-height panel
   under the header; modules are accordion rows, groups open inline, the popups are gone */
@media (max-width: 991px) {
    .page-sidebar.navbar-collapse, .page-sidebar.navbar-collapse.collapse, .page-sidebar.navbar-collapse.in {
        display: none !important; position: fixed !important; top: var(--br-header-h); left: 0; right: 0; bottom: 0; z-index: 9994;
        width: auto !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch;
        background: var(--br-navy) !important;
    }
    body.ccrm-nav-open .page-sidebar.navbar-collapse { display: block !important; animation: ccrmNavIn .18s ease-out; }
    body.ccrm-nav-open { overflow: hidden; }
    @keyframes ccrmNavIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    .page-sidebar .ccrm-erp { min-height: 0; height: auto; }
    .ccrm-rail { flex-direction: column; height: auto; min-height: 0; gap: 4px; padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); background: transparent; }
    .ccrm-rail__item { min-width: 0; }
    .ccrm-rail__spacer { display: none; }
    .ccrm-rail__btn { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 50px; padding: 10px 14px; font-size: 14px; letter-spacing: 0; text-align: left; border-radius: 14px !important; }
    .ccrm-rail__btn > i { flex: 0 0 22px; width: 22px; text-align: center; font-size: 17px; }
    .ccrm-rail__btn > span { flex: 1 1 auto; white-space: normal; }
    button.ccrm-rail__btn::after { content: "\f107"; font: normal normal normal 15px/1 FontAwesome; opacity: .7; transition: transform .15s ease; }
    .ccrm-rail__item.is-open > button.ccrm-rail__btn::after { transform: rotate(180deg); }
    .ccrm-rail__item.is-disabled > .ccrm-rail__btn > em { margin-left: auto; font-size: 9px; }
    .ccrm-rail__item:hover > .ccrm-rail__btn { background: transparent; color: rgba(255, 255, 255, .62); }
    .ccrm-rail__item.is-current > .ccrm-rail__btn, .ccrm-rail__item.is-current:hover > .ccrm-rail__btn, .ccrm-rail__item.is-open > .ccrm-rail__btn { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
    .ccrm-pop, .ccrm-pop--sub { position: static; width: 100%; padding: 4px 0 6px 0; display: none; }
    .ccrm-rail__item:hover > .ccrm-pop, .ccrm-rail__item:focus-within > .ccrm-pop { display: none; }
    .ccrm-rail__item.is-open > .ccrm-pop { display: block; }
    .ccrm-pop__card { border-radius: 16px !important; box-shadow: none; animation: none; padding: 6px; }
    .ccrm-pop__link { padding: 11px 12px; font-size: 14px; min-height: 44px; }
    .ccrm-pop__link > i { flex-basis: 18px; width: 18px; font-size: 14px; }
    .ccrm-pop__grow { padding: 11px 12px; font-size: 14px; min-height: 44px; }
    .ccrm-pop__grp:hover > .ccrm-pop--sub, .ccrm-pop__grp:focus-within > .ccrm-pop--sub { display: none; }
    .ccrm-pop__grp.is-open > .ccrm-pop--sub, .ccrm-pop__grp.is-current > .ccrm-pop--sub { display: block; }
    .ccrm-pop__grp.is-open > .ccrm-pop__grow > .ccrm-pop__chev, .ccrm-pop__grp.is-current > .ccrm-pop__grow > .ccrm-pop__chev { transform: rotate(90deg); }
    .ccrm-pop--sub .ccrm-pop__card { background: var(--br-surface); padding: 4px; margin-left: 12px; }
    /* burger: three bars that turn into a cross */
    .page-header.navbar .menu-toggler.responsive-toggler.ccrm-burger { display: block; position: relative; width: 44px !important; height: 44px !important; overflow: visible; float: none; margin: 0 !important; padding: 0; border: 0; background: transparent !important; background-image: none !important; opacity: 1 !important; cursor: pointer; }
    .page-header.navbar .ccrm-burger > span, .page-header.navbar .ccrm-burger::before, .page-header.navbar .ccrm-burger::after { content: ""; position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .18s ease, opacity .18s ease, top .18s ease; }
    .page-header.navbar .ccrm-burger::before { top: 15px; }
    .page-header.navbar .ccrm-burger > span { top: 21px; }
    .page-header.navbar .ccrm-burger::after { top: 27px; }
    body.ccrm-nav-open .ccrm-burger::before { top: 21px; transform: rotate(45deg); }
    body.ccrm-nav-open .ccrm-burger > span { opacity: 0; }
    body.ccrm-nav-open .ccrm-burger::after { top: 21px; transform: rotate(-45deg); }
}
@media (min-width: 992px) { .page-header.navbar .ccrm-burger { display: none !important; } }
/* the rail sits above page content (but under the fixed header, drawers and modals) so popups are never covered */
@media (min-width: 992px) {
    body.page-sidebar-fixed .page-sidebar { z-index: 9990 !important; }
}

/* stock list filtering: hidden by class, so collapsed groups keep their rows counted */
.ccrm-inv__row.is-hidden, .ccrm-cat__sub.is-hidden, .ccrm-cat.is-hidden { display: none !important; }


/* ==========================================================================
   Settings module (lb/settings/)
   ========================================================================== */
.ccrm-set { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.ccrm-set__nav { position: sticky; top: calc(var(--br-header-h) + 16px); background: #fff; border: 1px solid var(--br-line); border-radius: 18px !important; padding: 12px 10px 14px; }
.ccrm-set__navhead { display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px; border-bottom: 1px solid var(--br-hairline); margin-bottom: 6px; }
.ccrm-set__navhead > i { width: 34px; height: 34px; border-radius: 11px !important; display: inline-flex; align-items: center; justify-content: center; background: var(--br-navy); color: #fff; font-size: 15px; }
.ccrm-set__navhead h1 { margin: 0; font-size: 15px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-set__navhead p { margin: 1px 0 0; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-set__group { margin-top: 8px; }
.ccrm-set__group > h3 { margin: 8px 10px 3px; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-set__link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 11px !important; font-size: 12.5px; font-weight: 500; color: var(--br-on-surface) !important; text-decoration: none !important; transition: background .12s ease, color .12s ease; }
.ccrm-set__link > i { width: 15px; text-align: center; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-set__link:hover { background: var(--br-surface); color: var(--br-accent) !important; }
.ccrm-set__link.is-active { background: var(--br-navy); color: #fff !important; font-weight: 600; }
.ccrm-set__link.is-active > i { color: #fff; }
.ccrm-set__main { min-width: 0; }
.ccrm-set__head { margin: 4px 0 16px; }
.ccrm-set__head h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-set__head p { margin: 0; font-size: 13px; color: var(--br-on-surface-variant); }
.ccrm-set__form .ccrm-formsec { background: #fff; }
.ccrm-set__actions { display: flex; align-items: center; gap: 10px; margin: 6px 0 22px; }
.ccrm-set__test { display: inline-flex; gap: 8px; align-items: center; }
.ccrm-set__test .form-control { width: 240px; }
.ccrm-set__foot { margin: 10px 4px 0; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-set__mono { font-family: Consolas, Menlo, monospace; font-size: 12px; line-height: 1.5; }
.ccrm-set .ccrm-frm__grid textarea.ccrm-in { min-height: 0; }

/* list editor */
.ccrm-lst__add { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.ccrm-lst__add .form-control { flex: 1 1 200px; }
.ccrm-lst__add .btn { flex: 0 0 auto; }
.ccrm-lst__rows { display: flex; flex-direction: column; gap: 4px; }
.ccrm-lst__row { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 12px; background: #fff; border: 1px solid var(--br-hairline); transition: background .15s ease; }
.ccrm-lst__row:hover { background: var(--br-surface); }
.ccrm-lst__row.is-off .ccrm-lst__title { color: var(--br-on-surface-variant); text-decoration: line-through; text-decoration-color: rgba(15, 23, 42, .3); }
.ccrm-lst__move { display: flex; flex-direction: column; gap: 0; }
.ccrm-lst__mv { border: 0; background: transparent; color: var(--br-on-surface-variant); padding: 0 6px; line-height: 1; height: 14px; cursor: pointer; font-size: 13px; }
.ccrm-lst__mv:hover { color: var(--br-accent); }
.ccrm-lst__mv[disabled] { opacity: .25; cursor: default; }
.ccrm-lst__num { flex: 0 0 26px; text-align: center; font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-lst__title, .ccrm-lst__field { border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 6px 9px; font: inherit; font-size: 13px; color: var(--br-on-surface); transition: border-color .12s ease, background .12s ease; }
.ccrm-lst__title { flex: 1 1 240px; font-weight: 600; min-width: 0; }
.ccrm-lst__field { flex: 0 0 200px; font-size: 12.5px; color: var(--br-on-surface-variant); }
.ccrm-lst__field--wide { flex: 2 1 260px; }
.ccrm-lst__title:hover, .ccrm-lst__field:hover { border-color: var(--br-hairline); background: #fff; }
.ccrm-lst__title:focus, .ccrm-lst__field:focus { outline: none; border-color: var(--br-accent); background: #fff; box-shadow: 0 0 0 3px rgba(0, 69, 124, .1); }
.ccrm-lst__title.is-saved, .ccrm-lst__field.is-saved { border-color: var(--br-emerald); }
.ccrm-lst__swatch { flex: 0 0 14px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
.ccrm-lst__color { flex: 0 0 110px; }
.ccrm-lst__row .ccrm-toggle { flex: 0 0 auto; }
.ccrm-lst__del { flex: 0 0 auto; }
.ccrm-lst__del:hover { color: var(--br-rose) !important; }
.ccrm-lst__row--kv { gap: 14px; }
.ccrm-lst__row--kv > b { flex: 0 0 200px; font-size: 12.5px; }
.ccrm-lst__val { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-lst__row--kv > em { flex: 0 0 auto; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }

/* key/value rows (frequencies, product lines) */
.ccrm-kvlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ccrm-kvlist__row { display: flex; align-items: center; gap: 10px; }
.ccrm-kvlist__k { display: flex; align-items: center; gap: 8px; flex: 0 0 200px; }
.ccrm-kvlist__k .form-control { width: 110px; }
.ccrm-kvlist__k > em { font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-kvlist__row > .form-control { flex: 1 1 auto; }
.ccrm-kvlist__row [disabled] { opacity: .35; cursor: default; }

/* roles */
.ccrm-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ccrm-roles__item { padding: 10px 12px; border-radius: 12px; background: var(--br-surface); }
.ccrm-roles__item b { display: block; font-size: 12.5px; }
.ccrm-roles__item span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-perm__wrap { overflow-x: auto; }
.ccrm-perm { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ccrm-perm th { padding: 8px 6px; text-align: center; vertical-align: bottom; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); border-bottom: 1px solid var(--br-hairline); }
.ccrm-perm th > span { display: inline-block; max-width: 92px; line-height: 1.25; }
.ccrm-perm td { padding: 5px 6px; text-align: center; border-bottom: 1px solid var(--br-hairline); }
.ccrm-perm__f { text-align: left !important; font-weight: 500; }
.ccrm-perm__admin { color: var(--br-emerald); }
.ccrm-perm__mod td { text-align: left; padding: 12px 6px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-accent); border-bottom: 0; }
.ccrm-perm__cell { display: inline-flex; margin: 0; cursor: pointer; position: relative; }
.ccrm-perm__cell input { position: absolute; opacity: 0; width: 0; height: 0; }
.ccrm-perm__cell span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--br-hairline); background: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .12s ease, border-color .12s ease; }
.ccrm-perm__cell input:checked + span { background: var(--br-navy); border-color: var(--br-navy); }
.ccrm-perm__cell input:checked + span::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.ccrm-perm__cell:hover span { border-color: var(--br-accent); }

/* users */
.ccrm-usr { display: flex; flex-direction: column; gap: 4px; }
.ccrm-usr__row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--br-hairline); }
.ccrm-usr__row:hover { background: var(--br-surface); }
.ccrm-usr__row.is-off { opacity: .7; }
.ccrm-usr__avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--br-surface-high); color: var(--br-navy); font-size: 12px; font-weight: 700; }
.ccrm-usr__who { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: inherit !important; text-decoration: none !important; }
.ccrm-usr__who b { font-size: 13px; color: var(--br-on-surface); }
.ccrm-usr__row:hover .ccrm-usr__who b { color: var(--br-accent); }
.ccrm-usr__who span { font-size: 11.5px; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-usr__role { flex: 0 0 170px; }
.ccrm-usr__deps { flex: 1 1 200px; display: flex; gap: 4px; flex-wrap: wrap; }
.ccrm-usr__login { flex: 0 0 150px; font-size: 11px; color: var(--br-on-surface-variant); text-align: right; }
.ccrm-chip--role-admin { background: var(--br-navy); color: #fff; }
.ccrm-chip--role-superuser { background: #e5f4ff; color: #0b63b8; }
.ccrm-chip--role-accounting { background: #fdf1e3; color: #9a5b12; }
.ccrm-chip--role-technicians { background: #e2f7f3; color: #0f766e; }
.ccrm-chip--role-engineer { background: #eef0f5; color: #3b4a63; }
.ccrm-chip--role-logistics { background: #f1f5f9; color: #475569; }
/* department picker on the user form: chips with a real checkbox (ccrm-check is the switch elsewhere) */
.ccrm-deps { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.ccrm-dep { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px 6px 10px; border: 1px solid var(--br-hairline); border-radius: 999px !important; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.ccrm-dep:hover { border-color: var(--br-accent); }
.ccrm-dep input { position: static; width: 14px; height: 14px; margin: 0; opacity: 1; accent-color: var(--br-navy); cursor: pointer; }
.ccrm-dep:has(input:checked) { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }
.ccrm-dep:has(input:checked) input { accent-color: #fff; }
@media (max-width: 991px) { .ccrm-set { grid-template-columns: 1fr; } .ccrm-set__nav { position: static; } .ccrm-roles { grid-template-columns: 1fr; } }

/* header user menu */
.page-header.navbar .ccrm-usermenu { min-width: 220px; padding: 6px !important; border-radius: 14px !important; border: 1px solid var(--br-hairline) !important; box-shadow: 0 18px 44px -14px rgba(0, 32, 58, .35) !important; }
.page-header.navbar .ccrm-usermenu__who { display: flex; flex-direction: column; gap: 1px; padding: 8px 12px 10px; border-bottom: 1px solid var(--br-hairline); margin-bottom: 4px; }
.page-header.navbar .ccrm-usermenu__name { font-size: 13px; font-weight: 700; color: var(--br-on-surface); }
.page-header.navbar .ccrm-usermenu__role { font-size: 11px; color: var(--br-on-surface-variant); }
.page-header.navbar .ccrm-usermenu > li > a { display: flex !important; align-items: center; gap: 10px; padding: 8px 12px !important; border-radius: 10px !important; font-size: 12.5px !important; font-weight: 500; color: var(--br-on-surface) !important; }
.page-header.navbar .ccrm-usermenu > li > a > i { width: 14px; text-align: center; color: var(--br-on-surface-variant); }
.page-header.navbar .ccrm-usermenu > li > a:hover { background: var(--br-surface) !important; color: var(--br-accent) !important; }
.ccrm-rail__item--settings { margin-bottom: 6px; }

/* notification e-mails */
.ccrm-notify__group { margin: 18px 0 8px; display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-accent); }
.ccrm-notify__group::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--br-hairline); }
.ccrm-notify__card { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px 20px; align-items: start; padding: 14px 16px; background: #fff; border: 1px solid var(--br-hairline); border-radius: 16px !important; margin-bottom: 8px; transition: border-color .15s ease; }
.ccrm-notify__card.is-dirty { border-color: var(--br-accent-20); }
.ccrm-notify__card.is-auto { background: var(--br-surface); }
.ccrm-notify__what b { display: block; font-size: 13.5px; color: var(--br-on-surface); }
.ccrm-notify__what span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--br-on-surface-variant); }
.ccrm-notify__what em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-emerald); }
.ccrm-notify__who { min-width: 0; }
.ccrm-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 42px; padding: 6px 8px; border: 1px solid var(--br-hairline); border-radius: 12px !important; background: #fff; cursor: text; }
.ccrm-chips:focus-within { border-color: var(--br-accent); box-shadow: 0 0 0 3px rgba(0, 69, 124, .1); }
.ccrm-chips__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px !important; background: var(--br-surface-high); font-size: 12px; font-weight: 600; color: var(--br-on-surface); }
.ccrm-chips__chip button { border: 0; background: transparent; width: 18px; height: 18px; border-radius: 50% !important; color: var(--br-on-surface-variant); cursor: pointer; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.ccrm-chips__chip button:hover { background: var(--br-rose); color: #fff; }
.ccrm-chips__in { flex: 1 1 160px; min-width: 120px; border: 0; outline: none; background: transparent; font: inherit; font-size: 12.5px; padding: 4px 4px; }
.ccrm-notify__tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ccrm-notify__pick { flex: 0 1 260px; font-size: 12px; }
.ccrm-notify__clear { border: 0; background: transparent; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); cursor: pointer; }
.ccrm-notify__clear:hover { color: var(--br-rose); }
.ccrm-notify__none { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-notify__auto { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--br-on-surface); }
.ccrm-notify__auto i { color: var(--br-emerald); }
@media (max-width: 900px) { .ccrm-notify__card { grid-template-columns: 1fr; } }

/* e-mail templates */
.ccrm-tpl { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--br-hairline); border-radius: 16px !important; margin-bottom: 8px; }
.ccrm-tpl__icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center; background: var(--br-surface-high); color: var(--br-navy); font-size: 15px; }
.ccrm-tpl__body { flex: 1 1 auto; min-width: 0; }
.ccrm-tpl__body > b { display: block; font-size: 13.5px; color: var(--br-on-surface); }
.ccrm-tpl__note { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--br-on-surface-variant); }
.ccrm-tpl__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin-top: 10px; }
.ccrm-tpl__meta > span { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--br-on-surface); min-width: 0; overflow-wrap: anywhere; }
.ccrm-tpl__meta em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-tpl__meta code { font-size: 11px; background: var(--br-surface); border-radius: 6px; padding: 2px 6px; color: var(--br-on-surface); }
.ccrm-tpl__acts { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .ccrm-tpl__meta { grid-template-columns: 1fr; } }

.ccrm-notify__cc { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12px; font-weight: 500; color: var(--br-on-surface); cursor: pointer; }
.ccrm-notify__cc input[type=checkbox] { margin: 0; accent-color: var(--br-navy); }

/* dashboard sections: who sees what */
.ccrm-dash__row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 8px 20px; align-items: start; padding: 14px 16px; background: #fff; border: 1px solid var(--br-hairline); border-radius: 16px !important; margin-bottom: 8px; }
.ccrm-dash__what b { display: block; font-size: 13.5px; color: var(--br-on-surface); }
.ccrm-dash__what span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--br-on-surface-variant); }
.ccrm-dash__roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ccrm-dash__role { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 11px 5px 9px; border: 1px solid var(--br-hairline); border-radius: 999px !important; background: #fff; font-size: 12px; font-weight: 600; color: var(--br-on-surface); cursor: pointer; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.ccrm-dash__role:hover { border-color: var(--br-accent); }
.ccrm-dash__role input { position: static; width: 13px; height: 13px; margin: 0; opacity: 1; accent-color: var(--br-navy); cursor: pointer; }
.ccrm-dash__role:has(input:checked) { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }
.ccrm-dash__role:has(input:checked) input { accent-color: #fff; }
.ccrm-dash__role.is-admin { opacity: .7; cursor: default; background: var(--br-surface); }
.ccrm-dash__all { border: 0; background: transparent; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--br-accent); cursor: pointer; padding: 4px 6px; }
.ccrm-dash__none { font-size: 11.5px; color: var(--br-on-surface-variant); }
@media (max-width: 900px) { .ccrm-dash__row { grid-template-columns: 1fr; } }

/* ---- Orders approval list ---- */
.ccrm-ord { display: flex; flex-direction: column; gap: 4px; }
.ccrm-ord__row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--br-hairline); transition: background .15s ease, border-color .15s ease; }
.ccrm-ord__row:hover { background: var(--br-surface); border-color: var(--br-accent-20); }
.ccrm-ord__main { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 14px; align-items: center; color: inherit !important; text-decoration: none !important; }
.ccrm-ord__no { grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--br-navy); white-space: nowrap; }
.ccrm-ord__flag { font-size: 11px; }
.ccrm-ord__flag.is-hot { color: var(--br-rose); }
.ccrm-ord__flag.is-cold { color: var(--br-on-surface-variant); }
.ccrm-ord__who { font-size: 13.5px; color: var(--br-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-ord__who em { font-style: normal; font-weight: 500; color: var(--br-on-surface-variant); }
.ccrm-ord__row:hover .ccrm-ord__who b { color: var(--br-accent); }
.ccrm-ord__meta { font-size: 11.5px; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-ord__meta i { font-style: normal; opacity: .5; }
.ccrm-ord__total { flex: 0 0 120px; display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; font-weight: 700; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-ord__total small { font-size: 10px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-ord__acts { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ccrm-ord__cancel:hover { color: var(--br-rose) !important; }
@media (max-width: 900px) { .ccrm-ord__main { grid-template-columns: 1fr; } .ccrm-ord__no { grid-row: auto; } }
/* issue-invoice inline panel */
.ccrm-issue { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 6px 124px; padding: 10px 14px; border-radius: 12px; background: var(--br-surface-high); }
.ccrm-issue__label { font-size: 12px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-issue__in { width: 160px !important; }
.ccrm-ord__no .ccrm-chip { font-size: 9px; padding: 1px 7px; margin-left: 2px; }


/* ==========================================================================
   Phone pass (<= 767px): shared pieces that were still desktop-shaped
   ========================================================================== */
@media (max-width: 767px) {
    /* page head: title block then the actions, buttons wrap instead of overflowing */
    .ccrm-page-head { flex-direction: column; align-items: stretch; gap: 12px; }
    .ccrm-page-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
    .ccrm-page-head__actions > .btn { flex: 1 1 auto; justify-content: center; white-space: normal; }
    .ccrm-page-head__title { font-size: 24px; }

    /* tabs keep their labels and scroll sideways as one strip */
    .ccrm-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
    .ccrm-tabs::-webkit-scrollbar { display: none; }
    .ccrm-tab { padding: 9px 13px; font-size: 10.5px; flex: 0 0 auto; }
    .ccrm-tab span, .ccrm-tab.is-active span { display: inline; }

    /* hint strips flow as text, the icon just leads the sentence */
    .ccrm-inv__hint { display: block; line-height: 1.45; }
    .ccrm-inv__hint > .fa { margin-right: 6px; }
    .ccrm-inv__hint > span, .ccrm-inv__hint > b { display: inline; }

    /* orders board rows: order block on top, total and buttons in a second line */
    .ccrm-ord__row { flex-wrap: wrap; gap: 8px 12px; padding: 12px; }
    .ccrm-ord__main { flex: 1 1 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 3px; }
    .ccrm-ord__no { grid-row: auto; }
    .ccrm-ord__who, .ccrm-ord__meta { white-space: normal; }
    .ccrm-ord__total { display: flex; flex: 1 1 auto; flex-direction: row; align-items: baseline; gap: 6px; }
    .ccrm-ord__acts { flex: 0 0 auto; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
    .ccrm-issue { margin-left: 0; }
    .ccrm-issue__in { flex: 1 1 120px; }

    /* team cards (sales / technical / engineering teams): contact under the name, stats in two columns */
    .ccrm-tm .ccrm-ct__body { flex: 1 1 100%; grid-template-columns: minmax(0, 1fr); }
    .ccrm-tm .ccrm-ct__meta { grid-column: 1; }
    .ccrm-tm .ccrm-ct__use { white-space: normal; }
    .ccrm-tm__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-right: 0; gap: 10px 14px; }
    .ccrm-tm__stat b, .ccrm-tm__stat span { white-space: normal; }
    .ccrm-tm .ccrm-ct__acts { position: absolute; top: 12px; right: 12px; }
    .ccrm-tm .ccrm-ct__main { position: relative; padding-right: 40px; }

    /* settings: the section list becomes a scrolling strip of chips above the content */
    .ccrm-set { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ccrm-set__nav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; padding: 10px; border-radius: 16px !important; }
    .ccrm-set__nav::-webkit-scrollbar { display: none; }
    .ccrm-set__navhead { display: none; }
    .ccrm-set__group { display: contents; }
    .ccrm-set__group > h3 { display: none; }
    .ccrm-set__link { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--br-hairline); border-radius: 999px !important; padding: 8px 12px; }
    .ccrm-set__link > i { display: none; }

    /* stat strips and quick facts: two per row */
    .ccrm-clienthead__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ==========================================================================
   Equipment & Dispensers (dispenser_type/) : type catalogue
   ========================================================================== */
.ccrm-etype__new { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--br-surface); }
.ccrm-etype__new .ccrm-in { flex: 1 1 320px; }
.ccrm-etype__new .ccrm-field__hint { flex: 1 1 100%; margin: 0; }
.ccrm-etype__group { margin-bottom: 14px; }
.ccrm-etype__gname { display: flex; align-items: baseline; gap: 10px; margin: 10px 4px 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-etype__gname em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 11px; opacity: .8; }
.ccrm-etype__row { display: flex; align-items: center; gap: 14px; padding: 9px 12px; margin-bottom: 4px; border-radius: 14px; background: #fff; border: 1px solid var(--br-hairline); transition: background .15s ease, border-color .15s ease; }
.ccrm-etype__row:hover { background: var(--br-surface); border-color: var(--br-accent-20); }
.ccrm-etype__row.is-off .ccrm-etype__name, .ccrm-etype__row.is-off .ccrm-etype__icon { opacity: .5; }
.ccrm-etype__row.is-hidden, .ccrm-etype__group.is-hidden { display: none !important; }
.ccrm-etype__main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ccrm-etype__icon { flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px !important; background: var(--br-surface-high); color: var(--br-navy); font-size: 13px; }
.ccrm-etype__name { font-size: 13.5px; font-weight: 600; color: var(--br-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-etype__edit { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; }
.ccrm-etype__edit .ccrm-in { flex: 1 1 auto; }
.ccrm-etype__stats { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.ccrm-etype__stat { display: flex; flex-direction: column; min-width: 78px; color: inherit !important; text-decoration: none !important; }
.ccrm-etype__stat b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--br-on-surface); }
.ccrm-etype__stat span { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); white-space: nowrap; }
a.ccrm-etype__stat:hover b { color: var(--br-accent); }
.ccrm-etype__stat.is-muted b { color: var(--br-on-surface-variant); }
.ccrm-etype__acts { flex: 0 0 auto; display: flex; gap: 6px; }
@media (max-width: 767px) {
    .ccrm-etype__row { flex-wrap: wrap; gap: 8px 10px; }
    .ccrm-etype__main { flex-basis: 100%; }
    .ccrm-etype__name { white-space: normal; }
    .ccrm-etype__stats { flex: 1 1 auto; gap: 12px; }
    .ccrm-etype__stat { min-width: 0; }
    .ccrm-etype__acts { margin-left: auto; }
}

/* ==========================================================================
   Equipment in Market (equipments/) : units grouped by account and branch
   ========================================================================== */
.ccrm-eqm__client { margin-bottom: 18px; }
.ccrm-eqm__client.is-hidden, .ccrm-eqm__branch.is-hidden, .ccrm-eqm__row.is-hidden { display: none !important; }
.ccrm-eqm__cname { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 4px 8px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.ccrm-eqm__cname a { color: var(--br-navy) !important; text-decoration: none !important; }
.ccrm-eqm__cname a:hover { color: var(--br-accent) !important; }
.ccrm-eqm__cname em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-eqm__branch { margin: 0 0 8px; padding: 8px 10px 6px; border-radius: 16px; background: var(--br-surface); }
.ccrm-eqm__bhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 6px 8px; }
.ccrm-eqm__bname { font-size: 12.5px; font-weight: 700; color: var(--br-on-surface) !important; text-decoration: none !important; }
.ccrm-eqm__bname .fa { color: var(--br-accent); margin-right: 2px; }
.ccrm-eqm__bname:hover { color: var(--br-accent) !important; }
.ccrm-eqm__bn { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-eqm__row { display: grid; grid-template-columns: 130px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr) 110px 76px; gap: 10px; align-items: center; padding: 7px 10px; margin-bottom: 3px; border-radius: 12px; background: #fff; border: 1px solid var(--br-hairline); font-size: 12.5px; color: var(--br-on-surface); }
.ccrm-eqm__row:last-child { margin-bottom: 0; }
.ccrm-eqm__row--head { background: transparent; border: none; padding: 0 10px 2px; margin-bottom: 2px; }
.ccrm-eqm__row--head span { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-eqm__row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-eqm__row em { font-style: normal; color: var(--br-on-surface-variant); }
.ccrm-eqm__code { font-family: var(--br-mono, monospace); font-size: 11.5px; font-weight: 700; color: var(--br-navy); }
.ccrm-eqm__type { font-weight: 600; }
.ccrm-eqm__prod a { color: var(--br-accent) !important; text-decoration: none !important; }
.ccrm-eqm__acts { display: flex; justify-content: flex-end; gap: 4px; overflow: visible !important; }
.ccrm-eqm__acts .ccrm-eq__btn { width: 30px; height: 30px; }
.ccrm-eqm__more { text-align: center; padding: 10px 0 4px; }
@media (max-width: 991px) {
    .ccrm-eqm__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 76px; grid-template-areas: "code type acts" "loc prod own"; }
    .ccrm-eqm__row--head { display: none; }
    .ccrm-eqm__code { grid-area: code; } .ccrm-eqm__type { grid-area: type; } .ccrm-eqm__acts { grid-area: acts; } .ccrm-eqm__loc { grid-area: loc; } .ccrm-eqm__prod { grid-area: prod; } .ccrm-eqm__own { grid-area: own; text-align: right; }
    .ccrm-eqm__row > span { white-space: normal; }
}


/* ==========================================================================
   Delivery hand-over form (delivery/deliver_form.php): signature pad
   ========================================================================== */
.ccrm-sign { border: 1px dashed var(--br-accent-40, rgba(0, 69, 124, .4)); border-radius: 14px; background: #fff; overflow: hidden; }
.ccrm-sign canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.ccrm-sign__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--br-hairline); background: var(--br-surface); }
.ccrm-sign__hint { font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-frm__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
.ccrm-frm__actions .ccrm-field__hint { flex: 1 1 100%; margin: 0; }


/* ==========================================================================
   Follow-up boards (sales-summary / technical-summary / engineer-summary)
   ========================================================================== */
.ccrm-fu__zone { margin-bottom: 16px; }
.ccrm-fu__zone.is-hidden, .ccrm-fu__row.is-hidden { display: none !important; }
.ccrm-fu__zname { display: flex; align-items: baseline; gap: 8px; margin: 8px 4px 8px; font-size: 13px; font-weight: 700; color: var(--br-navy); }
.ccrm-fu__zname .fa { color: var(--br-accent); font-size: 12px; }
.ccrm-fu__zname em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-fu__zname em b { color: var(--br-rose); }
.ccrm-fu__row { display: flex; align-items: center; gap: 14px; padding: 9px 12px; margin-bottom: 4px; border-radius: 14px; background: #fff; border: 1px solid var(--br-hairline); transition: background .15s ease, border-color .15s ease; }
.ccrm-fu__row:hover { background: var(--br-surface); border-color: var(--br-accent-20); }
.ccrm-fu__main { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; color: inherit !important; text-decoration: none !important; }
.ccrm-fu__gauge { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.ccrm-fu__gauge svg { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
.ccrm-fu__gbg { fill: none; stroke: var(--br-surface-high); stroke-width: 3.5; }
.ccrm-fu__gfg { fill: none; stroke: var(--br-emerald); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray .3s ease; }
.ccrm-fu__row.is-behind .ccrm-fu__gfg { stroke: var(--br-rose); }
.ccrm-fu__row.is-part .ccrm-fu__gfg { stroke: var(--br-amber); }
.ccrm-fu__row.is-none .ccrm-fu__gfg { stroke: transparent; }
.ccrm-fu__gauge b { position: relative; font-size: 12px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-fu__gauge small { font-size: 9px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-fu__who { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13.5px; }
.ccrm-fu__who b { color: var(--br-on-surface); }
.ccrm-fu__row:hover .ccrm-fu__who b { color: var(--br-accent); }
.ccrm-fu__who em { font-style: normal; font-weight: 500; color: var(--br-on-surface-variant); }
.ccrm-fu__who .ccrm-chip { font-size: 9px; padding: 1px 7px; }
.ccrm-fu__meta { flex-basis: 100%; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-fu__meta i { font-style: normal; opacity: .5; }
.ccrm-fu__meta .is-late { color: var(--br-rose); font-weight: 700; }
.ccrm-fu__zname em b { color: var(--br-rose); }
.ccrm-fu__col { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ccrm-fu__k { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-fu__v { font-size: 13px; font-weight: 700; color: var(--br-on-surface); display: flex; flex-direction: column; }
.ccrm-fu__v small { font-size: 10.5px; font-weight: 500; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-fu__v.is-muted { color: var(--br-on-surface-variant); font-weight: 600; }
.ccrm-fu__v.is-late { color: var(--br-rose); }
.ccrm-fu__acts { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
@media (max-width: 991px) {
    .ccrm-fu__main { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "g who" "g last" "g next"; gap: 4px 12px; }
    .ccrm-fu__gauge { grid-area: g; }
    .ccrm-fu__who { grid-area: who; }
    .ccrm-fu__col:nth-of-type(1) { grid-area: last; } .ccrm-fu__col:nth-of-type(2) { grid-area: next; }
    .ccrm-fu__col { flex-direction: row; align-items: baseline; gap: 8px; }
    .ccrm-fu__k { min-width: 82px; }
    .ccrm-fu__v { flex-direction: row; flex-wrap: wrap; gap: 0 6px; font-size: 12px; }
    .ccrm-fu__v small { white-space: normal; }
}
@media (max-width: 767px) {
    .ccrm-fu__row { flex-wrap: wrap; }
    .ccrm-fu__main { flex-basis: 100%; }
    .ccrm-fu__acts { margin-left: auto; }
}

/* branch form: visit requirement blocks */
.ccrm-visitreq__item { padding: 10px 12px; border: 1px solid var(--br-hairline); border-radius: 14px; background: var(--br-surface); gap: 8px; }
.ccrm-visitreq__item.is-on { background: #fff; border-color: var(--br-accent-20); }
.ccrm-visitreq__on { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); cursor: pointer; }
.ccrm-visitreq__on input { margin: 0; width: 16px; height: 16px; }
.ccrm-visitreq__item select:disabled { opacity: .45; }
.ccrm-formsec__title em { font-style: normal; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--br-on-surface-variant); }

/* phone pass 2: users list, key/value grids, wide tables */
@media (max-width: 767px) {
    .ccrm-usr__row { flex-wrap: wrap; gap: 8px 10px; }
    .ccrm-usr__who { flex: 1 1 calc(100% - 50px); }
    .ccrm-usr__who span { white-space: normal; }
    .ccrm-usr__role { flex: 0 0 auto; }
    .ccrm-usr__deps { flex: 1 1 auto; }
    .ccrm-usr__login { flex: 1 1 100%; text-align: left; }
    .ccrm-kv, .ccrm-frm__context .ccrm-kv { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ccrm-kv__v, .ccrm-kv__k { overflow-wrap: anywhere; }
    .page-content .ccrm-listcard table.table, .page-content .ccrm-tabcard table.table, .page-content .ccrm-card table.table, .page-content .portlet table.table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* phone pass 3: two-level tabs on the branch page keep their two rows and scroll sideways */
@media (max-width: 767px) {
    .ccrm-tabs:has(.ccrm-tabs__primary) { display: block; overflow: visible; padding-bottom: 0; }
    .ccrm-tabs .ccrm-tabs__primary { display: flex; flex-wrap: nowrap; overflow-x: auto; }
    .ccrm-tabs .ccrm-subtabs.is-active { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; }
    .ccrm-tabs .ccrm-subtabs::-webkit-scrollbar { display: none; }
    .ccrm-tabs .ccrm-subtabs > li { flex: 0 0 auto; float: none; }
    .ccrm-tabs .ccrm-subtabs > li > a { white-space: nowrap; }
}


/* settings matrices: description under the row label, per-row all/none */
.ccrm-perm__desc { display: block; font-size: 10.5px; font-weight: 500; color: var(--br-on-surface-variant); margin-top: 1px; }
.ccrm-perm__all { width: 40px; text-align: center; }
.ccrm-perm .ccrm-dash__all { width: 26px; height: 26px; font-size: 13px; }
/* accounts list for an own-accounts-only user: other people's accounts stay visible but inert */
.timeline > li.is-foreign { opacity: .42; filter: grayscale(.4); }
.timeline > li.is-foreign > .timeline-item > .timeline-header { cursor: default; pointer-events: none; }
.timeline > li.is-foreign .ccrm-acc__chev { visibility: hidden; }

/* equipment catalogue: names open the profile */
a.ccrm-etype__name { color: var(--br-on-surface) !important; text-decoration: none !important; }
a.ccrm-etype__name:hover { color: var(--br-accent) !important; }
.ccrm-etype__row .ccrm-etype__stats { flex-wrap: wrap; }


/* ==========================================================================
   Settings > Products & categories: the two-pane category workspace
   ========================================================================== */
.ccrm-pt__summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ccrm-pt__pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--br-hairline); font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); text-decoration: none !important; }
.ccrm-pt__pill b { font-size: 14px; color: var(--br-on-surface); letter-spacing: -.02em; }
.ccrm-pt__pill.is-warn { background: var(--br-amberSoft, #fdf1e3); border-color: transparent; color: var(--br-amber); }
.ccrm-pt__pill.is-warn b { color: var(--br-amber); }
.ccrm-pt__how { margin-left: auto; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-pt__how .fa { color: var(--br-accent); margin-right: 4px; }
.ccrm-pt__work { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.ccrm-pt__side { background: #fff; border: 1px solid var(--br-hairline); border-radius: 18px; padding: 12px; position: sticky; top: calc(var(--br-header-h) + 16px); }
.ccrm-pt__sidehead { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 8px 10px; }
.ccrm-pt__sidehead span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-pt__sidehead small { font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-pt__lines { display: flex; flex-direction: column; gap: 4px; }
.ccrm-pt__line { position: relative; display: flex; align-items: center; gap: 4px; border-radius: 14px; border: 1px solid transparent; transition: background .12s ease, border-color .12s ease; }
.ccrm-pt__line:hover { background: var(--br-surface); }
.ccrm-pt__line.is-active { background: var(--br-navy); border-color: var(--br-navy); }
.ccrm-pt__linebtn { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 2px; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.ccrm-pt__licon { flex: 0 0 34px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--br-surface-high); color: var(--br-navy); font-size: 14px; }
.ccrm-pt__line.is-active .ccrm-pt__licon { background: rgba(255, 255, 255, .16); color: #fff; }
.ccrm-pt__ltext { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ccrm-pt__lname { font-size: 13.5px; font-weight: 700; color: var(--br-on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px dashed transparent; }
.ccrm-pt__lname:hover { border-bottom-color: currentColor; }
.ccrm-pt__ltext small { font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-pt__line.is-active .ccrm-pt__lname, .ccrm-pt__line.is-active .ccrm-pt__ltext small { color: #fff; }
.ccrm-pt__line.is-active .ccrm-pt__ltext small { opacity: .75; }
.ccrm-pt__grip { flex: 0 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 1px; color: var(--br-hairline); cursor: grab; padding: 0 2px; font-size: 11px; opacity: 0; transition: opacity .12s ease; }
.ccrm-pt__line:hover .ccrm-pt__grip, .ccrm-pt__mrow:hover > .ccrm-pt__grip, .ccrm-pt__sub:hover .ccrm-pt__grip { opacity: 1; }
.ccrm-pt__line.is-active .ccrm-pt__grip { color: rgba(255, 255, 255, .5); }
.ccrm-pt__grip:active { cursor: grabbing; }
.ccrm-pt__ghost { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px dashed var(--br-hairline); border-radius: 14px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface-variant); cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease; }
.ccrm-pt__ghost:hover { background: var(--br-surface); color: var(--br-accent); border-color: var(--br-accent-40, rgba(0, 69, 124, .4)); }
.ccrm-pt__ghost--s { width: auto; margin: 4px 0 2px 34px; padding: 6px 12px; font-size: 11.5px; border-radius: 999px; }
.ccrm-pt__panel { background: #fff; border: 1px solid var(--br-hairline); border-radius: 18px; padding: 16px 18px 18px; min-height: 320px; }
.ccrm-pt__phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--br-hairline); }
.ccrm-pt__ptitle h3 { margin: 2px 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-pt__ptitle p { margin: 0; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-pt__mains { display: flex; flex-direction: column; gap: 6px; }
.ccrm-pt__main { border-radius: 14px; border: 1px solid transparent; transition: border-color .12s ease, background .12s ease; }
.ccrm-pt__main.is-open { border-color: var(--br-hairline); background: #fff; }
.ccrm-pt__mrow { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 4px; border-radius: 14px; min-height: 46px; }
.ccrm-pt__mrow:hover { background: var(--br-surface); }
.ccrm-pt__idx { flex: 0 0 26px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--br-surface-high); color: var(--br-navy); font-size: 11px; font-weight: 700; }
.ccrm-pt__caret { flex: 0 0 22px; width: 22px; height: 22px; border: 0; background: transparent; color: var(--br-on-surface-variant); cursor: pointer; font-size: 14px; border-radius: 6px; padding: 0; }
.ccrm-pt__caret:hover { background: #fff; color: var(--br-navy); }
.ccrm-pt__mname { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--br-on-surface); cursor: text; border-bottom: 1px dashed transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-pt__mname:hover, .ccrm-pt__sname:hover { border-bottom-color: var(--br-accent); color: var(--br-accent); }
.ccrm-pt__meta { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-pt__subs { display: none; flex-direction: column; gap: 2px; padding: 2px 10px 10px 44px; }
.ccrm-pt__main.is-open .ccrm-pt__subs { display: flex; }
.ccrm-pt__sub { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 2px; border-radius: 10px; min-height: 36px; }
.ccrm-pt__sub:hover { background: var(--br-surface); }
.ccrm-pt__grip--s { flex-basis: 12px; }
.ccrm-pt__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--br-accent-40, rgba(0, 69, 124, .35)); }
.ccrm-pt__sname { flex: 1 1 auto; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); cursor: text; border-bottom: 1px dashed transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-pt__menuwrap { position: relative; flex: 0 0 auto; }
.ccrm-pt__more { width: 28px; height: 28px; border: 0; border-radius: 9px; background: transparent; color: var(--br-on-surface-variant); cursor: pointer; font-size: 12px; opacity: 0; transition: opacity .12s ease, background .12s ease; }
.ccrm-pt__line:hover .ccrm-pt__more, .ccrm-pt__mrow:hover .ccrm-pt__more, .ccrm-pt__sub:hover .ccrm-pt__more, .ccrm-pt__menuwrap.is-open .ccrm-pt__more { opacity: 1; }
.ccrm-pt__more:hover, .ccrm-pt__menuwrap.is-open .ccrm-pt__more { background: #fff; color: var(--br-navy); box-shadow: 0 0 0 1px var(--br-hairline); }
.ccrm-pt__line.is-active .ccrm-pt__more { color: rgba(255, 255, 255, .8); }
.ccrm-pt__line.is-active .ccrm-pt__more:hover { color: var(--br-navy); }
.ccrm-pt__menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px -14px rgba(0, 32, 58, .45), 0 0 0 1px rgba(0, 32, 58, .06); }
.ccrm-pt__menuwrap.is-open .ccrm-pt__menu { display: block; }
.ccrm-pt__menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); text-align: left; cursor: pointer; }
.ccrm-pt__menu button .fa { width: 14px; text-align: center; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-pt__menu button small { margin-left: auto; font-size: 10px; color: var(--br-on-surface-variant); }
.ccrm-pt__menu button:hover:not([disabled]) { background: var(--br-surface); color: var(--br-accent); }
.ccrm-pt__menu button.is-danger:hover:not([disabled]) { color: var(--br-rose); }
.ccrm-pt__menu button[disabled] { opacity: .45; cursor: default; }
.ccrm-pt__menu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--br-hairline); }
.ccrm-pt__inline { display: inline-block !important; width: auto !important; min-width: 240px; height: 32px !important; padding: 4px 10px !important; font-size: 13px !important; }
.ccrm-pt__inline--new { width: 100% !important; margin-top: 6px; }
.ccrm-pt__ph { height: 44px; border-radius: 14px; border: 1px dashed var(--br-accent); background: #f3f8fd; }
.ccrm-pt__ph--s { height: 34px; margin-left: 0; }
.ccrm-pt__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 20px; color: var(--br-on-surface-variant); text-align: center; }
.ccrm-pt__empty .fa { font-size: 26px; color: var(--br-hairline); margin-bottom: 6px; }
.ccrm-pt__empty b { color: var(--br-on-surface); font-size: 14px; }
.ccrm-pt__empty span { font-size: 12px; }
.ccrm-pt__units { margin-top: 16px; }
@media (max-width: 991px) {
    .ccrm-pt__work { grid-template-columns: minmax(0, 1fr); }
    .ccrm-pt__side { position: static; }
    .ccrm-pt__how { flex-basis: 100%; margin-left: 0; }
    .ccrm-pt__grip, .ccrm-pt__more { opacity: 1; }
    .ccrm-pt__subs { padding-left: 24px; }
    .ccrm-pt__meta { display: none; }
}


/* ==========================================================================
   Price list wizard (branches/pricelist_wizard.php): a guided four-step flow
   ========================================================================== */
body.ccrm-wizpage { padding: 0 !important; background: #f6f8fb; }
.ccrm-wiz { display: flex; flex-direction: column; min-height: 100vh; }
.ccrm-wiz__top { position: sticky; top: 0; z-index: 5; padding: 16px 22px 0; background: #fff; border-bottom: 1px solid var(--br-hairline); }
.ccrm-wiz__for h2 { margin: 2px 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-wiz__for h2 em { font-style: normal; font-weight: 500; color: var(--br-on-surface-variant); }
.ccrm-wiz__steps { list-style: none; margin: 0; padding: 0 0 14px; display: flex; align-items: flex-start; }
.ccrm-wiz__steps li { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.ccrm-wiz__steps li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--br-hairline); z-index: 0; }
.ccrm-wiz__steps li:first-child::before { display: none; }
.ccrm-wiz__steps li.is-done::before, .ccrm-wiz__steps li.is-current::before { background: var(--br-navy); }
.ccrm-wiz__steps li i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--br-hairline); color: var(--br-on-surface-variant); font-style: normal; font-size: 12px; font-weight: 700; transition: all .15s ease; }
.ccrm-wiz__steps li i b { display: none !important; font-size: 11px; }
.ccrm-wiz__steps li.is-current i { border-color: var(--br-navy); background: var(--br-navy); color: #fff; box-shadow: 0 0 0 4px rgba(0, 69, 124, .12); }
.ccrm-wiz__steps li.is-done i { border-color: var(--br-emerald); background: var(--br-emerald); color: #fff; }
.ccrm-wiz__steps li.is-done i span { display: none; } .ccrm-wiz__steps li.is-done i b { display: inline !important; }
.ccrm-wiz__steps li label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--br-on-surface-variant); cursor: pointer; }
.ccrm-wiz__steps li.is-current label { color: var(--br-navy); }
.ccrm-wiz__pane { display: none; flex: 1 1 auto; padding: 22px 22px 110px; animation: ccrmWizIn .18s ease-out; }
.ccrm-wiz__pane.is-active { display: block; }
@keyframes ccrmWizIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ccrm-wiz__phead { margin: 0 0 16px; }
.ccrm-wiz__phead h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-wiz__phead p { margin: 0; font-size: 13px; color: var(--br-on-surface-variant); }
.ccrm-wiz__phead--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ccrm-wiz__recap { display: flex; flex-wrap: wrap; gap: 6px; max-width: 46%; }
.ccrm-wiz__recap span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px !important; background: #fff; border: 1px solid var(--br-hairline); font-size: 11px; font-weight: 600; color: var(--br-on-surface); max-width: 100%; }
.ccrm-wiz__recap span .fa { color: var(--br-accent); font-size: 11px; }
.ccrm-wiz__note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px !important; background: #fff; border: 1px solid var(--br-hairline); font-size: 12.5px; color: var(--br-on-surface-variant); margin-bottom: 14px; }
.ccrm-wiz__note .fa { color: var(--br-accent); }
/* contacts: selectable cards */
.ccrm-wiz__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ccrm-wiz__card { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 16px !important; border: 1.5px solid var(--br-hairline); background: #fff; cursor: pointer; font: inherit; text-align: left; transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.ccrm-wiz__card:hover { border-color: var(--br-accent-40, rgba(0, 69, 124, .35)); transform: translateY(-1px); }
.ccrm-wiz__card.is-on { border-color: var(--br-navy); box-shadow: 0 0 0 3px rgba(0, 69, 124, .1); }
.ccrm-wiz__card input { position: absolute; opacity: 0; pointer-events: none; }
.ccrm-wiz__check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--br-hairline); background: #fff; color: #fff; font-size: 10px; transition: all .12s ease; }
.is-on > .ccrm-wiz__check { border-color: var(--br-navy); background: var(--br-navy); }
.ccrm-wiz__avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--h, 210) 60% 92%); color: hsl(var(--h, 210) 45% 32%); font-size: 15px; font-weight: 700; font-style: normal; }
.ccrm-wiz__avatar i { font-style: normal; }
.ccrm-wiz__avatar.is-plus { background: var(--br-surface-high); color: var(--br-navy); font-size: 14px; }
.ccrm-wiz__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-right: 22px; }
.ccrm-wiz__who b { font-size: 13.5px; color: var(--br-on-surface); }
.ccrm-wiz__who small { font-size: 11.5px; color: var(--br-on-surface); }
.ccrm-wiz__who small.is-dim { color: var(--br-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-wiz__tag { position: absolute; right: 38px; top: 11px; padding: 2px 7px; border-radius: 999px !important; background: #e5f4ff; color: var(--br-navy); font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.ccrm-wiz__tag.is-soft { background: var(--br-surface-high); color: var(--br-on-surface-variant); }
.ccrm-wiz__card--add { border-style: dashed; background: transparent; }
.ccrm-wiz__card--add:hover { background: #fff; }
.ccrm-wiz__free { margin-top: 12px; padding: 14px; border-radius: 16px !important; background: #fff; border: 1.5px solid var(--br-navy); }
.ccrm-wiz__freerow { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr .9fr; gap: 8px; }
.ccrm-wiz__freeacts { display: flex; gap: 8px; margin-top: 10px; }
/* terms: chips + fields */
.ccrm-wiz__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ccrm-wiz__chip { padding: 9px 16px; border-radius: 999px !important; border: 1.5px solid var(--br-hairline); background: #fff; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); cursor: pointer; transition: all .12s ease; }
.ccrm-wiz__chip small { margin-left: 6px; font-size: 10px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-wiz__chip:hover { border-color: var(--br-accent-40, rgba(0, 69, 124, .35)); }
.ccrm-wiz__chip.is-on { border-color: var(--br-navy); background: var(--br-navy); color: #fff; }
.ccrm-wiz__chip.is-on small { color: rgba(255, 255, 255, .75); }
.ccrm-wiz__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 16px; border-radius: 16px !important; background: #fff; border: 1px solid var(--br-hairline); }
.ccrm-wiz__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 500; }
.ccrm-wiz__field--wide { grid-column: 1 / -1; }
.ccrm-wiz__field > span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-wiz__field > span em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.ccrm-wiz__field .form-control { height: 42px; border-radius: 12px !important; font-size: 13.5px; }
/* validity: tiles */
.ccrm-wiz__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ccrm-wiz__tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 14px 16px; border-radius: 16px !important; border: 1.5px solid var(--br-hairline); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: all .12s ease; }
.ccrm-wiz__tile:hover { border-color: var(--br-accent-40, rgba(0, 69, 124, .35)); transform: translateY(-1px); }
.ccrm-wiz__tile.is-on { border-color: var(--br-navy); box-shadow: 0 0 0 3px rgba(0, 69, 124, .1); }
.ccrm-wiz__tile b { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--br-navy); }
.ccrm-wiz__tile b .fa { font-size: 20px; }
.ccrm-wiz__tile span { font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-wiz__tile small { font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-wiz__tile--date .form-control { margin-top: 6px; height: 36px; border-radius: 10px !important; font-size: 12.5px; }
.ccrm-wiz__validsum { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px !important; background: #e5f4ff; color: var(--br-navy); font-size: 14px; }
.ccrm-wiz__validsum .fa { font-size: 16px; }
.ccrm-wiz__validsum em { font-style: normal; color: var(--br-rose); font-weight: 700; }
/* items */
.ccrm-wiz__itembar { position: sticky; top: var(--wizTop, 108px); z-index: 4; display: flex; align-items: center; gap: 10px; padding: 8px 0 10px; background: #f6f8fb; }
.ccrm-wiz__itembar .ccrm-toolbar__search { flex: 1 1 auto; }
.ccrm-wiz__linkbtn { border: 0; white-space: nowrap; background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--br-accent); cursor: pointer; padding: 6px 8px; border-radius: 8px !important; }
.ccrm-wiz__linkbtn:hover { background: #fff; }
.ccrm-wiz__items { display: flex; flex-direction: column; gap: 14px; }
.ccrm-wiz__line > h4 { margin: 6px 0 8px 2px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-wiz__cat { border: 1px solid var(--br-hairline); border-radius: 16px !important; background: #fff; padding: 6px 8px 8px; margin-bottom: 10px; overflow: hidden; }
.ccrm-wiz__cathead { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 8px 8px 10px; border-radius: 12px !important; cursor: pointer; }
.ccrm-wiz__cathead:hover { background: var(--br-surface); }
.ccrm-wiz__cathead input { margin: 0; width: 16px; height: 16px; accent-color: var(--br-navy); }
.ccrm-wiz__cathead b { flex: 1 1 auto; font-size: 13.5px; color: var(--br-on-surface); }
.ccrm-wiz__catn { font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); font-variant-numeric: tabular-nums; }
.ccrm-wiz__catn em { font-style: normal; color: var(--br-navy); }
.ccrm-wiz__cat.is-off .ccrm-wiz__catn em { color: var(--br-on-surface-variant); }
.ccrm-wiz__subname { margin: 8px 0 2px 36px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-wiz__item { position: relative; display: flex; align-items: center; gap: 10px; margin: 2px 0 0 26px; padding: 8px 10px 8px 10px; border-radius: 12px !important; font-weight: 500; cursor: pointer; transition: background .1s ease; }
.ccrm-wiz__item:hover { background: var(--br-surface); }
.ccrm-wiz__item.is-on { background: #f0f6fc; }
.ccrm-wiz__item input { position: absolute; opacity: 0; pointer-events: none; }
.ccrm-wiz__check--sm { position: static; width: 18px; height: 18px; font-size: 9px; flex: 0 0 18px; }
.ccrm-wiz__iname { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--br-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-wiz__item.is-on .ccrm-wiz__iname { font-weight: 600; }
.ccrm-wiz__iprice { font-size: 13px; font-weight: 700; color: var(--br-navy); font-variant-numeric: tabular-nums; }
.ccrm-wiz__iprice em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
/* done */
.ccrm-wiz__done { display: none; text-align: center; padding: 60px 24px; }
.ccrm-wiz__done.is-active { display: block; }
.ccrm-wiz__doneicon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; background: var(--br-greenSoft, #e6f6f0); color: var(--br-emerald); font-size: 30px; }
.ccrm-wiz__done h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-wiz__done p { margin: 0 auto 18px; max-width: 420px; font-size: 13.5px; color: var(--br-on-surface-variant); }
.ccrm-wiz__doneacts { display: flex; justify-content: center; gap: 8px; }
/* footer */
.ccrm-wiz__foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--br-hairline); }
.ccrm-wiz__progress { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ccrm-wiz__progress > span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-wiz__bar { height: 4px; border-radius: 999px !important; background: var(--br-surface-high); overflow: hidden; max-width: 260px; }
.ccrm-wiz__bar i { display: block; height: 100%; width: 25%; background: var(--br-navy); border-radius: 999px !important; transition: width .25s ease; }
.ccrm-wiz__progress small { font-size: 11px; color: var(--br-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-wiz__progress small b { color: var(--br-on-surface); }
.ccrm-wiz__footacts { display: flex; gap: 8px; flex: 0 0 auto; }
.ccrm-wiz__footacts .btn { border-radius: 999px !important; padding: 9px 18px; }
.ccrm-panebar__hint { display: block; font-size: 11.5px; font-weight: 400; color: var(--br-on-surface-variant); }
@media (max-width: 767px) {
    .ccrm-wiz__grid, .ccrm-wiz__fields { grid-template-columns: minmax(0, 1fr); }
    .ccrm-wiz__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ccrm-wiz__freerow { grid-template-columns: 1fr 1fr; }
    .ccrm-wiz__steps li label { display: none; }
    .ccrm-wiz__recap { max-width: 100%; }
    .ccrm-wiz__foot { flex-wrap: wrap; } .ccrm-wiz__progress { flex-basis: 100%; } .ccrm-wiz__footacts { width: 100%; justify-content: flex-end; }
    .ccrm-wiz__pane { padding: 16px 14px 150px; }
}

/* branch page, phone pass 4: two-level tabs scroll as strips, one sub-nav at a time; contact rows stack
   ========================================================================== */
@media (max-width: 767px) {
    /* the theme forces every .nav-tabs to flex under 600px; the hidden sub-navs must stay hidden */
    .ccrm-tabs .ccrm-subtabs:not(.is-active), .ccrm-tabs .ccrm-subtabs.is-active.is-single { display: none !important; }
    .ccrm-tabs .ccrm-subtabs.is-active { display: flex !important; flex-wrap: nowrap; gap: 6px; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0 8px; margin-top: 10px; }
    .ccrm-tabs .ccrm-subtabs > li { flex: 0 0 auto; float: none; margin: 0; }
    .ccrm-tabs .ccrm-subtabs > li > a { white-space: nowrap; }
    .ccrm-tabs .ccrm-tabs__primary { gap: 4px; padding-bottom: 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding: 16px; }
    .ccrm-tabs__primary::after { content: ""; flex: 0 0 8px; }
    .ccrm-tab { padding: 9px 12px; font-size: 10.5px; }
    .ccrm-tab .fa { width: 14px; font-size: 12px; }

    /* contact rows: identity, then e-mail and phone, then the usage line */
    .ccrm-ct--compact .ccrm-ct__body, .ccrm-ct__body { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-right: 0; }
    .ccrm-ct__meta { white-space: normal; overflow-wrap: anywhere; }
    .ccrm-ct__name { white-space: normal; }
    .ccrm-ct__pos { white-space: normal; }
    .ccrm-ct--compact .ccrm-ct__main { padding: 12px 14px; gap: 10px; }
    .ccrm-ct--compact .ccrm-ct__avatar { display: inline-flex; flex-basis: 36px; width: 36px; height: 36px; font-size: 12px; }
    .ccrm-ct__use { grid-column: 1 / -1; padding: 6px 0 0; border-left: none; border-top: 1px solid var(--br-hairline); }
    .ccrm-ct__acts { position: static; transform: none; opacity: 1; margin-left: auto; }
}

/* branch page on phones: a section bar + bottom sheet replace the two tab rows
   ========================================================================== */
.ccrm-secbar, .ccrm-secsheet { display: none; }
@media (max-width: 767px) {
    .tabbable-bordered:has(> .ccrm-secbar) .ccrm-tabs__primary, .tabbable-bordered:has(> .ccrm-secbar) .ccrm-subtabs { display: none !important; }
    .tabbable-bordered:has(> .ccrm-secbar), .tabbable-bordered:has(> .ccrm-secbar) > .tab-content { overflow: visible !important; }
    .ccrm-secbar { position: sticky; top: 80px; z-index: 40; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 9px 12px 9px 10px; border: 1px solid var(--br-hairline); border-radius: 16px !important; background: #fff; box-shadow: 0 8px 22px rgba(15, 23, 42, .1); font: inherit; text-align: left; cursor: pointer; }
    .ccrm-secbar__ic { width: 38px; height: 38px; border-radius: 12px !important; display: inline-flex !important; align-items: center; justify-content: center; background: var(--br-navy); color: #fff; font-size: 15px; flex: 0 0 38px; }
    .ccrm-secbar__t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
    .ccrm-secbar__t small { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
    .ccrm-secbar__t b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ccrm-secbar__chev { color: var(--br-on-surface-variant); font-size: 18px; margin-right: 2px; }
    .ccrm-secsheet { display: block; position: fixed; inset: 0; z-index: 10050; }
    .ccrm-secsheet[hidden] { display: none; }
    .ccrm-secsheet__bg { position: absolute; inset: 0; background: rgba(2, 20, 40, .45); opacity: 0; transition: opacity .2s ease; }
    .ccrm-secsheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 84vh; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0 !important; box-shadow: 0 -12px 40px rgba(2, 20, 40, .25); transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
    .ccrm-secsheet.is-in .ccrm-secsheet__bg { opacity: 1; }
    .ccrm-secsheet.is-in .ccrm-secsheet__panel { transform: none; }
    .ccrm-secsheet__grab { width: 40px; height: 4px; margin: 10px auto 0; border-radius: 999px !important; background: var(--br-hairline); flex: 0 0 auto; }
    .ccrm-secsheet__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 4px; flex: 0 0 auto; }
    .ccrm-secsheet__head h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
    .ccrm-secsheet__x { width: 32px; height: 32px; border: 0; border-radius: 50% !important; background: var(--br-surface-high); color: var(--br-on-surface-variant); font-size: 13px; }
    .ccrm-secsheet__list { overflow-y: auto; padding: 4px 12px 18px; -webkit-overflow-scrolling: touch; }
    .ccrm-secsheet__grp { display: flex; align-items: center; gap: 8px; margin: 14px 8px 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-navy); }
    .ccrm-secsheet__grp .fa { width: 14px; text-align: center; font-size: 11px; }
    .ccrm-secsheet__row { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 4px; padding: 11px 12px 11px 12px; border: 0; border-radius: 14px !important; background: transparent; font: inherit; text-align: left; color: var(--br-on-surface); }
    .ccrm-secsheet__row > .fa:first-child { width: 32px; height: 32px; border-radius: 10px !important; display: inline-flex; align-items: center; justify-content: center; background: var(--br-surface-high); color: var(--br-navy); font-size: 13px; flex: 0 0 32px; }
    .ccrm-secsheet__row b { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
    .ccrm-secsheet__row em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px !important; background: var(--br-surface-high); color: var(--br-on-surface-variant); }
    .ccrm-secsheet__go { color: var(--br-on-surface-variant); font-size: 15px; }
    .ccrm-secsheet__row--grp { margin-top: 10px; }
    .ccrm-secsheet__row--grp b { font-weight: 700; }
    .ccrm-secsheet__row.is-on { background: var(--br-navy); color: #fff; }
    .ccrm-secsheet__row.is-on > .fa:first-child { background: rgba(255, 255, 255, .18); color: #fff; }
    .ccrm-secsheet__row.is-on em { background: rgba(255, 255, 255, .2); color: #fff; }
    .ccrm-secsheet__row.is-on .ccrm-secsheet__go { color: rgba(255, 255, 255, .75); }
    body.ccrm-secsheet-open { overflow: hidden; }
    /* pane bars stack: the text, then a full-width action */
    .ccrm-panebar { flex-direction: column; align-items: stretch; gap: 10px; }
    .ccrm-panebar > .btn { width: 100%; justify-content: center; }
    /* legacy timeline rows (orders, consignments) wrap instead of overflowing */
    .ccrm-tabcard .timeline > li > .timeline-item > .timeline-header { white-space: normal; }
    .ccrm-tl__open { float: none; display: block; margin: 4px 0 0; }
}

/* phones: the breadcrumb pill goes (the page head carries the back link); follow-up cards drop the fold chevron */
@media (max-width: 767px) {
    .page-bar { display: none !important; }
    /* ...unless the bar carries controls the page needs (the dashboard's date
       range and Arrange button): mark it ccrm-bar--keep and only the breadcrumb goes */
    .page-bar.ccrm-bar--keep { display: block !important; margin-bottom: 10px; padding: 0 !important; background: none !important; border: 0 !important; }
    .page-bar.ccrm-bar--keep .page-breadcrumb { display: none !important; }
    .page-bar.ccrm-bar--keep .page-toolbar { float: none; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
    .page-bar.ccrm-bar--keep .page-toolbar > * { float: none !important; margin: 0 !important; }
    .ccrm-visit__more { display: none; }
}

/* phones: the content wrapper must not clip, or the sticky section bar cannot stick */
@media (max-width: 767px) {
    .page-content { overflow: clip !important; }
}

/* header: the theme swaps the quick-sidebar toggler glyph for a Simple-Line-Icons code; the logout button keeps its Font Awesome power icon */
.page-header.navbar .top-menu .navbar-nav > li.ccrm-logout-item > .dropdown-toggle > i.fa-power-off:before { content: "\f011" !important; font-family: FontAwesome !important; }

/* phones: toolbar filters take the full row instead of truncating */
@media (max-width: 767px) {
    .ccrm-toolbar__filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ccrm-toolbar__filters > select.form-control:not(.select2-hidden-accessible), .ccrm-toolbar__filters .select2-container { width: 100% !important; min-width: 0; }
    .ccrm-toolbar__filters > .btn, .ccrm-toolbar__filters > a { grid-column: 1 / -1; }
}

/* ==========================================================================
   Sales > Reports (reports/): the catalogue cards and the report viewer
   ========================================================================== */
.ccrm-rpx__search { flex: 0 0 300px; }
.ccrm-rpx__group { margin-bottom: 28px; }
.ccrm-rpx__ghead { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.ccrm-rpx__gicon { width: 44px; height: 44px; border-radius: 14px !important; display: inline-flex; align-items: center; justify-content: center; background: var(--br-navy); color: #fff; font-size: 17px; flex: 0 0 44px; }
.ccrm-rpx__ghead h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-rpx__ghead h2 small { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); background: var(--br-surface-high); padding: 2px 8px; border-radius: 999px !important; vertical-align: middle; }
.ccrm-rpx__ghead p { margin: 2px 0 0; font-size: 12.5px; color: var(--br-on-surface-variant); }
.ccrm-rpx__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccrm-rpx__card { display: flex; align-items: flex-start; gap: 14px; padding: 16px 16px 14px; background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: 18px !important; box-shadow: var(--br-shadow); color: inherit !important; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; position: relative; }
.ccrm-rpx__card:hover { transform: translateY(-2px); box-shadow: var(--br-shadow-md); border-color: rgba(0, 69, 124, .35); }
.ccrm-rpx__icon { width: 40px; height: 40px; border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center; background: #e5f4ff; color: var(--br-navy); font-size: 16px; flex: 0 0 40px; }
.ccrm-rpx__card:hover .ccrm-rpx__icon { background: var(--br-navy); color: #fff; }
.ccrm-rpx__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-right: 18px; }
.ccrm-rpx__body b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-rpx__body p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--br-on-surface-variant); }
.ccrm-rpx__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ccrm-rpx__tags em { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px !important; background: var(--br-surface-high); color: var(--br-on-surface-variant); }
.ccrm-rpx__tags em.is-fin { background: rgba(5, 150, 105, .12); color: var(--br-emerald); }
.ccrm-rpx__go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--br-on-surface-variant); font-size: 18px; transition: transform .15s ease, color .15s ease; }
.ccrm-rpx__card:hover .ccrm-rpx__go { color: var(--br-navy); transform: translate(3px, -50%); }
/* viewer */
.ccrm-page-head__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-accent) !important; text-decoration: none !important; }
.ccrm-rpx__titleic { font-size: 22px; color: var(--br-navy); margin-right: 4px; vertical-align: -2px; }
.ccrm-rpx__filters { align-items: flex-end; gap: 10px 14px; padding: 12px 16px 14px; border-radius: 20px !important; }
.ccrm-rpx__f { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 500; flex: 0 0 auto; }
.ccrm-rpx__f > span:first-child { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-rpx__f .form-control { height: 38px; min-width: 150px; border-radius: 12px !important; font-size: 12.5px; font-weight: 600; }
.ccrm-rpx__f--q .form-control { min-width: 220px; }
.ccrm-rpx__f--date .form-control { min-width: 150px; }
.ccrm-rpx__num { display: flex; align-items: center; gap: 8px; }
.ccrm-rpx__num .form-control { min-width: 80px; width: 80px; }
.ccrm-rpx__num em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-rpx__check { display: inline-flex; align-items: center; gap: 8px; height: 38px; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); }
.ccrm-rpx__check input { margin: 0; width: 16px; height: 16px; accent-color: var(--br-navy); }
.ccrm-rpx__apply { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ccrm-rpx__apply .btn { border-radius: 999px !important; height: 38px; padding: 0 18px; }
.ccrm-rpx__reset { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant) !important; }
.ccrm-rpx__print-head { display: none; }
.ccrm-rpx__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.ccrm-rpx__kpi { padding: 14px 16px; background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: 16px !important; box-shadow: var(--br-shadow); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ccrm-rpx__kpi-v { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--br-navy); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-rpx__kpi-k { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-rpx__notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0 0 14px; border-radius: 14px !important; background: rgba(217, 119, 6, .1); color: #92400e; font-size: 12.5px; font-weight: 600; }
.ccrm-rpx__body.has-chart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 16px; align-items: start; }
.ccrm-rpx__body.has-chart .ccrm-rpx__chart { margin-bottom: 0; }
.ccrm-rpx__body.has-chart .ccrm-rpx__table { margin-bottom: 0; min-width: 0; }
.ccrm-rpx__cardhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--br-hairline); }
.ccrm-rpx__cardhead > b { font-size: 13px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-rpx__cardhead > small { font-size: 11.5px; color: var(--br-on-surface-variant); flex: 1 1 200px; }
.ccrm-rpx__tsearch { position: relative; margin-left: auto; }
.ccrm-rpx__tsearch .fa { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--br-on-surface-variant); font-size: 12px; }
.ccrm-rpx__tsearch .form-control { height: 34px; width: 200px; padding-left: 32px !important; border-radius: 999px !important; background: var(--br-surface-low) !important; border-color: transparent !important; font-size: 12px; }
.ccrm-rpx__chartbody { padding: 16px 18px 18px; }
.ccrm-rpx__chartbody.is-columns { overflow-x: auto; cursor: grab; }
.ccrm-rpx__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ccrm-rpx__dt { margin: 0 !important; min-width: 100%; }
.ccrm-rpx__dt > thead > tr > th { cursor: pointer; user-select: none; }
.ccrm-rpx__dt > thead > tr > th .fa { margin-left: 4px; opacity: .35; font-size: 9px; }
.ccrm-rpx__dt > thead > tr > th.is-asc .fa, .ccrm-rpx__dt > thead > tr > th.is-desc .fa { opacity: 1; color: var(--br-navy); }
.ccrm-rpx__dt th.is-num, .ccrm-rpx__dt th.is-money, .ccrm-rpx__dt th.is-pct, .ccrm-rpx__dt td.is-num, .ccrm-rpx__dt td.is-money, .ccrm-rpx__dt td.is-pct { text-align: right; }
.ccrm-rpx__dt td.is-text, .ccrm-rpx__dt td.is-link { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-rpx__dt > tfoot > tr > td { padding: 12px 16px !important; border-top: 2px solid var(--br-navy) !important; background: var(--br-surface-low); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { .ccrm-rpx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ccrm-rpx__body.has-chart { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
    .ccrm-rpx__grid { grid-template-columns: minmax(0, 1fr); }
    .ccrm-rpx__search { flex: 1 1 auto; }
    .ccrm-rpx__filters { border-radius: 18px !important; }
    .ccrm-rpx__f { flex: 1 1 calc(50% - 7px); }
    .ccrm-rpx__f .form-control, .ccrm-rpx__f--q .form-control { min-width: 0; width: 100%; }
    .ccrm-rpx__f--q, .ccrm-rpx__f--check { flex-basis: 100%; }
    .ccrm-rpx__apply { width: 100%; margin-left: 0; justify-content: space-between; }
    .ccrm-rpx__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ccrm-rpx__kpi-v { font-size: 19px; }
    .ccrm-rpx__cardhead > small { flex-basis: 100%; }
    .ccrm-rpx__tsearch { margin-left: 0; width: 100%; } .ccrm-rpx__tsearch .form-control { width: 100%; }
    .ccrm-rpx__dt td.is-text, .ccrm-rpx__dt td.is-link { max-width: 180px; }
}
@media print {
    body.ccrm-rpxpage .page-header, body.ccrm-rpxpage .page-sidebar-wrapper, body.ccrm-rpxpage .page-bar, body.ccrm-rpxpage .ccrm-page-head, body.ccrm-rpxpage .ccrm-rpx__filters, body.ccrm-rpxpage .ccrm-rpx__tsearch, body.ccrm-rpxpage .page-footer, body.ccrm-rpxpage .ccrm-quicknav, body.ccrm-rpxpage .ccrm-drawer, body.ccrm-rpxpage .ccrm-rpx__dt th .fa { display: none !important; }
    body.ccrm-rpxpage { padding: 0 !important; background: #fff !important; }
    body.ccrm-rpxpage .page-container, body.ccrm-rpxpage .page-content-wrapper, body.ccrm-rpxpage .page-content { margin: 0 !important; padding: 0 !important; overflow: visible !important; }
    body.ccrm-rpxpage .ccrm-rpx__print-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #00457c; }
    body.ccrm-rpxpage .ccrm-rpx__print-head h2 { margin: 2px 0 0; font-size: 22px; font-weight: 700; color: #00457c; }
    body.ccrm-rpxpage .ccrm-rpx__print-meta { font-size: 10.5px; text-align: right; color: #475569; }
    body.ccrm-rpxpage .ccrm-rpx__body.has-chart { display: block; }
    body.ccrm-rpxpage .ccrm-rpx__chart { margin-bottom: 14px; break-inside: avoid; }
    body.ccrm-rpxpage .ccrm-listcard, body.ccrm-rpxpage .ccrm-rpx__kpi { box-shadow: none !important; }
    body.ccrm-rpxpage .ccrm-rpx__kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    body.ccrm-rpxpage .ccrm-rpx__scroll { overflow: visible !important; }
    body.ccrm-rpxpage .ccrm-rpx__dt td, body.ccrm-rpxpage .ccrm-rpx__dt th { padding: 6px 8px !important; font-size: 10px !important; white-space: normal !important; }
    body.ccrm-rpxpage .ccrm-rpx__dt td.is-text, body.ccrm-rpxpage .ccrm-rpx__dt td.is-link { max-width: none; }
    body.ccrm-rpxpage .ccrm-rpx__dt tr { break-inside: avoid; }
}

.ccrm-rpx__dt td.is-date, .ccrm-rpx__dt td.is-chip, .ccrm-rpx__dt td.is-yesno { white-space: nowrap; }
@media (max-width: 767px) { .page-content .ccrm-listcard table.ccrm-rpx__dt { display: table; width: max-content; min-width: 100%; overflow: visible; } }

/* sidebar: folders inside a group popup open a third popup (Sales > Reports > Accounts > ...) */
.ccrm-pop--sub .ccrm-pop--sub { top: -8px; width: 268px; max-height: calc(100vh - 120px); overflow-y: auto; }
.ccrm-pop--sub .ccrm-pop--sub .ccrm-pop__link > span { white-space: normal; line-height: 1.3; }
.ccrm-pop__grp--nested > .ccrm-pop__grow > .ccrm-pop__gi { color: var(--br-navy); }
@media (max-width: 991px) {
    .ccrm-pop--sub .ccrm-pop--sub { max-height: none; overflow: visible; }
    .ccrm-pop--sub .ccrm-pop--sub .ccrm-pop__card { background: rgba(0, 69, 124, .06); margin-left: 12px; }
}

/* report page: quick switch to another report in the page head */
.ccrm-rpx__jump { position: relative; display: inline-flex; align-items: center; margin: 0; }
.ccrm-rpx__jump > .fa { position: absolute; left: 14px; color: var(--br-navy); font-size: 13px; pointer-events: none; }
.ccrm-rpx__jump > .form-control { height: 38px; min-width: 260px; padding-left: 36px !important; border-radius: 999px !important; font-size: 12.5px; font-weight: 600; }
@media (max-width: 767px) { .ccrm-rpx__jump { width: 100%; } .ccrm-rpx__jump > .form-control { width: 100%; min-width: 0; } }
.ccrm-pop__link--plain { padding-left: 14px; }
.ccrm-pop__grp--nested > .ccrm-pop__grow { padding-left: 14px; }

/* ==========================================================================
   Newsletter module (newsletter/): list, composer, audience & sending
   ========================================================================== */
.ccrm-chip--info { background: #e5f4ff !important; color: var(--br-navy) !important; }
.ccrm-nl__kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ccrm-nl__no { width: auto !important; flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
.ccrm-nl__ico { width: 36px; height: 36px; border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center; background: #e5f4ff; color: var(--br-navy); font-size: 15px; }
.ccrm-nl__row .ccrm-ord__main { grid-template-columns: 96px minmax(0, 1fr); }
.ccrm-nl__stat { flex-basis: 170px !important; }
.ccrm-nl__dash { color: var(--br-hairline); }
.ccrm-eq__btn.is-primary { background: var(--br-navy) !important; color: #fff !important; border-color: var(--br-navy) !important; }
/* composer */
.ccrm-nl__titlein { width: 100%; max-width: 640px; border: 0; border-bottom: 2px dashed var(--br-hairline); background: transparent; font: inherit; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--br-on-surface); padding: 0 0 4px; outline: none; }
.ccrm-nl__titlein:focus { border-bottom-color: var(--br-navy); }
.ccrm-nl__work { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 18px; align-items: start; }
.ccrm-nl__card { margin-bottom: 16px; }
.ccrm-nl__card .ccrm-formsec__title small { margin-left: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--br-on-surface-variant); }
.ccrm-nl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ccrm-nl__wide { grid-column: 1 / -1; }
.ccrm-nl__hint { margin: 10px 0 0; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-nl__hint code { background: var(--br-surface-high); color: var(--br-navy); border-radius: 6px; padding: 1px 6px; font-size: 11px; }
.ccrm-nl__blocks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ccrm-nl__block { border: 1px solid var(--br-hairline); border-radius: 16px !important; background: var(--br-surface-lowest); overflow: hidden; }
.ccrm-nl__block--ph { border: 2px dashed var(--br-navy) !important; background: #f0f6fc; min-height: 56px; }
.ccrm-nl__bhead { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 6px; background: var(--br-surface-low); }
.ccrm-nl__grip { display: inline-flex; gap: 1px; padding: 6px 6px; color: var(--br-on-surface-variant); cursor: grab; border-radius: 8px !important; }
.ccrm-nl__grip:hover { background: #fff; color: var(--br-navy); }
.ccrm-nl__bico { width: 30px; height: 30px; border-radius: 10px !important; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--br-navy); font-size: 12px; flex: 0 0 30px; }
.ccrm-nl__btitle { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ccrm-nl__btitle b { font-size: 12.5px; color: var(--br-on-surface); }
.ccrm-nl__btitle small { font-size: 11px; color: var(--br-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-nl__bacts { display: inline-flex; gap: 2px; }
.ccrm-nl__bacts button { width: 28px; height: 28px; border: 0; border-radius: 8px !important; background: transparent; color: var(--br-on-surface-variant); font-size: 12px; }
.ccrm-nl__bacts button:hover { background: #fff; color: var(--br-navy); }
.ccrm-nl__bacts button[data-act=del]:hover { color: var(--br-rose); }
.ccrm-nl__bbody { padding: 12px 14px 14px; }
.ccrm-nl__block.is-folded .ccrm-nl__bbody { display: none; }
.ccrm-nl__block.is-folded .ccrm-nl__bacts button[data-act=fold] i { transform: rotate(180deg); }
.ccrm-nl__none { padding: 14px; border: 1px dashed var(--br-hairline); border-radius: 12px !important; font-size: 12.5px; color: var(--br-on-surface-variant); text-align: center; }
.ccrm-nl__palette { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px; border-radius: 16px !important; background: var(--br-surface-low); }
.ccrm-nl__palette-l { flex-basis: 100%; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); margin-bottom: 2px; }
.ccrm-nl__pbtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--br-hairline); border-radius: 999px !important; background: #fff; font: inherit; font-size: 12px; font-weight: 600; color: var(--br-on-surface); cursor: pointer; transition: all .12s ease; }
.ccrm-nl__pbtn .fa { color: var(--br-navy); font-size: 12px; }
.ccrm-nl__pbtn:hover { border-color: var(--br-navy); background: var(--br-navy); color: #fff; }
.ccrm-nl__pbtn:hover .fa { color: #fff; }
.ccrm-nl__pic { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--br-hairline); border-radius: 12px !important; background: var(--br-surface); }
.ccrm-nl__pic img { display: none; width: 120px; height: 72px; object-fit: cover; border-radius: 8px !important; background: #fff; }
.ccrm-nl__pic.has-img img { display: block; }
.ccrm-nl__picbtn { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 14px; border-radius: 999px !important; background: #fff; border: 1px solid var(--br-hairline); font-size: 12px; font-weight: 600; color: var(--br-navy); cursor: pointer; }
.ccrm-nl__picrm { display: none; margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 50% !important; background: #fff; color: var(--br-on-surface-variant); }
.ccrm-nl__pic.has-img .ccrm-nl__picrm { display: inline-flex; align-items: center; justify-content: center; }
.ccrm-nl__pic.is-busy { opacity: .6; pointer-events: none; }
.ccrm-nlpage .note-editor.note-frame { border: 1px solid var(--br-hairline); border-radius: 12px !important; overflow: hidden; }
.ccrm-nlpage .note-editor .note-toolbar { background: var(--br-surface-low); border-bottom: 1px solid var(--br-hairline); padding: 4px 6px; }
.ccrm-nlpage .note-editor .note-editable { font-size: 13.5px; line-height: 1.6; }
.ccrm-nl__files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ccrm-nl__file { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border: 1px solid var(--br-hairline); border-radius: 12px !important; background: var(--br-surface-lowest); font-size: 12.5px; }
.ccrm-nl__file > .fa { color: var(--br-navy); font-size: 15px; }
.ccrm-nl__fname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ccrm-nl__file small { color: var(--br-on-surface-variant); }
.ccrm-nl__frm { width: 26px; height: 26px; border: 0; border-radius: 50% !important; background: var(--br-surface-high); color: var(--br-on-surface-variant); }
.ccrm-nl__frm:hover { background: var(--br-rose); color: #fff; }
.ccrm-nl__drop { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 2px dashed var(--br-hairline); border-radius: 14px !important; background: var(--br-surface); font-size: 12.5px; font-weight: 500; color: var(--br-on-surface-variant); cursor: pointer; transition: all .12s ease; }
.ccrm-nl__drop .fa { font-size: 18px; color: var(--br-navy); }
.ccrm-nl__drop:hover, .ccrm-nl__drop.is-over { border-color: var(--br-navy); background: #f0f6fc; }
.ccrm-nl__drop.is-busy { opacity: .6; }
.ccrm-nl__preview { position: sticky; top: 84px; }
.ccrm-nl__pvbar { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px; }
.ccrm-nl__pvbar b { font-size: 13px; color: var(--br-on-surface); flex: 1 1 auto; }
.ccrm-nl__pvmodes { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px !important; background: var(--br-surface-high); }
.ccrm-nl__pvmodes button { width: 30px; height: 26px; border: 0; border-radius: 999px !important; background: transparent; color: var(--br-on-surface-variant); }
.ccrm-nl__pvmodes button.is-on { background: #fff; color: var(--br-navy); box-shadow: var(--br-shadow); }
.ccrm-nl__pvrefresh { width: 30px; height: 30px; border: 1px solid var(--br-hairline); border-radius: 50% !important; background: #fff; color: var(--br-on-surface-variant); }
.ccrm-nl__pvframe { height: calc(100vh - 200px); min-height: 480px; border-radius: 18px !important; background: #eef2f7; border: 1px solid var(--br-hairline); overflow: hidden; display: flex; justify-content: center; }
/* the frame is drawn at the e-mail's own width and scaled to fit the pane, so
   the whole message is visible at any window size instead of being cut off */
.ccrm-nl__pvframe iframe { flex: 0 0 auto; width: 640px; height: 100%; border: 0; background: #eef2f7; transform-origin: top center; transition: transform .2s ease, width .2s ease; }
.ccrm-nl__pvzoom { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--br-on-surface-variant); min-width: 30px; }
/* audience & sending */
.ccrm-nl__sendwrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.ccrm-nl__switch { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 600; font-size: 13.5px; }
.ccrm-nl__switch input { width: 18px; height: 18px; margin: 0; accent-color: var(--br-navy); }
.ccrm-nl__switch em { font-style: normal; font-weight: 500; color: var(--br-on-surface-variant); }
.ccrm-nl__audgrid { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px !important; background: var(--br-surface); margin-bottom: 14px; }
.ccrm-nl__audgrid.is-off { opacity: .45; pointer-events: none; }
.ccrm-nl__f .ccrm-frm__label { display: block; margin-bottom: 6px; }
.ccrm-nl__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ccrm-nl__chip { margin: 0; cursor: pointer; }
.ccrm-nl__chip input { position: absolute; opacity: 0; pointer-events: none; }
.ccrm-nl__chip span { display: inline-block; padding: 6px 12px; border-radius: 999px !important; border: 1px solid var(--br-hairline); background: #fff; font-size: 12px; font-weight: 600; color: var(--br-on-surface); transition: all .12s ease; }
.ccrm-nl__chip input:checked + span { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }
.ccrm-nl__f--row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.ccrm-nl__check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface); }
.ccrm-nl__check input[type=checkbox] { margin: 0; width: 16px; height: 16px; accent-color: var(--br-navy); }
.ccrm-nl__check--sel .form-control { height: 34px; width: auto; min-width: 150px; border-radius: 10px !important; font-size: 12.5px; }
.ccrm-nl__count { margin-top: 12px; padding: 12px 14px; border-radius: 12px !important; background: #e5f4ff; color: var(--br-navy); font-size: 13.5px; }
.ccrm-nl__count b { font-size: 17px; }
.ccrm-nl__count em { font-style: normal; color: var(--br-rose); font-weight: 600; }
.ccrm-nl__modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ccrm-nl__mode { margin: 0; cursor: pointer; }
.ccrm-nl__mode input { position: absolute; opacity: 0; pointer-events: none; }
.ccrm-nl__modebox { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--br-hairline); border-radius: 14px !important; background: #fff; transition: all .12s ease; }
.ccrm-nl__modebox b { font-size: 13.5px; }
.ccrm-nl__modebox small { font-size: 11.5px; line-height: 1.45; color: var(--br-on-surface-variant); }
.ccrm-nl__mode input:checked + .ccrm-nl__modebox { border-color: var(--br-navy); box-shadow: 0 0 0 3px rgba(0, 69, 124, .1); }
.ccrm-nl__test { padding: 12px 14px; border-radius: 14px !important; background: var(--br-surface); }
.ccrm-nl__testrow { display: flex; gap: 8px; margin: 6px 0 4px; }
.ccrm-nl__testrow .form-control { flex: 1 1 auto; height: 38px; border-radius: 12px !important; }
.ccrm-nl__gogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ccrm-nl__goopt { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--br-hairline); border-radius: 14px !important; }
.ccrm-nl__goopt b { font-size: 14px; }
.ccrm-nl__goopt small { font-size: 11.5px; line-height: 1.45; color: var(--br-on-surface-variant); flex: 1 1 auto; }
.ccrm-nl__goopt .btn { align-self: flex-start; border-radius: 999px !important; }
.ccrm-nl__when { display: flex; gap: 8px; flex-wrap: wrap; }
.ccrm-nl__when .form-control { flex: 1 1 180px; height: 38px; border-radius: 12px !important; }
.ccrm-nl__sendwrap.is-locked #audCard .ccrm-nl__switch, .ccrm-nl__sendwrap.is-locked #audCard .ccrm-nl__audgrid, .ccrm-nl__sendwrap.is-locked #audCard .ccrm-nl__grid, .ccrm-nl__sendwrap.is-locked .ccrm-nl__modes { opacity: .55; pointer-events: none; }
.ccrm-nl__pstate { font-size: 13px; margin-bottom: 10px; }
.ccrm-nl__pbar { height: 10px; border-radius: 999px !important; background: var(--br-surface-high); overflow: hidden; }
.ccrm-nl__pbar i { display: block; height: 100%; background: var(--br-navy); border-radius: 999px !important; transition: width .3s ease; }
.ccrm-nl__pbar i.is-done { background: var(--br-emerald); }
.ccrm-nl__pnums { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-nl__pnums b { color: var(--br-on-surface); font-size: 14px; }
.ccrm-nl__pacts { display: flex; flex-wrap: wrap; gap: 6px; }
.ccrm-nl__pacts .btn { border-radius: 999px !important; }
.ccrm-nl__fails { margin-top: 10px; font-size: 11.5px; color: var(--br-on-surface-variant); max-height: 220px; overflow: auto; }
.ccrm-nl__failsh { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-rose); margin-bottom: 4px; }
.ccrm-nl__samplelist { display: flex; flex-direction: column; gap: 6px; }
.ccrm-nl__srow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.ccrm-nl__srow > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ccrm-nl__srow small { color: var(--br-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-nl__savatar { width: 30px; height: 30px; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; background: #e5f4ff; color: var(--br-navy); font-weight: 700; font-size: 12px; flex: 0 0 30px; }
@media (max-width: 1199px) { .ccrm-nl__work, .ccrm-nl__sendwrap { grid-template-columns: minmax(0, 1fr); } .ccrm-nl__preview { position: static; } .ccrm-nl__pvframe { height: 640px; } .ccrm-nl__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .ccrm-nl__grid, .ccrm-nl__modes, .ccrm-nl__gogrid { grid-template-columns: minmax(0, 1fr); }
    .ccrm-nl__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ccrm-nl__titlein { font-size: 21px; }
    .ccrm-nl__row .ccrm-ord__main { grid-template-columns: minmax(0, 1fr); }
    .ccrm-nl__no { flex-direction: row; align-items: center !important; }
    .ccrm-nl__stat { flex-basis: 100% !important; align-items: flex-start !important; }
    .ccrm-nl__pvframe { height: 560px; }
    .ccrm-nl__testrow { flex-direction: column; }
}
.ccrm-nl__drop input[type=file], .ccrm-nl__picbtn input[type=file], .ccrm-nl__pic input[type=file] { display: none !important; }
.ccrm-nl__drop > span { flex: 1 1 auto; min-width: 0; }

/* products & categories: the icon glyph sits centred; the add row has its own Save; a new entry flashes */
.ccrm-pt__licon > .fa { line-height: 1; display: inline-block; }
.ccrm-pt__addrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 4px; padding: 10px 12px; border: 1.5px solid var(--br-navy); border-radius: 14px !important; background: #fff; box-shadow: 0 0 0 3px rgba(0, 69, 124, .1); }
.ccrm-pt__addrow > .form-control { flex: 1 1 200px; height: 38px; border-radius: 10px !important; }
.ccrm-pt__addrow > .form-control.is-err { border-color: var(--br-rose) !important; }
.ccrm-pt__addrow > .btn { border-radius: 999px !important; height: 38px; padding: 0 16px; }
.ccrm-pt__addcancel { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--br-on-surface-variant); cursor: pointer; }
.ccrm-pt__addcancel:hover { color: var(--br-rose); }
.ccrm-pt__addrow > small { flex-basis: 100%; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-pt__subs .ccrm-pt__addrow { margin-left: 34px; }
@keyframes ccrmPtNew { 0% { background: rgba(5, 150, 105, .28); box-shadow: 0 0 0 4px rgba(5, 150, 105, .25); } 100% { background: transparent; box-shadow: none; } }
.ccrm-pt__line.is-new, .ccrm-pt__mrow.is-new, .ccrm-pt__sub.is-new { animation: ccrmPtNew 3s ease-out forwards; border-radius: 14px; }
.ccrm-pt__line.is-active.is-new { animation: none; box-shadow: 0 0 0 4px rgba(5, 150, 105, .35); }

/* ==========================================================================
   Printing & PDF: every document is laid out for A4, never for the screen.
   A4 is 210x297mm; with the 12mm margins below the text column is 186mm
   (703 CSS px), so the 980px screen papers must reflow, not be shrunk.
   This block is last in the file on purpose: it corrects the earlier
   @media print blocks.
   ========================================================================== */
@page { size: A4 portrait; margin: 12mm 12mm 14mm; }
@page ccrmLandscape { size: A4 landscape; margin: 10mm 10mm 12mm; }
body.ccrm-print-landscape { page: ccrmLandscape; }

@media print {
    /* navy letterheads, chips and banners must survive the printer */
    *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    html, body { width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important;
                 background: #fff !important; font-size: 10.5pt; }

    /* application chrome never reaches the paper */
    .page-header, .page-header.navbar, .page-sidebar, .page-sidebar-wrapper, .page-footer, .page-bar,
    .quick-nav, .quick-nav-trigger, .scroll-to-top, .hiddenpr,
    .ccrm-drawer, .ccrm-drawer__scrim, .ccrm-secbar, .ccrm-secsheet, .ccrm-quicknav,
    .ccrm-page-head__actions, .ccrm-page-head__back, .ccrm-toolbar, .ccrm-rpt__toolbar, .ccrm-pl__actions,
    .ccrm-mailbar, .ccrm-rpx__filters, .ccrm-rpx__jump, .ccrm-rpx__tsearch, .ccrm-tabs__primary, .ccrm-subtabs,
    .modal, .modal-backdrop, .note-toolbar, #ccrmBurger, .ccrm-eq__btn, .ccrm-ord__acts { display: none !important; }

    /* the shell collapses so the document starts at the top-left of the page */
    .page-wrapper, .page-container, .page-content-wrapper, .page-content, .container, .container-fluid,
    .row, .col-md-12, .portlet, .portlet-body, .tabbable-bordered, .tab-content, .tab-pane {
        margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important;
        min-height: 0 !important; height: auto !important; overflow: visible !important;
        background: transparent !important; border: 0 !important; box-shadow: none !important; float: none !important;
    }

    /* the papers take the A4 text column instead of their 980px screen width */
    .ccrm-rpt__paper, .ccrm-pl__paper, .ccrm-rpx__body, .ccrm-frm, .ccrm-listcard, .ccrm-formsec {
        width: auto !important; max-width: none !important; margin: 0 0 8pt !important;
        border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
        background: transparent !important;
    }
    .ccrm-rpt__paper, .ccrm-pl__paper { padding: 0 !important; }
    .ccrm-formsec { padding: 0 0 6pt !important; }

    /* type sized for paper rather than for a wide monitor */
    .ccrm-rpt__title, .ccrm-page-head__title { font-size: 20pt !important; line-height: 1.15 !important; }
    .ccrm-rpt__sub, .ccrm-page-head__sub { font-size: 9pt !important; }
    .ccrm-rpt__h, .ccrm-formsec__title { font-size: 11pt !important; }
    .ccrm-kv__k, .ccrm-stat__k { font-size: 7pt !important; }
    .ccrm-kv__v, .ccrm-stat__v { font-size: 9.5pt !important; }
    .ccrm-rpt__kpi-v { font-size: 13pt !important; }
    .ccrm-rpt__kpi-k { font-size: 6.5pt !important; }
    table, .ccrm-dt, .ccrm-pl__table { width: 100% !important; font-size: 8.5pt !important; table-layout: auto !important; }
    td, th { padding: 4pt 5pt !important; }

    /* nothing may be clipped or scrolled away on paper */
    .ccrm-rpx__scroll, .ccrm-cols__scroll, .ccrm-rpx__chartbody, .ccrm-nl__pvframe { overflow: visible !important; max-height: none !important; }
    .ccrm-rpx__dt td.is-text, .ccrm-rpx__dt td.is-link { max-width: none !important; white-space: normal !important; }

    /* page breaks fall between blocks, never through one */
    .ccrm-rpt__section, .ccrm-rpt__card, .ccrm-rpt__chart, .ccrm-formsec, .ccrm-listcard,
    .ccrm-pl__line, .ccrm-pl__cathead, .ccrm-kv__i, .ccrm-ord__row, .ccrm-ct, tr, .ccrm-rpx__kpi { break-inside: avoid; page-break-inside: avoid; }
    thead { display: table-header-group; }
    tfoot { display: table-footer-group; }
    h1, h2, h3, h4, h5, .ccrm-rpt__h, .ccrm-formsec__title, .ccrm-pl__cathead { break-after: avoid; page-break-after: avoid; }
    p, li { orphans: 3; widows: 3; }

    /* printed links read as text; the address is not useful on paper */
    a, a:link, a:visited { color: inherit !important; text-decoration: none !important; }

    /* a document may ask for its own break */
    .ccrm-pgbreak { break-before: page; page-break-before: always; }
    .ccrm-noprint { display: none !important; }
}

/* ==========================================================================
   Document pages (price list, branch profile, salesperson profile) are a real
   A4 sheet at every screen width: 210mm wide with 12mm margins, so the screen
   is a preview of the printed page. js/ccrm-a4.js scales the whole page down
   on a narrow screen instead of letting the document reflow.
   ========================================================================== */
body.ccrm-rpt { --ccrm-a4-sheet: 794px; --ccrm-a4-margin: 45px; }

body.ccrm-rpt .ccrm-rpt__paper,
body.ccrm-rpt .ccrm-pl__paper {
    width: var(--ccrm-a4-sheet); max-width: none; box-sizing: border-box;
    margin: 0 auto; padding: var(--ccrm-a4-margin) var(--ccrm-a4-margin) 53px;
}
body.ccrm-rpt .ccrm-rpt__toolbar { width: var(--ccrm-a4-sheet); max-width: none; margin: 0 auto 14px; }

/* the sheet never reflows: the narrow-screen rules above must not reach it */
body.ccrm-rpt .ccrm-rpt__kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
body.ccrm-rpt .ccrm-rpt__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.ccrm-rpt .ccrm-rpt__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.ccrm-rpt .ccrm-rpt__facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
body.ccrm-rpt .ccrm-rpt__findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* printing supplies its own page margins, so the sheet drops its own */
@media print {
    body.ccrm-rpt { zoom: 1 !important; }
    body.ccrm-rpt .ccrm-rpt__paper, body.ccrm-rpt .ccrm-pl__paper {
        width: auto !important; padding: 0 !important; margin: 0 !important;
    }
}

/* Sales order > Delivery & terms: the address and the three answers the warehouse and
   accounting act on. Ordinary dropdowns, marked out only by the card they sit in. */
.ccrm-formsec--key { border-color: rgba(11, 99, 174, .3) !important; box-shadow: 0 0 0 3px rgba(11, 99, 174, .06), var(--br-shadow); }
.ccrm-formsec--key > .ccrm-formsec__title { color: var(--br-navy); }
.ccrm-formsec--key > .ccrm-formsec__title small { font-size: 10px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--br-on-surface-variant); }
.ccrm-kv__k--ic { display: flex; align-items: center; gap: 6px; }
.ccrm-kv__k--ic .fa { color: var(--br-navy); font-size: 11px; }

/* Branch > Products & Services: a product can be switched off for this branch, and the
   price opens its history in a side card. A product that is off keeps its price and
   history but is not offered on orders or price lists. */
.ccrm-prod__sw { position: relative; margin: 0 0 0 auto; flex: 0 0 auto; cursor: pointer; }
.ccrm-prod__swin { position: absolute; opacity: 0; pointer-events: none; }
.ccrm-prod__swui { display: block; width: 34px; height: 19px; border-radius: 999px !important; background: var(--br-hairline); transition: background .15s ease; }
.ccrm-prod__swui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50% !important; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.ccrm-prod__swin:checked + .ccrm-prod__swui { background: var(--br-emerald); }
.ccrm-prod__swin:checked + .ccrm-prod__swui::after { transform: translateX(15px); }
.ccrm-prod__swin:disabled + .ccrm-prod__swui { opacity: .5; }
.ccrm-prod__swin:focus-visible + .ccrm-prod__swui { outline: 2px solid var(--br-accent); outline-offset: 2px; }
.ccrm-prod__offchip { margin-left: auto; font-size: 8.5px; }
.ccrm-prod.is-off { background: var(--br-surface); border-style: dashed; }
.ccrm-prod.is-off .ccrm-prod__name, .ccrm-prod.is-off .ccrm-prod__price, .ccrm-prod.is-off .ccrm-prod__foot { opacity: .5; }
.ccrm-prod.is-off .ccrm-prod__icon { background: var(--br-surface-high); color: var(--br-on-surface-variant); }
.ccrm-prod.is-off .ccrm-prod__top::after { content: "not offered here"; order: 9; flex-basis: 100%; margin-top: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }

/* the price history side card */
.ccrm-ph__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--br-hairline); }
.ccrm-ph__name { margin: 2px 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-ph__for { margin: 0; font-size: 12.5px; color: var(--br-on-surface-variant); }
.ccrm-ph__now { text-align: right; }
.ccrm-ph__nowk { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-ph__now b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--br-navy); font-variant-numeric: tabular-nums; }
.ccrm-ph__now small { font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-ph__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.ccrm-ph__stat { padding: 11px 14px; border-radius: 14px !important; background: var(--br-surface); border: 1px solid var(--br-hairline); }
.ccrm-ph__stat b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-ph__stat span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-ph__stat.is-up b { color: var(--br-rose); }
.ccrm-ph__stat.is-down b { color: var(--br-emerald); }
.ccrm-ph__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ccrm-ph__row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px !important; border: 1px solid var(--br-hairline); background: var(--br-surface-lowest); }
.ccrm-ph__row.is-current { border-color: rgba(11, 99, 174, .35); box-shadow: 0 0 0 3px rgba(11, 99, 174, .07); }
.ccrm-ph__dot { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; background: var(--br-surface-high); color: var(--br-on-surface-variant); font-size: 11px; }
.ccrm-ph__dot.is-up { background: rgba(225, 29, 72, .12); color: var(--br-rose); }
.ccrm-ph__dot.is-down { background: rgba(5, 150, 105, .12); color: var(--br-emerald); }
.ccrm-ph__dot.is-first { background: #e5f4ff; color: var(--br-navy); }
.ccrm-ph__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ccrm-ph__price { font-size: 15px; font-weight: 700; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-ph__price em { font-style: normal; margin-left: 6px; font-size: 8.5px; vertical-align: 2px; }
.ccrm-ph__step { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-ph__step b { margin-left: 8px; font-weight: 700; }
.ccrm-ph__step b.is-up { color: var(--br-rose); }
.ccrm-ph__step b.is-down { color: var(--br-emerald); }
.ccrm-ph__when { flex: 0 0 auto; text-align: right; }
.ccrm-ph__when b { display: block; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); white-space: nowrap; }
.ccrm-ph__when b.is-unknown { font-weight: 600; color: var(--br-on-surface-variant); font-style: italic; }
.ccrm-ph__when small { font-size: 10.5px; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-ph__note { margin: 14px 0 0; font-size: 11.5px; color: var(--br-on-surface-variant); }
@media (max-width: 767px) {
    .ccrm-ph__stats { grid-template-columns: minmax(0, 1fr); }
    .ccrm-ph__head, .ccrm-ph__now { text-align: left; }
    .ccrm-ph__row { flex-wrap: wrap; }
    .ccrm-ph__when { flex-basis: 100%; text-align: left; padding-left: 42px; }
}

/* Stock item > Item Documents: the files that belong with an item, each with a
   description, when it was last updated and by whom, and open / download actions. */
.ccrm-doc__drop { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 16px 18px; border: 2px dashed var(--br-hairline); border-radius: 16px !important; background: var(--br-surface); font-size: 12.5px; font-weight: 500; color: var(--br-on-surface-variant); cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.ccrm-doc__drop > .fa { font-size: 20px; color: var(--br-navy); }
.ccrm-doc__drop > span { flex: 1 1 auto; min-width: 0; }
.ccrm-doc__drop:hover, .ccrm-doc__drop.is-over { border-color: var(--br-navy); background: #f0f6fc; }
.ccrm-doc__drop.is-busy { opacity: .55; pointer-events: none; }
.ccrm-doc__list { display: flex; flex-direction: column; gap: 8px; }
.ccrm-doc { display: flex; align-items: flex-start; gap: 14px; padding: 13px 14px; border: 1px solid var(--br-hairline); border-radius: 16px !important; background: var(--br-surface-lowest); transition: border-color .12s ease, box-shadow .12s ease; }
.ccrm-doc:hover { border-color: rgba(11, 99, 174, .3); box-shadow: var(--br-shadow); }
.ccrm-doc__ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px !important; display: inline-flex; align-items: center; justify-content: center; background: #e5f4ff; color: var(--br-navy); font-size: 17px; }
.ccrm-doc__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ccrm-doc__name { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface) !important; text-decoration: none !important; overflow-wrap: anywhere; }
.ccrm-doc__name:hover { color: var(--br-accent) !important; }
.ccrm-doc__desc { font-size: 12.5px; line-height: 1.5; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-doc__desc em { font-style: italic; color: var(--br-on-surface-variant); }
.ccrm-doc__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 3px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-doc__meta .fa { margin-right: 4px; opacity: .7; }
.ccrm-doc__meta b { font-weight: 700; color: var(--br-on-surface); }
.ccrm-doc__acts { flex: 0 0 auto; display: inline-flex; gap: 6px; }
.ccrm-doc__edit { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 14px !important; background: var(--br-surface); border: 1.5px solid var(--br-navy); }
.ccrm-doc__edit .form-control { border-radius: 10px !important; font-size: 12.5px; }
.ccrm-doc__editacts { display: flex; align-items: center; gap: 10px; }
.ccrm-doc__editacts .btn { border-radius: 999px !important; }
.ccrm-doc__cancel { border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--br-on-surface-variant); cursor: pointer; }
.ccrm-doc__cancel:hover { color: var(--br-rose); }
.ccrm-doc.is-editing { border-color: var(--br-navy); }
@media (max-width: 767px) {
    .ccrm-doc { flex-wrap: wrap; }
    .ccrm-doc__acts { width: 100%; justify-content: flex-end; }
    .ccrm-doc__drop { flex-direction: column; align-items: flex-start; }
}
.ccrm-doc__drop input[type=file] { display: none !important; }

/* ==========================================================================
   Client portal, staff side

   Two screens: the Client requests board (requests/) where visits asked for
   from the portal are answered, and the Portal access side card (clients/)
   where a client's own logins are created and reset.
   ========================================================================== */

/* ------------------------------------------------- the requests board ---- */
.ccrm-cr { display: flex; flex-direction: column; gap: 10px; }
.ccrm-cr__row {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 15px 17px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-left: 4px solid var(--br-outline-variant);
    border-radius: 16px !important;
    transition: box-shadow .12s ease, border-color .12s ease;
}
.ccrm-cr__row:hover { box-shadow: var(--br-shadow); }
.ccrm-cr__row.is-p0 { border-left-color: var(--br-amber); }
.ccrm-cr__row.is-p1, .ccrm-cr__row.is-p2 { border-left-color: var(--br-navy); }
.ccrm-cr__row.is-p3 { border-left-color: var(--br-emerald); }
.ccrm-cr__row.is-p4 { border-left-color: var(--br-rose); }
.ccrm-cr__row.is-p3, .ccrm-cr__row.is-p4 { opacity: .78; }
.ccrm-cr__row.is-p3:hover, .ccrm-cr__row.is-p4:hover { opacity: 1; }

.ccrm-cr__ic {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 16px;
}
.ccrm-cr__body { flex: 1 1 auto; min-width: 0; }
.ccrm-cr__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccrm-cr__subject { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-cr__chip.is-navy  { background: rgba(0, 69, 124, .12) !important; color: var(--br-navy) !important; }
.ccrm-cr__chip.is-green { background: rgba(5, 150, 105, .13) !important; color: var(--br-emerald) !important; }
.ccrm-cr__chip.is-amber { background: rgba(217, 119, 6, .14) !important; color: var(--br-amber) !important; }
.ccrm-cr__chip.is-rose  { background: rgba(225, 29, 72, .12) !important; color: var(--br-rose) !important; }
.ccrm-cr__chip.is-grey  { background: var(--br-surface-high) !important; color: var(--br-on-surface-variant) !important; }

.ccrm-cr__who { margin-top: 2px; font-size: 12px; }
.ccrm-cr__who a { color: var(--br-on-surface-variant) !important; }
.ccrm-cr__who a:hover { color: var(--br-accent) !important; }
.ccrm-cr__who b { font-weight: 700; color: var(--br-on-surface); }
.ccrm-cr__text { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-cr__meta { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 8px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-cr__meta .fa { opacity: .7; }
.ccrm-cr__meta a { color: var(--br-on-surface-variant) !important; }
.ccrm-cr__reply {
    margin-top: 10px; padding: 10px 13px;
    border-left: 3px solid var(--br-navy); border-radius: 0 12px 12px 0 !important;
    background: var(--br-surface); font-size: 12.5px; color: var(--br-on-surface);
}
.ccrm-cr__reply b {
    display: block; margin-bottom: 3px;
    font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--br-navy);
}
.ccrm-cr__acts { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ccrm-cr__acts .cr-status { width: 152px; height: 34px; padding: 0 10px; font-size: 11.5px; }

@media (max-width: 860px) {
    .ccrm-cr__row { flex-wrap: wrap; }
    .ccrm-cr__acts { width: 100%; padding-left: 54px; justify-content: flex-end; }
    .ccrm-cr__acts .cr-status { flex: 1 1 auto; width: auto; }
}

/* ---------------------------------------------- portal access side card -- */
.ccrm-pa__list { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.ccrm-pa {
    padding: 20px 22px;
    border: 1px solid var(--br-hairline); border-radius: 20px !important;
    background: var(--br-surface-lowest);
    box-shadow: var(--br-shadow);
}
.ccrm-pa[data-active="0"] { opacity: .68; }
.ccrm-pa__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ccrm-pa__user { display: inline-flex; align-items: center; gap: 8px; }
.ccrm-pa__user .fa { color: var(--br-navy); opacity: .7; }
.ccrm-pa__user b { font-family: Consolas, 'Courier New', monospace; font-size: 15px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-pa__who { margin-top: 9px; font-size: 13px; line-height: 1.5; color: var(--br-on-surface); }
.ccrm-pa__who em { font-style: italic; color: var(--br-on-surface-variant); }
.ccrm-pa__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-pa__meta .fa { opacity: .7; margin-right: 3px; }
.ccrm-pa__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--br-hairline); }
.ccrm-pa__acts .btn { border-radius: 999px !important; font-size: 11px; padding: 7px 15px; }

/* the one moment the password exists in readable form */
.ccrm-pa__creds { border: 1.5px solid var(--br-navy); border-radius: 18px !important; padding: 18px 20px; background: #f4f9fd; }
.ccrm-pa__credbox { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 6px; }
.ccrm-pa__credbox > div > span {
    display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--br-on-surface-variant);
}
.ccrm-pa__credbox > div > b {
    display: block; margin-top: 2px;
    font-family: Consolas, 'Courier New', monospace; font-size: 15px; font-weight: 700;
    color: var(--br-navy); overflow-wrap: anywhere; user-select: all;
}
.ccrm-pa__credmsg { margin: 14px 0 10px; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-pa__creds .btn { border-radius: 999px !important; }

/* what one client login may open */
.ccrm-pa__rights { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--br-outline-variant); }
.ccrm-pa__rights--new { margin-top: 22px; padding-top: 0; border-top: 0; }
.ccrm-pa__rlabel {
    display: block; margin-bottom: 8px;
    font-size: 9.5px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--br-on-surface-variant);
}
.ccrm-pa__rlabel em { font-style: normal; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: .85; }
.ccrm-pa__grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); margin-top: 10px; }
.ccrm-pa__right { display: block; margin: 0; cursor: pointer; font-weight: 400; }
.ccrm-pa__right input { position: absolute; opacity: 0; width: 0; height: 0; }
/* a tick box in the first column, then the label with its explanation under it.
   Off reads as off at a glance: dashed and faded, against a solid navy card when on. */
.ccrm-pa__right > span {
    position: relative;
    display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; align-items: start; height: 100%;
    padding: 13px 15px 13px 14px; border: 1.5px dashed var(--br-outline-variant); border-radius: 15px !important;
    background: var(--br-surface); opacity: .72;
    transition: border-color .12s ease, background .12s ease, opacity .12s ease;
}
.ccrm-pa__right .fa {
    grid-column: 1; grid-row: 1; width: 18px; height: 18px; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px !important; background: var(--br-surface-high);
    font-size: 10px; color: var(--br-on-surface-variant);
}
.ccrm-pa__right b { grid-column: 2; grid-row: 1; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-pa__right em { grid-column: 2; grid-row: 2; font-style: normal; font-size: 11px; line-height: 1.45; color: var(--br-on-surface-variant); opacity: .85; }
.ccrm-pa__right > span::after {
    content: "\f00c"; font-family: FontAwesome;
    position: absolute; top: 10px; right: 11px; font-size: 11px; color: var(--br-emerald); opacity: 0;
    transition: opacity .12s ease;
}
.ccrm-pa__right > span:hover { opacity: 1; border-color: var(--br-hairline); background: var(--br-surface-lowest); }
.ccrm-pa__right input:checked + span {
    border-style: solid; border-color: var(--br-navy); background: #f2f8fd; opacity: 1;
    padding-right: 28px;
}
.ccrm-pa__right input:checked + span::after { opacity: 1; }
.ccrm-pa__right input:checked + span .fa { background: var(--br-navy); color: #fff; }
.ccrm-pa__right input:checked + span b { color: var(--br-navy); }
.ccrm-pa__right input:focus + span { outline: 2px solid rgba(0, 69, 124, .3); outline-offset: 2px; }

.ccrm-pa__create { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.ccrm-pa__create .btn { border-radius: 999px !important; }
.ccrm-pa__send { display: inline-flex; align-items: center; gap: 9px; }
.ccrm-pa__send em { font-style: normal; font-size: 12px; color: var(--br-on-surface-variant); }

/* the Portal button on the accounts list */
.ccrm-acc__actions .btn.is-on { border-color: var(--br-emerald) !important; color: var(--br-emerald) !important; }
.ccrm-acc__actions .btn.is-on b { font-weight: 800; }

/* ==========================================================================
   Arrange your dashboard

   A side panel on the dashboard where each user orders the bands of their own
   page and switches off the ones they do not use. What it can offer is limited
   to the sections Settings > Dashboard grants their role.
   ========================================================================== */

/* sits in the page toolbar beside the date-range chooser */
.ccrm-dc__open {
    display: inline-flex; align-items: center; gap: 7px;
    margin-right: 8px; padding: 6px 15px;
    border: 1px solid var(--br-hairline); border-radius: 999px !important;
    background: var(--br-surface-lowest); color: var(--br-on-surface-variant);
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.ccrm-dc__open .fa { font-size: 12px; }
.ccrm-dc__open:hover { border-color: var(--br-navy); color: var(--br-navy); background: #f2f8fd; }

.ccrm-dc { position: fixed; inset: 0; z-index: 10600; }
.ccrm-dc[hidden] { display: none; }
.ccrm-dc__scrim { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); animation: ccrmDcFade .16s ease; }
@keyframes ccrmDcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ccrmDcSlide { from { transform: translateX(28px); opacity: .4; } to { transform: none; opacity: 1; } }

.ccrm-dc__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 440px; max-width: 100%;
    display: flex; flex-direction: column;
    background: var(--br-surface);
    box-shadow: -8px 0 32px rgba(15, 23, 42, .18);
    animation: ccrmDcSlide .18s ease;
}
.ccrm-dc__head {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 20px 22px 14px; border-bottom: 1px solid var(--br-outline-variant);
    background: var(--br-surface-lowest);
}
.ccrm-dc__eyebrow {
    display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--br-on-surface-variant);
}
.ccrm-dc__title { margin: 2px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--br-on-surface); }
.ccrm-dc__x {
    margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50% !important;
    background: var(--br-surface-high); color: var(--br-on-surface-variant); font-size: 14px; cursor: pointer;
}
.ccrm-dc__x:hover { background: var(--br-rose); color: #fff; }
.ccrm-dc__hint {
    margin: 0; padding: 13px 22px; font-size: 12px; line-height: 1.55;
    color: var(--br-on-surface-variant); background: var(--br-surface-lowest);
    border-bottom: 1px solid var(--br-outline-variant);
}

.ccrm-dc__list {
    flex: 1 1 auto; overflow-y: auto; list-style: none;
    margin: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 9px;
}
.ccrm-dc__item {
    border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest); padding: 11px 13px;
    transition: border-color .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.ccrm-dc__item.is-drag { opacity: .45; border-style: dashed; }
.ccrm-dc__item:hover { border-color: rgba(0, 69, 124, .32); box-shadow: var(--br-shadow); }
.ccrm-dc__row { display: flex; align-items: center; gap: 11px; }
.ccrm-dc__grip { flex: 0 0 auto; color: var(--br-outline-variant); font-size: 13px; cursor: grab; }
.ccrm-dc__item:hover .ccrm-dc__grip { color: var(--br-on-surface-variant); }
.ccrm-dc__ic {
    flex: 0 0 32px; width: 32px; height: 32px; border-radius: 11px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 14px;
}
.ccrm-dc__name { flex: 1 1 auto; min-width: 0; }
.ccrm-dc__name b { display: block; font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-dc__name em { display: block; margin-top: 1px; font-style: normal; font-size: 11px; line-height: 1.4; color: var(--br-on-surface-variant); }
.ccrm-dc__move { flex: 0 0 auto; display: inline-flex; flex-direction: column; gap: 2px; }
.ccrm-dc__arrow {
    width: 24px; height: 17px; padding: 0; border: 1px solid var(--br-hairline);
    border-radius: 7px !important; background: var(--br-surface);
    color: var(--br-on-surface-variant); font-size: 11px; line-height: 1; cursor: pointer;
}
.ccrm-dc__arrow:hover { border-color: var(--br-navy); color: var(--br-navy); background: var(--br-surface-lowest); }
.ccrm-dc__n {
    flex: 0 0 auto; min-width: 34px; text-align: center;
    font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
    color: var(--br-on-surface-variant);
}

.ccrm-dc__subs {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 10px 0 1px; padding-left: 54px;
}
.ccrm-dc__sub { margin: 0; cursor: pointer; font-weight: 400; }
.ccrm-dc__sub input { position: absolute; opacity: 0; width: 0; height: 0; }
.ccrm-dc__sub > span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px !important;
    border: 1px solid var(--br-outline-variant); background: var(--br-surface);
    font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant);
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.ccrm-dc__sub .fa { font-size: 9px; opacity: 0; transition: opacity .12s ease; }
.ccrm-dc__sub input:checked + span {
    border-color: var(--br-navy); background: #eef5fb; color: var(--br-navy);
}
.ccrm-dc__sub input:checked + span .fa { opacity: 1; }
.ccrm-dc__sub input:focus + span { outline: 2px solid rgba(0, 69, 124, .3); outline-offset: 2px; }

.ccrm-dc__foot {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    padding: 14px 22px; border-top: 1px solid var(--br-outline-variant);
    background: var(--br-surface-lowest);
}
.ccrm-dc__foot .btn { border-radius: 999px !important; }

@media (max-width: 560px) {
    .ccrm-dc__panel { width: 100%; }
    .ccrm-dc__subs { padding-left: 0; }
    .ccrm-dc__grip { display: none; }
}

/* ==========================================================================
   Settings > Sales > Task & reporting

   Task types on one tab, report types and their questions on another. The
   whole point of the screen is that the two lists stay short, so it is built
   to make adding a question feel easier than adding a type.
   ========================================================================== */

.ccrm-tr__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.ccrm-tr__tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 16px; border: 1px solid var(--br-hairline); border-radius: 999px !important;
    background: var(--br-surface-lowest); color: var(--br-on-surface-variant);
    font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
    cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.ccrm-tr__tab em {
    font-style: normal; min-width: 20px; padding: 1px 6px; border-radius: 999px !important;
    background: var(--br-surface-high); font-size: 10px; font-weight: 800;
}
.ccrm-tr__tab:hover { border-color: var(--br-navy); color: var(--br-navy); }
.ccrm-tr__tab.is-on { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }
.ccrm-tr__tab.is-on em { background: rgba(255, 255, 255, .22); color: #fff; }

.ccrm-tr__pane { display: none; }
.ccrm-tr__pane.is-on { display: block; }

.ccrm-tr__add { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 16px; }
.ccrm-tr__add .form-control { flex: 1 1 200px; width: auto; }
.ccrm-tr__add .btn { border-radius: 999px !important; flex: 0 0 auto; }
.ccrm-tr__add--side { margin: 0 0 10px; }
.ccrm-tr__add--side .form-control { flex: 1 1 auto; min-width: 0; }

/* ------------------------------------------------------------- a type row -- */
.ccrm-tr__rows { display: flex; flex-direction: column; gap: 10px; }
.ccrm-tr__row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest);
}
.ccrm-tr__row.is-off, .ccrm-tr__q.is-off { opacity: .6; }
.ccrm-tr__move { flex: 0 0 auto; display: inline-flex; flex-direction: column; gap: 3px; padding-top: 3px; }
.ccrm-tr__mv {
    width: 24px; height: 18px; padding: 0; border: 1px solid var(--br-hairline);
    border-radius: 7px !important; background: var(--br-surface);
    color: var(--br-on-surface-variant); font-size: 11px; line-height: 1; cursor: pointer;
}
.ccrm-tr__mv:hover:not(:disabled) { border-color: var(--br-navy); color: var(--br-navy); }
.ccrm-tr__mv:disabled { opacity: .35; cursor: default; }
.ccrm-tr__body { flex: 1 1 auto; min-width: 0; }
.ccrm-tr__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccrm-tr__acts { flex: 0 0 auto; display: inline-flex; gap: 5px; }

.ccrm-tr__name, .ccrm-tr__desc {
    width: 100%; border: 1px solid transparent; border-radius: 9px !important;
    background: transparent; padding: 3px 8px; font-family: inherit;
}
.ccrm-tr__name { font-size: 13.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-tr__head .ccrm-tr__name { flex: 1 1 200px; width: auto; }
.ccrm-tr__desc { margin-top: 2px; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-tr__name:hover, .ccrm-tr__desc:hover { border-color: var(--br-outline-variant); }
.ccrm-tr__name:focus, .ccrm-tr__desc:focus { border-color: var(--br-navy); background: var(--br-surface); outline: 0; }
.ccrm-tr__name[readonly], .ccrm-tr__desc[readonly] { border-color: transparent !important; background: transparent !important; }

/* ---------------------------------------------------- report types on a type */
.ccrm-tr__maps { margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--br-outline-variant); }
.ccrm-tr__maplbl {
    display: block; margin-bottom: 6px;
    font-size: 9.5px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; color: var(--br-on-surface-variant);
}
.ccrm-tr__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ccrm-tr__chip { margin: 0; cursor: pointer; font-weight: 400; }
.ccrm-tr__chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.ccrm-tr__chip > span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px !important;
    border: 1px solid var(--br-outline-variant); background: var(--br-surface);
    font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant);
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.ccrm-tr__chip .fa { font-size: 9px; opacity: 0; transition: opacity .12s ease; }
.ccrm-tr__chip input:checked + span { border-color: var(--br-navy); background: #eef5fb; color: var(--br-navy); }
.ccrm-tr__chip input:checked + span .fa { opacity: 1; }
.ccrm-tr__chip input:disabled + span { opacity: .7; cursor: default; }

/* --------------------------------------------------- report types, two panes */
.ccrm-tr__split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.ccrm-tr__side { position: sticky; top: 12px; }
.ccrm-tr__list { display: flex; flex-direction: column; gap: 4px; }
.ccrm-tr__pick {
    display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
    padding: 9px 12px; border: 1px solid transparent; border-radius: 12px !important;
    background: transparent; color: var(--br-on-surface-variant);
    font-size: 12.5px; font-weight: 600; cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ccrm-tr__pick .fa { width: 16px; text-align: center; opacity: .75; }
.ccrm-tr__pick span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-tr__pick em {
    font-style: normal; min-width: 20px; text-align: center; padding: 1px 6px;
    border-radius: 999px !important; background: var(--br-surface-high);
    font-size: 10px; font-weight: 800; color: var(--br-on-surface-variant);
}
.ccrm-tr__pick:hover { background: var(--br-surface); color: var(--br-on-surface); }
.ccrm-tr__pick.is-on { background: var(--br-navy); border-color: var(--br-navy); color: #fff; font-weight: 700; }
.ccrm-tr__pick.is-on em { background: rgba(255, 255, 255, .22); color: #fff; }
.ccrm-tr__pick.is-off span { text-decoration: line-through; opacity: .7; }

.ccrm-tr__rt { display: none; }
.ccrm-tr__rt.is-on { display: block; }
.ccrm-tr__rthead {
    display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px; margin-bottom: 14px;
    border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest);
}
.ccrm-tr__rtname { flex: 1 1 240px; min-width: 0; }

/* ------------------------------------------------------------- a question -- */
.ccrm-tr__qs { display: flex; flex-direction: column; gap: 9px; }
.ccrm-tr__q {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 15px; border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest);
}
.ccrm-tr__qbody { flex: 1 1 auto; min-width: 0; }
.ccrm-tr__qtop { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ccrm-tr__qtop .ccrm-tr__name { flex: 1 1 220px; width: auto; }
.ccrm-tr__qtype { flex: 0 0 168px; width: 168px; height: 32px; padding: 0 9px; font-size: 11.5px; }
.ccrm-tr__req { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); cursor: pointer; }
.ccrm-tr__qopts, .ccrm-tr__qcond { margin-top: 10px; }
.ccrm-tr__qopts textarea { font-size: 12px; }
.ccrm-tr__condrow { display: grid; grid-template-columns: minmax(0, 1.6fr) 110px minmax(0, 1.2fr); gap: 7px; }
.ccrm-tr__condrow .form-control { height: 32px; padding: 0 9px; font-size: 11.5px; }

/* ----------------------------------------------------------------- the log -- */
.ccrm-tr__log { display: flex; flex-direction: column; gap: 7px; }
.ccrm-tr__logrow {
    padding: 10px 14px; border: 1px solid var(--br-outline-variant); border-radius: 13px !important;
    background: var(--br-surface-lowest);
}
.ccrm-tr__logrow b { display: block; font-size: 12px; font-weight: 700; color: var(--br-on-surface); text-transform: capitalize; }
.ccrm-tr__logrow span { display: block; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-tr__logrow em { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; color: var(--br-on-surface-variant); opacity: .85; }

@media (max-width: 900px) {
    .ccrm-tr__split { grid-template-columns: 1fr; }
    .ccrm-tr__side { position: static; }
    .ccrm-tr__list { flex-direction: row; flex-wrap: wrap; }
    .ccrm-tr__pick { width: auto; border: 1px solid var(--br-outline-variant); }
    .ccrm-tr__condrow { grid-template-columns: 1fr; }
    .ccrm-tr__qtype { flex: 1 1 100%; width: 100%; }
    .ccrm-tr__row, .ccrm-tr__q { flex-wrap: wrap; }
    .ccrm-tr__acts { width: 100%; justify-content: flex-end; }
}

/* ==========================================================================
   Report a task

   Built for a phone in a car park: big targets, one column, no modals, and
   the save button always within reach. Picking an outcome and answering four
   questions should take under a minute.
   ========================================================================== */

.ccrm-rep__ctx {
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    padding: 12px 16px; margin: 0 0 16px;
    border: 1px solid var(--br-hairline); border-radius: 14px !important;
    background: var(--br-surface); font-size: 12px; color: var(--br-on-surface-variant);
}
.ccrm-rep__ctx .fa { margin-right: 6px; opacity: .7; }
.ccrm-rep__ctx b { font-weight: 700; color: var(--br-on-surface); }
.ccrm-rep__plan { flex: 1 1 100%; padding-top: 4px; border-top: 1px dashed var(--br-outline-variant); }

/* ------------------------------------------------------ what happened? --- */
.ccrm-rep__picks { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ccrm-rep__pick {
    position: relative; text-align: left;
    display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; align-items: start;
    padding: 14px 15px; border: 1.5px solid var(--br-outline-variant); border-radius: 16px !important;
    background: var(--br-surface-lowest); cursor: pointer;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.ccrm-rep__pick > .fa {
    grid-column: 1; grid-row: 1 / span 2; align-self: center;
    width: 34px; height: 34px; border-radius: 11px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 15px;
}
.ccrm-rep__pick b { grid-column: 2; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-rep__pick em { grid-column: 2; font-style: normal; font-size: 11.5px; line-height: 1.45; color: var(--br-on-surface-variant); }
.ccrm-rep__pick:hover { border-color: var(--br-hairline); box-shadow: var(--br-shadow); }
.ccrm-rep__pick.is-on { border-color: var(--br-navy); background: #f2f8fd; }
.ccrm-rep__pick.is-on > .fa { background: var(--br-navy); color: #fff; }
.ccrm-rep__pick.is-green.is-on { border-color: var(--br-emerald); background: #eefaf4; }
.ccrm-rep__pick.is-green.is-on > .fa { background: var(--br-emerald); }
.ccrm-rep__pick.is-amber.is-on { border-color: var(--br-amber); background: #fdf6ec; }
.ccrm-rep__pick.is-amber.is-on > .fa { background: var(--br-amber); }
.ccrm-rep__pick.is-rose.is-on { border-color: var(--br-rose); background: #fdeff2; }
.ccrm-rep__pick.is-rose.is-on > .fa { background: var(--br-rose); }
.ccrm-rep__pick.is-grey.is-on { border-color: var(--br-on-surface-variant); background: var(--br-surface-high); }
.ccrm-rep__pick.is-grey.is-on > .fa { background: var(--br-on-surface-variant); }

/* ------------------------------------------------------------ questions -- */
.ccrm-rep__qs { display: flex; flex-direction: column; gap: 14px; }
.ccrm-rep__q[hidden] { display: none; }
.ccrm-rep__qlbl {
    display: block; margin: 0 0 5px;
    font-size: 12px; font-weight: 700; letter-spacing: -.005em; color: var(--br-on-surface);
}
.ccrm-rep__qlbl b { color: var(--br-rose); font-weight: 800; }
.ccrm-rep__qhelp { display: block; margin: -3px 0 6px; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-rep__qin .form-control,
.ccrm-rep__qin .ccrm-in { min-height: 44px; font-size: 13.5px; }
.ccrm-rep__qin textarea.form-control { min-height: 86px; }
.ccrm-rep__err { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--br-rose); }
.ccrm-rep__err:empty { display: none; }

/* Yes / No as two big buttons rather than a dropdown */
.ccrm-rep__seg { display: flex; gap: 8px; }
.ccrm-rep__seg label { flex: 1 1 0; margin: 0; }
.ccrm-rep__seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.ccrm-rep__seg span {
    display: flex; align-items: center; justify-content: center; height: 44px;
    border: 1.5px solid var(--br-outline-variant); border-radius: 12px !important;
    background: var(--br-surface-lowest); font-size: 13px; font-weight: 700;
    color: var(--br-on-surface-variant); cursor: pointer;
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.ccrm-rep__seg input:checked + span { border-color: var(--br-navy); background: #eef5fb; color: var(--br-navy); }
.ccrm-rep__seg input:focus + span { outline: 2px solid rgba(0, 69, 124, .3); outline-offset: 2px; }

.ccrm-rep__willdo {
    font-size: 11.5px; font-weight: 600; color: var(--br-navy);
    margin-right: 10px; align-self: center;
}
.ccrm-rep__willdo:empty { display: none; }

/* ------------------------------------------------------------ the result -- */
.ccrm-rep__done { max-width: 560px; margin: 24px auto; text-align: center; }
.ccrm-rep__tick {
    width: 62px; height: 62px; border-radius: 50% !important; margin: 0 auto 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(5, 150, 105, .12); color: var(--br-emerald); font-size: 26px;
}
.ccrm-rep__done h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--br-on-surface); }
.ccrm-rep__done > p { margin: 6px 0 20px; font-size: 13px; color: var(--br-on-surface-variant); }
.ccrm-rep__made {
    display: flex; align-items: flex-start; gap: 11px; text-align: left;
    padding: 13px 16px; margin: 0 0 10px;
    border: 1px solid rgba(0, 69, 124, .2); border-radius: 14px !important;
    background: rgba(0, 69, 124, .05); font-size: 12.5px; color: var(--br-on-surface);
}
.ccrm-rep__made .fa { font-size: 15px; color: var(--br-navy); margin-top: 1px; }
.ccrm-rep__made b { display: block; }
.ccrm-rep__doneacts { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.ccrm-rep__doneacts .btn { border-radius: 999px !important; }

/* ---------------------------------------------------------- reading one --- */
.ccrm-rep__answers { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ccrm-rep__ans { min-width: 0; }
.ccrm-rep__anslbl {
    display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--br-on-surface-variant);
}
.ccrm-rep__ansval { display: block; margin-top: 2px; font-size: 13px; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-rep__ansfiles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ccrm-rep__file {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px !important;
    border: 1px solid var(--br-hairline); background: var(--br-surface);
    font-size: 11px; font-weight: 600; color: var(--br-navy) !important;
}
.ccrm-rep__file:hover { border-color: var(--br-navy); background: #eef5fb; }
.ccrm-rep__remarks { margin: 0; font-size: 13px; line-height: 1.6; color: var(--br-on-surface); white-space: pre-line; }
.ccrm-rep__none { margin: 0; font-size: 12.5px; color: var(--br-on-surface-variant); }
.ccrm-rep__links { display: flex; flex-direction: column; gap: 7px; }
.ccrm-rep__link {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 14px; border: 1px solid var(--br-hairline); border-radius: 13px !important;
    background: var(--br-surface-lowest); font-size: 12.5px; color: var(--br-on-surface) !important;
}
.ccrm-rep__link:hover { border-color: var(--br-navy); }
.ccrm-rep__link .fa { color: var(--br-navy); opacity: .8; margin-top: 2px; }
.ccrm-rep__link b { display: block; }

@media (max-width: 767px) {
    .ccrm-rep__picks { grid-template-columns: 1fr; }
    .ccrm-rep__answers { grid-template-columns: 1fr; }
    /* the save row stays on screen while the questions scroll */
    .ccrm-rep .ccrm-frm__actions {
        position: sticky; bottom: 0; z-index: 5;
        padding: 12px 16px; margin: 16px -16px -16px;
        background: var(--br-surface-lowest);
        border-top: 1px solid var(--br-hairline);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, .07);
    }
    .ccrm-rep .ccrm-frm__actions .btn { flex: 1 1 auto; }
    .ccrm-rep__willdo { flex: 1 1 100%; margin: 0 0 6px; text-align: center; }
}

/* the report form reveals its sections as the salesperson goes; a class with
   display:flex would otherwise beat the hidden attribute */
.ccrm-rep [hidden] { display: none !important; }

/* ==========================================================================
   Customer activity timeline

   The reported tasks of a branch, newest first: what was planned, what came
   of it, and the two or three facts worth reading without opening anything.
   ========================================================================== */

.ccrm-tl2 { position: relative; display: flex; flex-direction: column; }
.ccrm-tl2__row {
    position: relative; display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 16px 14px 0; color: inherit !important; text-decoration: none !important;
    border-radius: 14px !important; transition: background .12s ease;
}
.ccrm-tl2__row:hover { background: var(--br-surface); }
.ccrm-tl2__when {
    flex: 0 0 52px; text-align: right; padding-top: 2px;
}
.ccrm-tl2__when b { display: block; font-size: 12px; font-weight: 800; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-tl2__when em { display: block; font-style: normal; font-size: 10px; color: var(--br-on-surface-variant); }

/* the rail: a dot per entry, joined by a line that stops at the last one */
.ccrm-tl2__dot {
    position: relative; flex: 0 0 30px; width: 30px; height: 30px; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50% !important; background: var(--br-surface-low);
    color: var(--br-navy); font-size: 12px; z-index: 1;
}
.ccrm-tl2__row::before {
    content: ""; position: absolute; left: 66px; top: 32px; bottom: -14px;
    width: 2px; background: var(--br-outline-variant);
}
.ccrm-tl2__row:last-child::before { display: none; }
.ccrm-tl2__row.is-green .ccrm-tl2__dot { background: rgba(5, 150, 105, .13); color: var(--br-emerald); }
.ccrm-tl2__row.is-amber .ccrm-tl2__dot { background: rgba(217, 119, 6, .14); color: var(--br-amber); }
.ccrm-tl2__row.is-rose  .ccrm-tl2__dot { background: rgba(225, 29, 72, .12); color: var(--br-rose); }
.ccrm-tl2__row.is-grey  .ccrm-tl2__dot { background: var(--br-surface-high); color: var(--br-on-surface-variant); }

.ccrm-tl2__body { flex: 1 1 auto; min-width: 0; }
.ccrm-tl2__what { display: block; font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--br-on-surface-variant); }
.ccrm-tl2__what .fa { margin: 0 4px; font-size: 10px; opacity: .6; }
.ccrm-tl2__what span { color: var(--br-on-surface); }
.ccrm-tl2__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 5px; }
.ccrm-tl2__facts > span { font-size: 12px; color: var(--br-on-surface); min-width: 0; overflow-wrap: anywhere; }
.ccrm-tl2__facts em {
    display: block; font-style: normal;
    font-size: 9px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--br-on-surface-variant);
}
.ccrm-tl2__meta { display: block; margin-top: 6px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-tl2__meta .fa { margin-right: 3px; opacity: .7; }

@media (max-width: 767px) {
    .ccrm-tl2__row { gap: 10px; padding-right: 8px; }
    .ccrm-tl2__when { flex: 0 0 42px; }
    .ccrm-tl2__row::before { left: 56px; }
    .ccrm-tl2__facts { gap: 4px 14px; }
}

/* ---------------------------------------------------------------------------
   Accounts: Current / Potential / Export.
   Three cards that float on the page rather than a boxed segmented bar — each
   carries its own colour, a one-line reminder of what the group is, and its
   count. The open one lifts and fills navy.
   --------------------------------------------------------------------------- */
.ccrm-acctabs {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.ccrm-acctab {
    --tab-tint: var(--br-accent);
    --tab-soft: var(--br-accent-10);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 16px 10px 11px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    box-shadow: var(--br-shadow);
    color: var(--br-on-surface);
    text-decoration: none;
    overflow: hidden;
    transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), box-shadow .18s ease,
                border-color .18s ease, background .18s ease;
}

.ccrm-acctab.is-current { --tab-tint: var(--br-emerald); --tab-soft: rgba(5, 150, 105, .12); }
.ccrm-acctab.is-potential { --tab-tint: var(--br-amber); --tab-soft: rgba(217, 119, 6, .13); }
.ccrm-acctab.is-export { --tab-tint: var(--br-indigo); --tab-soft: rgba(79, 70, 229, .12); }

.ccrm-acctab:hover,
.ccrm-acctab:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--br-shadow-md);
    border-color: var(--br-accent-20);
    color: var(--br-on-surface);
    text-decoration: none;
}

.ccrm-acctab:focus-visible { outline: 2px solid var(--br-accent); outline-offset: 2px; }
.ccrm-acctab:active { transform: translateY(0); }

/* the round icon chip, tinted per group */
.ccrm-acctab__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50% !important;
    background: var(--tab-soft);
    color: var(--tab-tint);
    font-size: 14px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.ccrm-acctab:hover .ccrm-acctab__ico { transform: scale(1.06); }

.ccrm-acctab__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    line-height: 1.15;
}

.ccrm-acctab__name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.ccrm-acctab__hint {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--br-on-surface-variant);
    white-space: nowrap;
    transition: color .18s ease;
}

.ccrm-acctab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    margin-left: 3px;
    padding: 0 9px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    color: var(--br-on-surface);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: background .18s ease, color .18s ease;
}

.ccrm-acctab__lock { margin-left: -2px; color: var(--br-on-surface-variant); font-size: 11px; }

/* the open group */
.ccrm-acctab.is-active {
    background: linear-gradient(135deg, var(--br-navy) 0%, var(--br-navy-soft) 100%);
    border-color: transparent;
    box-shadow: var(--br-shadow-accent);
    color: #fff;
}

.ccrm-acctab.is-active:hover { color: #fff; box-shadow: var(--br-shadow-accent), var(--br-shadow-md); }
.ccrm-acctab.is-active .ccrm-acctab__ico { background: rgba(255, 255, 255, .18); color: #fff; }
.ccrm-acctab.is-active .ccrm-acctab__hint { color: rgba(255, 255, 255, .72); }
.ccrm-acctab.is-active .ccrm-acctab__count { background: rgba(255, 255, 255, .2); color: #fff; }
.ccrm-acctab.is-active .ccrm-acctab__lock { color: rgba(255, 255, 255, .72); }

/* the sentinel at the foot of the list: visible only while a page is on its way */
.ccrm-acc__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 20px 0 8px;
    color: var(--br-on-surface-variant);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ccrm-acc__more[hidden] { display: none; }

/* the branch list of an account, dropped in when the row is first opened */
.ccrm-acc__branchwrap:empty { display: none; }

.ccrm-acc__nobranch {
    margin: 8px 0 2px;
    color: var(--br-on-surface-variant);
    font-size: 12px;
}

@media (max-width: 900px) {
    .ccrm-acctabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-bottom: 12px; }
    .ccrm-acctab { flex: 0 0 auto; }
    .ccrm-acctab__hint { display: none; }
}

@media (max-width: 480px) {
    .ccrm-acctab { gap: 8px; padding: 8px 12px 8px 8px; }
    .ccrm-acctab__ico { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
    .ccrm-acctab__name { font-size: 12px; }
    .ccrm-acctab__count { min-width: 26px; height: 21px; font-size: 11px; }
}

/* The active / inactive toggle on a branch row was the one hard-edged control
   left on this page: bootstrap-switch ships a square track in its own cyan.
   Rounded off and repainted in the Bridge colours. */
.ccrm-acc__branchlist .par .bootstrap-switch {
    border-radius: var(--br-radius-pill) !important;
    border: 1px solid var(--br-hairline) !important;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.ccrm-acc__branchlist .par .bootstrap-switch:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow); }

.ccrm-acc__branchlist .par .bootstrap-switch .bootstrap-switch-handle-on,
.ccrm-acc__branchlist .par .bootstrap-switch .bootstrap-switch-handle-off {
    border-radius: 0 !important;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: none;
}

.ccrm-acc__branchlist .par .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
    background: var(--br-emerald) !important;
    color: #fff !important;
}

.ccrm-acc__branchlist .par .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-danger {
    background: var(--br-surface-high) !important;
    color: var(--br-on-surface-variant) !important;
}

/* the knob between the two halves */
.ccrm-acc__branchlist .par .bootstrap-switch .bootstrap-switch-label {
    background: var(--br-surface-lowest) !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .22);
}

/* ---------------------------------------------------------------------------
   New account: accounts that share words with the name being typed.
   Amber while it is only a resemblance, red once the name matches outright.
   Metronic flattens corners with !important, so every radius here says so too.
   --------------------------------------------------------------------------- */
.ccrm-dup {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: rgba(217, 119, 6, .07);
    border: 1px solid rgba(217, 119, 6, .28);
    border-radius: var(--br-radius-sm) !important;
}

.ccrm-dup[hidden] { display: none; }
.ccrm-dup.is-exact { background: rgba(225, 29, 72, .07); border-color: rgba(225, 29, 72, .32); }

.ccrm-dup__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--br-amber);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
}

.ccrm-dup.is-exact .ccrm-dup__head { color: var(--br-rose); }

.ccrm-dup__list { display: flex; flex-direction: column; gap: 6px; }

.ccrm-dup__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    color: var(--br-on-surface);
    font-size: 12px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ccrm-dup__row:hover,
.ccrm-dup__row:focus {
    border-color: var(--br-accent-20);
    box-shadow: var(--br-shadow);
    transform: translateY(-1px);
    color: var(--br-on-surface);
    text-decoration: none;
}

.ccrm-dup__row.is-exact { border-color: rgba(225, 29, 72, .45); }
.ccrm-dup__name { min-width: 0; font-weight: 500; }
.ccrm-dup__name b { font-weight: 700; color: var(--br-navy); }

.ccrm-dup__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--br-on-surface-variant); font-size: 10px; }
.ccrm-dup__meta .fa-external-link { opacity: .5; font-size: 11px; }

.ccrm-dup__chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--br-surface-low);
    border-radius: var(--br-radius-pill) !important;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ccrm-dup__chip.is-on { background: rgba(5, 150, 105, .14); color: var(--br-emerald); }

.ccrm-dup__more,
.ccrm-dup__hint {
    margin: 8px 0 0;
    color: var(--br-on-surface-variant);
    font-size: 11px;
    line-height: 1.45;
}

.ccrm-dup__more { font-weight: 600; }

/* ---------------------------------------------------------------------------
   Dashboard widget: client requests raised in the portal.
   A tally per status, then the requests themselves — still-open ones first.
   Metronic zeroes corners with !important, so every radius here says so too.
   --------------------------------------------------------------------------- */
.ccrm-crw__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
}

.ccrm-crw__sub { color: var(--br-on-surface-variant); font-size: 11px; }

.ccrm-crw__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--br-accent);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ccrm-crw__all:hover { color: var(--br-navy); text-decoration: none; }

/* the tally */
.ccrm-crw__tally {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.ccrm-crw__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 8px 14px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    color: var(--br-on-surface);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ccrm-crw__stat:hover {
    border-color: var(--br-accent-20);
    box-shadow: var(--br-shadow);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--br-on-surface);
}

.ccrm-crw__stat b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ccrm-crw__stat span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-crw__stat.is-zero { opacity: .55; }
.ccrm-crw__stat.is-amber b { color: var(--br-amber); }
.ccrm-crw__stat.is-navy b  { color: var(--br-navy); }
.ccrm-crw__stat.is-green b { color: var(--br-emerald); }
.ccrm-crw__stat.is-rose b  { color: var(--br-rose); }

/* the list */
.ccrm-crw__list { display: flex; flex-direction: column; gap: 7px; }

.ccrm-crw__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-left: 3px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    color: var(--br-on-surface);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ccrm-crw__row:hover {
    box-shadow: var(--br-shadow-md);
    transform: translateY(-1px);
    color: var(--br-on-surface);
    text-decoration: none;
}

.ccrm-crw__row.is-p0 { border-left-color: var(--br-amber); }
.ccrm-crw__row.is-p1,
.ccrm-crw__row.is-p2 { border-left-color: var(--br-navy); }
.ccrm-crw__row.is-p3 { border-left-color: var(--br-emerald); }
.ccrm-crw__row.is-p4 { border-left-color: var(--br-rose); }

.ccrm-crw__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 50% !important;
    background: var(--br-accent-10);
    color: var(--br-accent);
    font-size: 14px;
}

.ccrm-crw__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ccrm-crw__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccrm-crw__top b { font-size: 12.5px; font-weight: 600; }

.ccrm-crw__chip {
    padding: 2px 9px;
    border-radius: var(--br-radius-pill) !important;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ccrm-crw__chip.is-navy  { background: rgba(0, 69, 124, .12) !important; color: var(--br-navy) !important; }
.ccrm-crw__chip.is-green { background: rgba(5, 150, 105, .13) !important; color: var(--br-emerald) !important; }
.ccrm-crw__chip.is-amber { background: rgba(217, 119, 6, .14) !important; color: var(--br-amber) !important; }
.ccrm-crw__chip.is-rose  { background: rgba(225, 29, 72, .12) !important; color: var(--br-rose) !important; }

.ccrm-crw__who { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-crw__who em { font-style: normal; opacity: .8; }

.ccrm-crw__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    color: var(--br-on-surface-variant);
    font-size: 10.5px;
    white-space: nowrap;
}

.ccrm-crw__type { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ccrm-crw__urg { color: var(--br-amber); font-weight: 700; }
.ccrm-crw__by { font-style: italic; }

.ccrm-crw__more { margin: 12px 0 0; text-align: center; font-size: 11px; }
.ccrm-crw__more a { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }

.ccrm-crw__empty {
    padding: 26px 16px;
    text-align: center;
    color: var(--br-on-surface-variant);
}

.ccrm-crw__empty .fa { font-size: 26px; opacity: .35; }
.ccrm-crw__empty h4 { margin: 10px 0 4px; font-size: 13px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-crw__empty p { margin: 0; font-size: 11.5px; }

@media (max-width: 767px) {
    .ccrm-crw__head { width: 100%; margin-left: 0; }
    .ccrm-crw__row { flex-wrap: wrap; }
    .ccrm-crw__meta { width: 100%; padding-left: 44px; gap: 10px; }
    .ccrm-crw__stat { padding: 7px 11px; }
}

/* where the client signs in — said once, under the "Create a login" heading */
.ccrm-pa__where {
    margin: 2px 0 20px;
    color: var(--br-on-surface-variant);
    font-size: 12px;
    line-height: 1.6;
}

.ccrm-pa__where b {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11.5px;
    color: var(--br-navy);
    background: var(--br-accent-05);
    padding: 2px 8px;
    border-radius: var(--br-radius-pill) !important;
}

/* the portal button on Manage branches carries its login count */
.ccrm-page-head__actions .btn.is-on { border-color: var(--br-navy); color: var(--br-navy); }
.ccrm-page-head__actions .btn.is-on b { font-weight: 700; }

/* ---------------------------------------------------------------------------
   Portal access: what one login may open.
   A switch per section, one to a line, with the rights that depend on another
   indented under the one they need — so "off because its parent is off" is
   visible rather than surprising. Replaces the grid of tick-box tiles.
   --------------------------------------------------------------------------- */
.ccrm-pr {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--br-hairline);
}

.ccrm-pr--new { margin-top: 20px; padding-top: 0; border-top: 0; }

.ccrm-pr__head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.ccrm-pr__k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-pr__count {
    padding: 2px 9px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--br-on-surface-variant);
    font-variant-numeric: tabular-nums;
}

.ccrm-pr__note { font-size: 11px; color: var(--br-on-surface-variant); }

.ccrm-pr__bulk { display: inline-flex; gap: 10px; margin-left: auto; }
.ccrm-pr__bulk a {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--br-accent);
}
.ccrm-pr__bulk a:hover { color: var(--br-navy); text-decoration: none; }

.ccrm-pr__rows { display: flex; flex-direction: column; }

.ccrm-pr__row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 11px 4px;
    border-bottom: 1px solid var(--br-surface-high);
    cursor: pointer;
    font-weight: 400;
    transition: background .14s ease;
}

.ccrm-pr__rows > .ccrm-pr__row:last-child { border-bottom: 0; }
.ccrm-pr__row:hover { background: var(--br-accent-05); }

/* a right that needs another one sits under it, with a hairline elbow */
.ccrm-pr__row.is-child { position: relative; padding-left: 30px; }
.ccrm-pr__row.is-child::before {
    content: "";
    position: absolute;
    left: 13px; top: 0; bottom: 50%;
    width: 9px;
    border-left: 1px solid var(--br-outline-variant);
    border-bottom: 1px solid var(--br-outline-variant);
    border-bottom-left-radius: 7px !important;
}

.ccrm-pr__ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50% !important;
    background: var(--br-surface-high);
    color: var(--br-on-surface-variant);
    font-size: 12px;
    transition: background .14s ease, color .14s ease;
}

.ccrm-pr__row.is-on .ccrm-pr__ic { background: rgba(5, 150, 105, .13); color: var(--br-emerald); }

.ccrm-pr__txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ccrm-pr__txt b { font-size: 12.5px; font-weight: 600; color: var(--br-on-surface-variant); transition: color .14s ease; }
.ccrm-pr__row.is-on .ccrm-pr__txt b { color: var(--br-on-surface); }
.ccrm-pr__txt em { font-style: normal; font-size: 11px; line-height: 1.45; color: var(--br-on-surface-variant); opacity: .85; }

.ccrm-pr__row .ccrm-toggle { flex: 0 0 auto; }

/* the Branches / Portal access tabs on the client page */
.ccrm-ptabs { margin: 0 0 18px; }
.ccrm-cpane[hidden] { display: none; }

/* the create-a-login block */
.ccrm-pa__new {
    padding: 20px 22px;
    border: 1px solid var(--br-hairline);
    border-radius: 20px !important;
    background: var(--br-surface-lowest);
    box-shadow: var(--br-shadow);
}

.ccrm-pa__fields {
    display: grid;
    gap: 14px 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 4px;
}

.ccrm-pa__f { display: flex; flex-direction: column; gap: 5px; margin: 0; font-weight: 400; }
.ccrm-pa__f > span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-pa__creds {
    margin-top: 18px;
    padding: 20px 22px;
    border: 1.5px solid var(--br-navy);
    border-radius: 20px !important;
    background: #f4f9fd;
}

.ccrm-pa__credtitle { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--br-navy); }
.ccrm-pa__credtitle small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--br-on-surface-variant); }

/* ---------------------------------------------------------------------------
   Compact rights: one chip per section on an existing login, so a card is a
   few lines instead of a screenful. Click to switch; the full sentence is on
   the hover title. The long form with descriptions stays on the create form,
   where the decision is actually being made.
   --------------------------------------------------------------------------- */
.ccrm-pr--compact { margin-top: 12px; padding-top: 12px; }
.ccrm-pr--compact .ccrm-pr__head { margin-bottom: 8px; }

.ccrm-pr__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.ccrm-prc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 11px 5px 9px;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface);
    color: var(--br-on-surface-variant);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    transition: background .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
}

.ccrm-prc input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.ccrm-prc .fa { font-size: 11px; opacity: .7; }
.ccrm-prc:hover { border-color: var(--br-accent-20); color: var(--br-on-surface); }

/* off reads as off: faded, with the icon greyed */
.ccrm-prc:not(.is-on) { opacity: .62; border-style: dashed; }

.ccrm-prc.is-on {
    background: rgba(5, 150, 105, .1);
    border-color: rgba(5, 150, 105, .35);
    color: var(--br-emerald);
}

.ccrm-prc.is-on .fa { opacity: 1; }

/* a chip that needs another one is nudged in, so the pair reads as a pair */
.ccrm-prc.is-dep { margin-left: -2px; }
.ccrm-prc.is-dep::before {
    content: "\f148";                    /* level-up, rotated: "under the one before" */
    font-family: FontAwesome;
    font-size: 8px;
    opacity: .45;
    transform: rotate(90deg) scaleX(-1);
    margin-right: 1px;
}

.ccrm-prc input:focus-visible + .fa { outline: 2px solid var(--br-accent); outline-offset: 3px; }

/* ---------------------------------------------------------------------------
   Dashboard, Sales: the figures strip — the year, the month, what an order is
   worth, and the twelve-month total, each with how it compares.
   --------------------------------------------------------------------------- */
.ccrm-sfig {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin: 0 0 16px;
}

.ccrm-sfig__i {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 18px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    color: var(--br-on-surface);
    text-decoration: none;
    transition: transform .18s cubic-bezier(.34, 1.4, .64, 1), box-shadow .18s ease, border-color .18s ease;
}

.ccrm-sfig__i:hover,
.ccrm-sfig__i:focus {
    transform: translateY(-2px);
    box-shadow: var(--br-shadow-md);
    border-color: var(--br-accent-20);
    color: var(--br-on-surface);
    text-decoration: none;
}

.ccrm-sfig__k {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-sfig__v {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--br-navy);
    font-variant-numeric: tabular-nums;
}

.ccrm-sfig__d {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--br-on-surface-variant);
}

.ccrm-sfig__d em { font-style: normal; font-weight: 500; opacity: .85; }
.ccrm-sfig__d.is-up { color: var(--br-emerald); }
.ccrm-sfig__d.is-down { color: var(--br-rose); }
.ccrm-sfig__d.is-new { color: var(--br-accent); }

@media (max-width: 480px) {
    .ccrm-sfig { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .ccrm-sfig__i { padding: 13px 14px; }
    .ccrm-sfig__v { font-size: 21px; }
}

/* a figure over every column on a half-width chart: small enough that twelve
   of them fit, and light enough not to compete with the bars */
.ccrm-cols__val.is-tiny {
    font-size: 8.5px;
    font-weight: 600;
    fill: var(--br-on-surface-variant);
    letter-spacing: -.01em;
}

/* two cards side by side end level, whatever their content */
.row.ccrm-row--even { display: flex; flex-wrap: wrap; }
.row.ccrm-row--even > [class*="col-"] { display: flex; }
.row.ccrm-row--even > [class*="col-"] > .ccrm-w { width: 100%; }

/* ---------------------------------------------------------------------------
   Amend & return: the banner on an order that was corrected and sent back,
   with the note and a line-by-line before/after.
   --------------------------------------------------------------------------- */
.ccrm-flow {
    margin: 0 0 16px;
    padding: 16px 18px;
    border: 1px solid var(--br-hairline);
    border-left: 4px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-lowest);
}

.ccrm-flow.is-open { border-left-color: var(--br-amber); background: rgba(217, 119, 6, .05); }
.ccrm-flow.is-disputed { border-left-color: var(--br-rose); background: rgba(225, 29, 72, .04); }
.ccrm-flow.is-rejected { border-left-color: var(--br-on-surface); background: var(--br-surface); }
.ccrm-flow.is-done { border-left-color: var(--br-emerald); opacity: .9; }

.ccrm-flow__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; }
.ccrm-flow__head .fa { color: var(--br-on-surface-variant); }
.ccrm-flow.is-open .ccrm-flow__head .fa { color: var(--br-amber); }
.ccrm-flow.is-rejected .ccrm-flow__head .fa { color: var(--br-rose); }
.ccrm-flow__when { margin-left: auto; font-size: 11px; color: var(--br-on-surface-variant); }

.ccrm-flow__note {
    margin: 10px 0 0;
    padding: 9px 13px;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface);
    font-size: 12.5px;
    line-height: 1.55;
}

.ccrm-flow__diff { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12px; }
.ccrm-flow__diff th {
    padding: 5px 10px;
    border-bottom: 1px solid var(--br-hairline);
    font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--br-on-surface-variant); text-align: left;
}
.ccrm-flow__diff td { padding: 7px 10px; border-bottom: 1px solid var(--br-surface-high); vertical-align: top; }
.ccrm-flow__diff tr:last-child td { border-bottom: 0; }
.ccrm-flow__was { color: var(--br-on-surface-variant); text-decoration: line-through; }
.ccrm-flow__now { font-weight: 700; color: var(--br-navy); }
.ccrm-flow__diff tr.is-added .ccrm-flow__now { color: var(--br-emerald); }
.ccrm-flow__diff tr.is-removed .ccrm-flow__was { color: var(--br-rose); }

.ccrm-flow__nodiff, .ccrm-flow__wait { margin: 10px 0 0; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-flow__reply { margin: 12px 0 0; padding: 9px 13px; border-radius: var(--br-radius-sm) !important; background: rgba(225, 29, 72, .06); font-size: 12.5px; line-height: 1.55; }
.ccrm-flow__reply b { display: block; margin-bottom: 3px; font-size: 11px; color: var(--br-rose); }
.ccrm-flow__acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ccrm-flow__acts .btn { border-radius: var(--br-radius-pill) !important; }
.ccrm-flow__lead { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--br-on-surface-variant); }

/* the board row of an order waiting on somebody else */
.ccrm-ord__wait { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-eq__btn.is-danger:hover { background: var(--br-rose); color: #fff; }

/* ---------------------------------------------------------------------------
   The decision bar on an order or request: what is being asked on the left,
   the buttons on the right, on a line of its own under the stage track. The
   status chips stay in the header where they belong.
   --------------------------------------------------------------------------- */
.ccrm-flow__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 14px 18px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-left: 4px solid var(--br-navy);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow);
}

.ccrm-flow__barlead {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--br-on-surface);
}

.ccrm-flow__barlead .fa { color: var(--br-navy); opacity: .7; }

.ccrm-flow__baracts { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccrm-flow__baracts .btn { margin: 0; border-radius: var(--br-radius-pill) !important; }

/* the header row is status only now, so let it breathe */
.ccrm-so__badges { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 767px) {
    .ccrm-flow__bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .ccrm-flow__baracts { justify-content: stretch; }
    .ccrm-flow__baracts .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* the invoice-number field that drops out of the Issue button */
.ccrm-flow__issuebox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -8px 0 18px;
    padding: 14px 18px;
    background: var(--br-surface-low);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
}

.ccrm-flow__issuebox[hidden] { display: none; }

.ccrm-flow__issuelabel {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-flow__issuebox input {
    width: 180px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
}

.ccrm-flow__issuebox .btn { border-radius: var(--br-radius-pill) !important; }

@media (max-width: 767px) {
    .ccrm-flow__issuebox { flex-direction: column; align-items: stretch; }
    .ccrm-flow__issuebox input { width: 100%; }
}

/* An order at logistics or delivered carries its invoice chip next to the
   number, which needs more than the 110px the column normally gets — without
   this the chip sits on top of the client name. Only the panes that actually
   show a number are widened, so the other stages keep their tighter rhythm. */
.ccrm-ord.has-inv .ccrm-ord__main { grid-template-columns: 186px minmax(0, 1fr); }
.ccrm-ord.has-inv .ccrm-ord__no { overflow: hidden; }

@media (max-width: 900px) {
    .ccrm-ord.has-inv .ccrm-ord__main { grid-template-columns: 1fr; }
}

/* The hand-over form's footer: buttons first, and the note about who gets the
   dispatch e-mail drops to its own line rather than being squeezed against the
   right edge of a narrow side card. */
.ccrm-frm__actions .ccrm-frm__label {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
    line-height: 1.5;
    color: var(--br-on-surface-variant);
}

@media (max-width: 860px) {
    .ccrm-frm__actions .ccrm-frm__spacer { display: none; }
    .ccrm-frm__actions .ccrm-frm__label { flex: 1 1 100%; order: 10; }
}

/* ---------------------------------------------------------------------------
   Delivery hand-over: who received the goods.
   A text box you can type into with a real list behind it — the chevron says so
   and clicking anywhere in the field opens it. A datalist gave no affordance
   and behaved differently in every browser.
   --------------------------------------------------------------------------- */
.ccrm-rcv { position: relative; }

.ccrm-rcv__in { padding-right: 42px !important; }

.ccrm-rcv__toggle {
    position: absolute;
    top: 0; right: 0;
    width: 40px; height: 100%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent;
    color: var(--br-on-surface-variant);
    font-size: 15px;
    cursor: pointer;
    transition: color .15s ease, transform .18s ease;
}

.ccrm-rcv__toggle:hover { color: var(--br-navy); }
.ccrm-rcv.is-open .ccrm-rcv__toggle { color: var(--br-navy); transform: rotate(180deg); }

.ccrm-rcv__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px); left: 0; right: 0;
    max-height: 264px;
    overflow-y: auto;
    padding: 6px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    box-shadow: var(--br-shadow-lg);
}

.ccrm-rcv__list[hidden] { display: none; }

.ccrm-rcv__group {
    padding: 8px 10px 5px;
    font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-rcv__opt {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--br-radius-sm) !important;
    background: transparent;
    text-align: left;
    font-size: 12.5px;
    color: var(--br-on-surface);
    cursor: pointer;
}

.ccrm-rcv__opt:hover,
.ccrm-rcv__opt:focus { background: var(--br-accent-05); outline: none; }
.ccrm-rcv__opt:focus { box-shadow: inset 0 0 0 2px var(--br-accent-20); }
.ccrm-rcv__opt em { font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-rcv__none { margin: 0; padding: 10px; font-size: 11.5px; color: var(--br-on-surface-variant); }

/* date and time, with the answers people actually give one tap away */
.ccrm-when { display: flex; flex-direction: column; gap: 7px; }

.ccrm-when__quick { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.ccrm-when__quick button {
    padding: 4px 12px;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-lowest);
    font-size: 11px;
    font-weight: 600;
    color: var(--br-on-surface-variant);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.ccrm-when__quick button:hover { border-color: var(--br-accent-20); color: var(--br-on-surface); }
.ccrm-when__quick button.is-on { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }

/* ---------------------------------------------------------------------------
   Equipment & dispensers: a rounded list rather than a table in disguise.
   The column names are printed once at the top instead of on every row — with
   a hundred dispensers on a branch, repeating them was most of the ink.
   --------------------------------------------------------------------------- */
.ccrm-eqhead {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 18px 9px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-eqhead__id { flex: 0 0 215px; padding-left: 48px; }
.ccrm-eqhead__c { flex: 1 1 0; min-width: 0; }
.ccrm-eqhead__c--wide { flex: 1.6 1 0; }
.ccrm-eqhead__foot { flex: 0 0 150px; padding-left: 14px; }
.ccrm-eqhead__acts { flex: 0 0 128px; }

/* the row itself: rounder, lighter, and it lifts under the pointer */
.ccrm-eqgrid { display: flex; flex-direction: column; gap: 8px; }

.ccrm-eq {
    border-radius: var(--br-radius) !important;
    padding: 12px 18px 12px 16px !important;
    transition: transform .16s cubic-bezier(.34, 1.4, .64, 1), box-shadow .16s ease, border-color .16s ease;
}

.ccrm-eq:hover {
    transform: translateY(-1px);
    border-color: var(--br-accent-20);
    box-shadow: var(--br-shadow-md);
}

.ccrm-eq .ccrm-prod__icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    font-size: 13px;
}

/* the labels were repeated on every row; the header carries them now */
.ccrm-eq .ccrm-eq__cell .ccrm-prod__k,
.ccrm-eq .ccrm-eq__foot .ccrm-prod__k { display: none; }
.ccrm-eq .ccrm-eq__cell { justify-content: center; }
.ccrm-eq .ccrm-eq__foot { display: flex; align-items: center; }

/* an inactive dispenser reads as inactive without shouting */
.ccrm-eq.is-inactive { background: var(--br-surface-low); border-style: dashed; }

/* round buttons, one colour each on hover, and a visible focus ring */
.ccrm-eq__actions { gap: 5px; padding-left: 12px; }

.ccrm-eq__btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid var(--br-hairline) !important;
    font-size: 13px;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

a.ccrm-eq__btn:hover {
    background: var(--br-accent-10) !important;
    border-color: var(--br-accent-20) !important;
    color: var(--br-accent) !important;
    transform: translateY(-1px);
}

a.ccrm-eq__btn.is-danger:hover {
    background: rgba(225, 29, 72, .12) !important;
    border-color: rgba(225, 29, 72, .35) !important;
    color: var(--br-rose) !important;
}

.ccrm-eq__btn.is-off { opacity: .3; border-style: dashed !important; }
a.ccrm-eq__btn:focus-visible { outline: 2px solid var(--br-accent); outline-offset: 2px; }

/* a check-up that never happened should look like it */
.ccrm-eq .ccrm-prod__date.is-never { color: var(--br-rose); font-weight: 600; opacity: .85; }

@media (max-width: 900px) {
    .ccrm-eqhead { display: none; }
    /* stacked on a phone, so each value needs its label back */
    .ccrm-eq .ccrm-eq__cell .ccrm-prod__k,
    .ccrm-eq .ccrm-eq__foot .ccrm-prod__k { display: block; }
}

/* ---------------------------------------------------------------------------
   Equipment & Dispensers catalogue (dispenser_type): rounder rows that read as
   cards, stats that line up in columns instead of drifting, and round buttons.
   --------------------------------------------------------------------------- */
.ccrm-etype__group { margin-bottom: 22px; }

/* the brand heading earns its place: a rule across the row */
.ccrm-etype__gname {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 2px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--br-navy);
}

.ccrm-etype__gname > span { flex: 0 0 auto; }

.ccrm-etype__gname em {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface-low);
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    opacity: 1;
}

.ccrm-etype__gname::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--br-hairline);
}

/* the row: a card, not a table line */
.ccrm-etype__row {
    gap: 16px;
    padding: 12px 14px 12px 12px;
    margin-bottom: 8px;
    border-radius: var(--br-radius) !important;
    box-shadow: var(--br-shadow);
    transition: transform .16s cubic-bezier(.34, 1.4, .64, 1), box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.ccrm-etype__row:hover {
    transform: translateY(-1px);
    box-shadow: var(--br-shadow-md);
    border-color: var(--br-accent-20);
    background: #fff;
}

/* switched off reads as switched off */
.ccrm-etype__row.is-off { background: var(--br-surface-low); border-style: dashed; box-shadow: none; }
.ccrm-etype__row.is-off:hover { transform: none; box-shadow: var(--br-shadow); }

.ccrm-etype__icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: var(--br-accent-10);
    font-size: 14px;
}

.ccrm-etype__name { font-size: 13.5px; }
.ccrm-etype__name:hover { color: var(--br-navy); text-decoration: underline; }

/* the three figures sit on a fixed grid so they line up down the list */
.ccrm-etype__stats {
    display: grid;
    /* the first figure carries "units · N branches", which needs more room than
       the two single words beside it */
    grid-template-columns: 138px 104px 74px;
    gap: 0 6px;
    align-items: center;
}

.ccrm-etype__stat {
    gap: 1px;
    padding: 4px 10px;
    border-radius: var(--br-radius-sm) !important;
    transition: background .15s ease;
}

a.ccrm-etype__stat:hover { background: var(--br-accent-05); }
.ccrm-etype__stat b { font-size: 15px; line-height: 1.1; }
.ccrm-etype__stat.is-muted { grid-column: 1 / -1; }
.ccrm-etype__stat.is-muted b { color: var(--br-on-surface-variant); font-weight: 600; }

/* round buttons, coloured only on hover */
.ccrm-etype__acts { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }

.ccrm-etype__acts .ccrm-eq__btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: 1px solid var(--br-hairline) !important;
    color: var(--br-on-surface-variant) !important;
    font-size: 13px;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.ccrm-etype__acts .ccrm-eq__btn:hover:not([disabled]):not(.is-off) {
    background: var(--br-accent-10) !important;
    border-color: var(--br-accent-20) !important;
    color: var(--br-accent) !important;
    transform: translateY(-1px);
}

.ccrm-etype__acts .ccrm-etype__delete:hover:not([disabled]):not(.is-off) {
    background: rgba(225, 29, 72, .12) !important;
    border-color: rgba(225, 29, 72, .35) !important;
    color: var(--br-rose) !important;
}

/* a type that is installed somewhere cannot be deleted; say so quietly */
.ccrm-etype__acts .ccrm-eq__btn[disabled],
.ccrm-etype__acts .ccrm-eq__btn.is-off { opacity: .3; border-style: dashed !important; cursor: not-allowed; }

/* the toggle shows its state without a hover */
.ccrm-etype__row:not(.is-off) .ccrm-etype__toggle { color: var(--br-emerald) !important; border-color: rgba(5, 150, 105, .3) !important; }

.ccrm-etype__acts .ccrm-eq__btn:focus-visible { outline: 2px solid var(--br-accent); outline-offset: 2px; }

@media (max-width: 1240px) {
    .ccrm-etype__stats { grid-template-columns: 124px 96px 66px; }
    .ccrm-etype__stat span { font-size: 8.5px; letter-spacing: .04em; }
}

@media (max-width: 860px) {
    .ccrm-etype__row { flex-wrap: wrap; }
    .ccrm-etype__main { flex: 1 1 100%; }
    .ccrm-etype__stats { flex: 1 1 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ccrm-etype__stat { padding-left: 0; }
}

/* ---------------------------------------------------------------------------
   Key/value rows: fields laid out three to a line, each one reading label on
   the left and value on the right. No rules and no cell borders — the card
   already frames them. Every card on the branch page uses this, so a label
   and its value land on the same two columns wherever you look.
   --------------------------------------------------------------------------- */
/* the view/edit swap lives on .ccrm-editable and is written with three classes,
   so the row layout has to say which half it applies to, and when */
.ccrm-kv--rows { padding-bottom: 10px; }
.ccrm-kv.ccrm-kv--rows:not(.ccrm-mode-edit):not(.ccrm-mode-view) { display: block; }
.ccrm-editable:not(.is-editing) .ccrm-kv.ccrm-kv--rows.ccrm-mode-view { display: block; }
.ccrm-editable.is-editing .ccrm-kv.ccrm-kv--rows.ccrm-mode-edit { display: block; }

/* three to a line; a row holding fewer keeps them in their own columns rather
   than letting them spread, so the columns line up from card to card */
.ccrm-kv--rows .ccrm-kv__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 28px; }
.ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i { flex: 1 1 0; max-width: calc((100% - 56px) / 3); }

.ccrm-kv--rows .ccrm-kv__i {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 14px;
    min-width: 0;
    min-height: 34px;
    padding: 8px 2px;
    border: 0;
}

.ccrm-kv--rows .ccrm-kv__k {
    flex: 0 0 auto;
    width: 130px;
    margin: 0;
    line-height: 1.5;
}

/* Reading the card, the label is what lines up — each one starts at its
   column. The value follows straight after it instead of waiting for a fixed
   column of its own, which left a short label like "Name" trailing a hand's
   width of empty space. Editing is different: the controls there do need a
   shared column, or every box starts at a different place. */
.ccrm-kv--rows:not(.ccrm-mode-edit) .ccrm-kv__k { width: auto; max-width: 100%; }
.ccrm-kv--rows:not(.ccrm-mode-edit) .ccrm-kv__v { flex: 0 1 auto; }

.ccrm-kv--rows .ccrm-kv__v {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.ccrm-kv--rows .ccrm-kv__v em { margin-left: 0; }

/* --- the same rows while the card is being edited ------------------------- */
.ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__i { align-items: center; }

.ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__i > .ccrm-in,
.ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__i > .form-control,
.ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__i > .select2-container,
.ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__i > .ccrm-in-pair {
    flex: 1 1 0;
    min-width: 0;
}

.ccrm-kv--rows .ccrm-in-pair > .ccrm-in { flex: 0 0 78px; }

/* a yes/no needs no more room than the word "Yes" */
.ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__i--hint > .ccrm-in,
.ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__i--hint > .form-control { flex: 0 1 132px; }

/* the note about a field sits under its control, in the value column */
.ccrm-kv--rows .ccrm-kv__hint {
    flex: 1 1 100%;
    min-width: 0;
    margin: 3px 0 0 144px;
    line-height: 1.35;
}

@media (max-width: 1500px) {
    .ccrm-kv--rows .ccrm-kv__row { gap: 0 20px; }
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i { max-width: calc((100% - 40px) / 3); }
    .ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__k { width: 130px; }
    .ccrm-kv--rows .ccrm-kv__hint { margin-left: 144px; }
}

/* two to a line once thirds stop fitting */
@media (max-width: 1360px) {
    .ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__row > .ccrm-kv__i { max-width: calc((100% - 20px) / 2); flex: 1 1 calc((100% - 20px) / 2); }
}

@media (max-width: 1150px) {
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i { max-width: calc((100% - 20px) / 2); flex: 1 1 calc((100% - 20px) / 2); }
}

/* a phone keeps the one-line reading: one field per line, value on the right.
   The value itself may run onto a second line there — a chip with a sentence
   after it does not fit 375px — but it stays in its own column. */
@media (max-width: 860px) {
    .ccrm-kv--rows .ccrm-kv__row { display: block; }
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i { max-width: none; }
    .ccrm-kv--rows .ccrm-kv__i { gap: 0 12px; align-items: flex-start; }
    .ccrm-kv--rows .ccrm-kv__k { width: auto; flex: 0 1 auto; max-width: 42%; padding-top: 2px; }
    .ccrm-kv--rows .ccrm-kv__v { flex-wrap: wrap; justify-content: flex-end; text-align: right; }
    .ccrm-kv--rows .ccrm-kv__v > * { flex: 0 0 auto; max-width: 100%; }
    .ccrm-kv--rows .ccrm-kv__hint { display: none; }
}

/* two fields sharing a line keep the label column; only the control gives way */
.ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i > .ccrm-kv__k { flex: 0 0 auto; }

/* the contact list closes the same gap at the bottom of its card */
.ccrm-ctgrid--inset { margin-bottom: 12px; }

/* ---------------------------------------------------------------------------
   Separators between the fields of a card: a short hairline standing between
   one column and the next, inset top and bottom so it reads as a divider
   rather than a table grid. Nothing is drawn between one line and the next —
   the space alone separates them.
   --------------------------------------------------------------------------- */
.ccrm-kv--rows .ccrm-kv__i { position: relative; }

.ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i:nth-child(n+2)::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 9px;
    bottom: 9px;
    width: 1px;
    background: var(--br-hairline);
    opacity: .75;
}

@media (max-width: 1500px) {
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i:nth-child(n+2)::before { left: -10px; }
}

/* two to a line: only the second field of a pair has a neighbour to its left */
@media (max-width: 1360px) {
    .ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__row > .ccrm-kv__i:nth-child(n+2)::before { content: none; }
    .ccrm-kv--rows.ccrm-mode-edit .ccrm-kv__row > .ccrm-kv__i:nth-child(2)::before { content: ""; }
}

@media (max-width: 1150px) {
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i:nth-child(n+2)::before { content: none; }
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i:nth-child(2)::before { content: ""; }
}

/* stacked: the divider lies down between one field and the next */
@media (max-width: 860px) {
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i::before { content: none; }
    .ccrm-kv--rows .ccrm-kv__row > .ccrm-kv__i + .ccrm-kv__i { border-top: 1px solid rgba(203, 217, 232, .5); }
}

/* labels read from the left, like everything else on the page; the value
   column stays put, so the answers still line up from card to card */
.ccrm-kv--rows .ccrm-kv__k { text-align: left; }

/* ---------------------------------------------------------------------------
   Date & time picker (ccrm-datetime.js): one panel for every date and time
   field in the app. Times come on the half hour, so the clock is a list of
   slots rather than two spinners.
   --------------------------------------------------------------------------- */
.ccrm-dtf { cursor: pointer; }

/* the field's own frame, lit while its panel is open. The selector has to out-
   weigh `.ccrm-inline .form-control.ccrm-in { box-shadow: none !important }` */
.ccrm-dtf.is-picking,
input.form-control.ccrm-dtf.is-picking,
.ccrm-inline .form-control.ccrm-dtf.is-picking {
    border: 1px solid var(--br-accent) !important;
    box-shadow: 0 0 0 3px var(--br-accent-10) !important;
}

/* the browser's own picker steps aside for ours */
.ccrm-dtf::-webkit-calendar-picker-indicator { display: none; -webkit-appearance: none; }
.ccrm-dtf::-webkit-inner-spin-button { display: none; }

.ccrm-dtp {
    position: absolute;
    z-index: 10600;
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08);
    font-size: 13px;
    color: var(--br-on-surface);
    animation: ccrmDtpIn .13s ease-out;
}

@keyframes ccrmDtpIn { from { transform: translateY(-4px); } to { transform: none; } }

.ccrm-dtp button { font: inherit; }

/* --- the month ------------------------------------------------------------ */
.ccrm-dtp__cal { flex: 0 0 auto; width: 252px; }

.ccrm-dtp__head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }

.ccrm-dtp__nav {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50% !important;
    background: transparent;
    color: var(--br-on-surface-variant);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ccrm-dtp__nav:hover { background: var(--br-accent-10); color: var(--br-accent); }

.ccrm-dtp__title {
    flex: 1 1 auto;
    height: 28px;
    border: 0;
    border-radius: var(--br-radius-pill) !important;
    background: transparent;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--br-navy);
    cursor: pointer;
    transition: background .15s ease;
}

.ccrm-dtp__title:hover { background: var(--br-surface-low); }

.ccrm-dtp__dows,
.ccrm-dtp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.ccrm-dtp__dows {
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
    text-align: center;
}

.ccrm-dtp__day {
    height: 32px;
    border: 0;
    border-radius: var(--br-radius-sm) !important;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--br-on-surface);
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.ccrm-dtp__day:hover { background: var(--br-accent-10); color: var(--br-accent); }
.ccrm-dtp__day.is-out { color: var(--br-on-surface-variant); opacity: .45; }
.ccrm-dtp__day.is-today { box-shadow: inset 0 0 0 1px var(--br-accent-20); }
.ccrm-dtp__day.is-on { background: var(--br-navy); color: #fff; }
.ccrm-dtp__day.is-on:hover { background: var(--br-navy); color: #fff; }

/* the year jumper */
.ccrm-dtp__years { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }

.ccrm-dtp__year {
    height: 34px;
    border: 1px solid transparent;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-low);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.ccrm-dtp__year:hover { border-color: var(--br-accent-20); color: var(--br-accent); }
.ccrm-dtp__year.is-on { background: var(--br-navy); color: #fff; }

/* --- the half hours ------------------------------------------------------- */
.ccrm-dtp__clock { flex: 0 0 auto; width: 176px; display: flex; flex-direction: column; }

.ccrm-dtp__label {
    margin-bottom: 8px;
    padding: 0 2px;
    height: 28px;
    line-height: 28px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-dtp__times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    position: relative;
    max-height: 232px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.ccrm-dtp__times::-webkit-scrollbar { width: 6px; }
.ccrm-dtp__times::-webkit-scrollbar-thumb { background: var(--br-hairline); border-radius: 3px; }

.ccrm-dtp__slot {
    height: 30px;
    border: 0;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-low);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--br-on-surface);
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.ccrm-dtp__slot:hover { background: var(--br-accent-10); color: var(--br-accent); }
.ccrm-dtp__slot.is-on { background: var(--br-navy); color: #fff; }

/* --- the footer ----------------------------------------------------------- */
.ccrm-dtp__foot {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--br-hairline);
}

.ccrm-dtp__foot button {
    height: 30px;
    padding: 0 14px;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-pill) !important;
    background: #fff;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--br-on-surface-variant);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ccrm-dtp__foot button:hover { border-color: var(--br-accent-20); color: var(--br-accent); background: var(--br-accent-05); }
.ccrm-dtp__clear:hover { border-color: rgba(225, 29, 72, .35) !important; color: var(--br-rose) !important; background: rgba(225, 29, 72, .08) !important; }
.ccrm-dtp__done { margin-left: auto; background: var(--br-navy) !important; border-color: var(--br-navy) !important; color: #fff !important; }
.ccrm-dtp__done:hover { background: var(--br-accent) !important; border-color: var(--br-accent) !important; color: #fff !important; }

/* --- on a phone it comes up from the bottom ------------------------------- */
.ccrm-dtp.is-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: auto;
    max-height: 82vh;
    overflow-y: auto;
    justify-content: center;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, .22);
    animation: ccrmDtpUp .18s ease-out;
}

@keyframes ccrmDtpUp { from { transform: translateY(14px); } to { transform: none; } }

.ccrm-dtp.is-sheet .ccrm-dtp__cal { width: 100%; max-width: 330px; }
.ccrm-dtp.is-sheet .ccrm-dtp__clock { width: 100%; max-width: 330px; margin-top: 10px; }
.ccrm-dtp.is-sheet .ccrm-dtp__times { grid-template-columns: repeat(3, 1fr); max-height: 168px; }
.ccrm-dtp.is-sheet .ccrm-dtp__day { height: 38px; }

/* the panel is exactly as wide as what it holds: a flex line with a 100% basis
   footer otherwise resolves against max-content and leaves dead space */
.ccrm-dtp--date { width: 282px; }
.ccrm-dtp--time { width: 206px; }
.ccrm-dtp--datetime { width: 476px; }
.ccrm-dtp.is-sheet { width: auto; }
.ccrm-dtp__foot { min-width: 0; }

/* ---------------------------------------------------------------------------
   Actions list on an equipment profile: the job descriptions a technician can
   tick when reporting on a unit of this type (job_description rows). There are
   two dozen of them on a common dispenser, so the rows are tight and they run
   in as many columns as the card is wide.
   --------------------------------------------------------------------------- */
.ccrm-job__new {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.ccrm-job__new .ccrm-in { flex: 1 1 auto; min-width: 0; height: 34px; }
.ccrm-job__new .btn { flex: 0 0 auto; border-radius: var(--br-radius-pill) !important; }

.ccrm-job {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 4px 8px;
}

.ccrm-job__row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 6px 4px 12px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    transition: border-color .14s ease, background .14s ease;
}

.ccrm-job__row:hover { border-color: var(--br-accent-20); background: #fff; }

.ccrm-job__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--br-on-surface);
    overflow-wrap: anywhere;
}

/* "Offered" is the norm and needs no label; only a paused one is worth saying */
.ccrm-job__state {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-surface);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-on-surface-variant);
}

.ccrm-job__row:not(.is-off) .ccrm-job__state { display: none; }

/* the buttons stay out of the way until the row is under the pointer */
.ccrm-job__acts { flex: 0 0 auto; display: inline-flex; gap: 2px; opacity: .45; transition: opacity .14s ease; }
.ccrm-job__row:hover .ccrm-job__acts, .ccrm-job__acts:focus-within { opacity: 1; }

.ccrm-job__acts .ccrm-eq__btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px;
}

/* an action that is no longer offered stays visible, quietly */
.ccrm-job__row.is-off { background: var(--br-surface-low); border-style: dashed; }
.ccrm-job__row.is-off .ccrm-job__text { color: var(--br-on-surface-variant); }

@media (max-width: 700px) {
    .ccrm-job { grid-template-columns: minmax(0, 1fr); }
    .ccrm-job__new { flex-wrap: wrap; }
    .ccrm-job__new .ccrm-in { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------------------
   Client Portal screen (staff side): the dashboard's panels, and Manage Users —
   the one place a client login is created, changed, paused or removed.
   --------------------------------------------------------------------------- */
.ccrm-pgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 14px;
    align-items: start;
}

/* --- the toolbar ---------------------------------------------------------- */
.ccrm-pu__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ccrm-pu__bar .ccrm-toolbar__search { flex: 1 1 auto; min-width: 0; margin: 0; }
.ccrm-pu__bar > select.form-control { flex: 0 0 190px; width: 190px; }
.ccrm-pu__bar .ccrm-toolbar__count { flex: 0 0 auto; margin: 0 2px; }
.ccrm-pu__bar .btn { flex: 0 0 auto; border-radius: var(--br-radius-pill) !important; }

/* --- the list ------------------------------------------------------------- */
.ccrm-pu { display: flex; flex-direction: column; }

.ccrm-pu__row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 2px;
    border: 0;
    border-bottom: 1px solid var(--br-hairline);
    background: transparent;
    text-align: left;
}

.ccrm-pu__row:last-child { border-bottom: 0; }

.ccrm-pu__ic {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: var(--br-accent-10);
    color: var(--br-accent);
    font-size: 11px;
}

.ccrm-pu__who { flex: 1 1 34%; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ccrm-pu__who b { font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-pu__who em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); overflow-wrap: anywhere; }

.ccrm-pu__acc { flex: 1 1 24%; min-width: 0; font-size: 12px; font-weight: 700; color: var(--br-navy); overflow-wrap: anywhere; }
.ccrm-pu__acc:hover { color: var(--br-accent); }

.ccrm-pu__facts { flex: 0 0 auto; display: inline-flex; gap: 12px; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-pu__facts .fa { opacity: .6; margin-right: 2px; }
.ccrm-pu__facts--wide { flex: 1 1 100%; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }

.ccrm-pu__when { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-pu__when i { font-style: italic; opacity: .8; }

.ccrm-pu__state {
    flex: 0 0 auto;
    padding: 2px 9px;
    border-radius: var(--br-radius-pill) !important;
    background: rgba(5, 150, 105, .12);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--br-emerald);
}

.ccrm-pu__chev { flex: 0 0 auto; color: var(--br-on-surface-variant); transition: transform .16s ease; }
.ccrm-pu__row .ccrm-chip { flex: 0 0 auto; white-space: nowrap; margin: 0; }

/* --- a login, open or closed --------------------------------------------- */
.ccrm-pu--full .ccrm-pu__item {
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-lowest);
    margin-bottom: 5px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ccrm-pu--full .ccrm-pu__item:hover { border-color: var(--br-accent-20); }
.ccrm-pu--full .ccrm-pu__item.is-open { border-color: var(--br-accent); box-shadow: 0 0 0 3px var(--br-accent-10); background: #fff; }
.ccrm-pu--full .ccrm-pu__row { padding: 10px 12px; border-bottom: 0; cursor: pointer; }
.ccrm-pu--full .ccrm-pu__item.is-open .ccrm-pu__chev { transform: rotate(180deg); }

.ccrm-pu__item.is-off { background: var(--br-surface-low); border-style: dashed; }
.ccrm-pu__item.is-off .ccrm-pu__who b, .ccrm-pu__item.is-off .ccrm-pu__acc { color: var(--br-on-surface-variant); }
.ccrm-pu__item.is-off .ccrm-pu__state, .ccrm-pu__row.is-off .ccrm-pu__state { background: var(--br-surface); color: var(--br-on-surface-variant); }

.ccrm-pu__detail { padding: 4px 14px 14px; border-top: 1px solid var(--br-hairline); }
.ccrm-pu__detail .ccrm-pr { margin: 10px 0 12px; }
.ccrm-prc__wrap { display: flex; flex-wrap: wrap; gap: 5px; }

.ccrm-pu__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ccrm-pu__acts .btn { border-radius: var(--br-radius-pill) !important; }

/* --- creating one --------------------------------------------------------- */
.ccrm-punew {
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--br-accent-20);
    border-radius: var(--br-radius) !important;
    background: var(--br-accent-05);
}

.ccrm-punew__head { margin-bottom: 12px; }
.ccrm-punew__head h5 { margin: 0 0 3px; font-size: 14px; font-weight: 800; color: var(--br-navy); }
.ccrm-punew__head span { font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-punew .ccrm-pr { margin: 12px 0; background: #fff; border-radius: var(--br-radius-sm) !important; padding: 10px 12px; }

.ccrm-punew__foot { display: flex; align-items: center; gap: 8px; }
.ccrm-punew__foot .btn { border-radius: var(--br-radius-pill) !important; }
.ccrm-punew__send { flex: 1 1 auto; margin: 0; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); display: inline-flex; align-items: center; gap: 6px; }

.ccrm-punew__done {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--br-radius-sm) !important;
    background: #fff;
    border: 1px solid var(--br-hairline);
}

.ccrm-punew__done > b { display: block; margin-bottom: 6px; font-size: 12px; color: var(--br-emerald); }
.ccrm-punew__cred { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 8px; }
.ccrm-punew__cred span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-punew__cred em { display: block; margin-top: 2px; font-family: ui-monospace, Consolas, monospace; font-style: normal; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--br-on-surface); }
.ccrm-punew__mailed { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--br-emerald); }

@media (max-width: 1100px) {
    .ccrm-pu__bar { flex-wrap: wrap; }
    .ccrm-pu__bar .ccrm-toolbar__search { flex: 1 1 100%; }
}

@media (max-width: 900px) {
    .ccrm-pu--full .ccrm-pu__row { flex-wrap: wrap; }
    .ccrm-pu__who, .ccrm-pu__acc { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------------------
   Internal maintenance: the rounds and areas lists, the checklist a round is
   filled in on, and the sheet it prints as.
   --------------------------------------------------------------------------- */
.ccrm-mt__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ccrm-mt__bar > select.form-control { flex: 1 1 auto; min-width: 0; max-width: 420px; }
.ccrm-mt__bar .btn { flex: 0 0 auto; border-radius: var(--br-radius-pill) !important; }
.ccrm-mt__stats { margin-bottom: 16px; }

.ccrm-mt { display: flex; flex-direction: column; gap: 5px; }

.ccrm-mt__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ccrm-mt__row:hover { border-color: var(--br-accent-20); box-shadow: var(--br-shadow); transform: translateY(-1px); color: inherit; text-decoration: none; }
.ccrm-mt__row.is-late { border-left: 3px solid var(--br-rose); }

.ccrm-mt__code {
    flex: 0 0 auto;
    min-width: 46px;
    padding: 3px 8px;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-accent-10);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--br-accent);
    text-align: center;
}

.ccrm-mt__main { flex: 1 1 34%; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ccrm-mt__main b { font-size: 13px; font-weight: 700; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-mt__main em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }

.ccrm-mt__facts { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-mt__facts .fa { opacity: .6; margin-right: 3px; }

.ccrm-mt__bar2 { flex: 0 0 120px; height: 6px; border-radius: 3px !important; background: var(--br-surface-low); overflow: hidden; }
.ccrm-mt__fill { display: block; height: 100%; background: var(--br-accent); }
.ccrm-mt__n { flex: 0 0 auto; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--br-on-surface-variant); }

/* --- the round itself ----------------------------------------------------- */
.ccrm-mr__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 26px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius) !important;
}

.ccrm-mr__who { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ccrm-mr__who label { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.ccrm-mr__who label > span { font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-mr__who .ccrm-in { width: 190px; }

.ccrm-mr__tally { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-mr__t { padding: 2px 9px; border-radius: var(--br-radius-pill) !important; background: var(--br-surface-low); }
.ccrm-mr__t b { color: var(--br-on-surface); }
.ccrm-mr__t.is-ok b { color: var(--br-emerald); }
.ccrm-mr__t.is-warn b { color: #b45309; }
.ccrm-mr__t.is-rose b { color: var(--br-rose); }

.ccrm-mr__tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ccrm-mr__tools .btn { border-radius: var(--br-radius-pill) !important; }
.ccrm-mr__only { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }

.ccrm-mr { display: flex; flex-direction: column; gap: 14px; }
.ccrm-mr__sec { display: flex; flex-direction: column; gap: 3px; }

.ccrm-mr__sechead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
    font-size: 11px;
    color: var(--br-on-surface-variant);
}

.ccrm-mr__sechead > span { padding: 2px 8px; border-radius: var(--br-radius-sm) !important; background: var(--br-navy); font-size: 10px; font-weight: 800; color: #fff; }
.ccrm-mr__sechead b { font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-mr__sechead em { font-style: normal; margin-left: auto; font-weight: 600; }

.ccrm-mr__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    transition: border-color .15s ease, background .15s ease;
}

.ccrm-mr__row.is-empty { background: var(--br-surface-low); border-style: dashed; }
.ccrm-mr__row.is-saving { opacity: .6; }
.ccrm-mr__row.is-saved { border-color: var(--br-emerald); }

.ccrm-mr__code { flex: 0 0 44px; font-size: 11px; font-weight: 800; color: var(--br-accent); font-variant-numeric: tabular-nums; }
.ccrm-mr__name { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 600; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-mr__name em { display: block; font-style: normal; font-size: 10px; font-weight: 600; color: var(--br-on-surface-variant); }

/* the two scales, as buttons that fit a thumb */
.ccrm-mr__seg { flex: 0 0 auto; display: inline-flex; gap: 2px; }
.ccrm-mr__seg button {
    min-width: 30px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: #fff;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--br-on-surface-variant);
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.ccrm-mr__seg button:hover:not([disabled]) { border-color: var(--br-accent-20); color: var(--br-accent); }
.ccrm-mr__seg button.is-on { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }
.ccrm-mr__seg button.is-ok.is-on { background: var(--br-emerald); border-color: var(--br-emerald); }
.ccrm-mr__seg button.is-warn.is-on { background: #b45309; border-color: #b45309; }
.ccrm-mr__seg button.is-rose.is-on { background: var(--br-rose); border-color: var(--br-rose); }
.ccrm-mr__seg button.is-accent.is-on { background: var(--br-accent); border-color: var(--br-accent); }
.ccrm-mr__seg--act { margin-left: 4px; }

.ccrm-mr__note { flex: 0 1 260px; height: 28px !important; font-size: 11.5px; }
.ccrm-mr__dot { flex: 0 0 8px; font-size: 6px; color: transparent; }
.ccrm-mr__row.is-saved .ccrm-mr__dot { color: var(--br-emerald); }

/* the register, read only */
.ccrm-mr__row.is-read { padding: 7px 10px; }
.ccrm-mr__lastseen { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.ccrm-mr__lastseen em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-mr__row.is-off { opacity: .55; }

/* --- the printed sheet ---------------------------------------------------- */
.ccrm-rptpage { background: var(--br-surface); padding: 0 !important; }
.ccrm-rpt__bar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.ccrm-rpt__eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--br-accent); }
.ccrm-rpt__head h1 { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--br-on-surface); }
.ccrm-rpt__meta span { display: block; }
.ccrm-rpt__meta b { display: inline-block; min-width: 86px; }

.ccrm-rpt__legend {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    margin: 14px 0;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-low);
    font-size: 11px;
    font-weight: 600;
    color: var(--br-on-surface-variant);
}

.ccrm-rpt__legend b { color: var(--br-on-surface); margin-right: 6px; }

.ccrm-rpt__tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ccrm-rpt__tbl th { padding: 7px 8px; border-bottom: 2px solid var(--br-navy); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--br-navy); text-align: left; }
.ccrm-rpt__tbl td { padding: 6px 8px; border-bottom: 1px solid var(--br-hairline); vertical-align: top; }
.ccrm-rpt__tbl .c { text-align: center; white-space: nowrap; font-weight: 700; }
.ccrm-rpt__tbl tr.sec td { background: var(--br-surface-low); font-weight: 800; text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; color: var(--br-navy); }

.ccrm-rpt__notes { margin-top: 16px; font-size: 12px; }
.ccrm-rpt__notes b { display: block; margin-bottom: 4px; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--br-on-surface-variant); }

.ccrm-rpt__sign { display: flex; gap: 40px; margin-top: 34px; }
.ccrm-rpt__sign span { flex: 0 0 240px; }
.ccrm-rpt__sign b { display: block; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-rpt__sign i { display: block; margin-top: 26px; padding-top: 4px; border-top: 1px solid var(--br-on-surface); font-style: normal; font-size: 11.5px; font-weight: 600; }

@media print {
    .ccrm-noprint { display: none !important; }
    .ccrm-rpt__tbl { font-size: 9pt; }
    .ccrm-rpt__tbl tr { break-inside: avoid; page-break-inside: avoid; }
}

@media (max-width: 900px) {
    .ccrm-mr__row { flex-wrap: wrap; }
    .ccrm-mr__name { flex: 1 1 100%; order: -1; }
    .ccrm-mr__note { flex: 1 1 100%; }
    .ccrm-mt__row { flex-wrap: wrap; }
    .ccrm-mt__main { flex: 1 1 100%; }
    .ccrm-mt__bar2 { flex: 1 1 auto; }
}

/* the report's header pairs read "Date  23 Sep 2026", not "Date23 Sep 2026" */
.ccrm-rpt__meta span { display: flex; justify-content: flex-end; gap: 10px; }
.ccrm-rpt__meta b { min-width: 0; }

/* --- what the rounds found and nobody has put right yet -------------------- */
.ccrm-is { display: flex; flex-direction: column; gap: 5px; }

.ccrm-is__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: var(--br-surface-lowest);
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    transition: border-color .15s ease;
}

.ccrm-is__row:hover { border-color: var(--br-accent-20); }
.ccrm-is__row.is-late { border-left: 3px solid var(--br-rose); }
.ccrm-is__row.is-closed { background: var(--br-surface-low); opacity: .72; }

.ccrm-is__cond {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: var(--br-surface-low);
    font-size: 11px;
    font-weight: 800;
    color: var(--br-on-surface-variant);
}

.ccrm-is__cond.is-warn { background: rgba(180, 83, 9, .14); color: #b45309; }
.ccrm-is__cond.is-rose { background: rgba(225, 29, 72, .12); color: var(--br-rose); }
.ccrm-is__cond.is-ok { background: rgba(5, 150, 105, .12); color: var(--br-emerald); }

.ccrm-is__main { flex: 1 1 40%; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ccrm-is__main b { font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-is__main em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); overflow-wrap: anywhere; }

.ccrm-is__facts { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-is__facts .fa { opacity: .6; margin-right: 3px; }
.ccrm-is__acts { flex: 0 0 auto; display: inline-flex; gap: 4px; }
.ccrm-is__acts .ccrm-eq__btn { width: 28px !important; height: 28px !important; font-size: 11px; }

.ccrm-mr__row.is-read .ccrm-is__acts { margin-left: 8px; }

@media (max-width: 900px) {
    .ccrm-is__row { flex-wrap: wrap; }
    .ccrm-is__main { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------------------
   Maintenance overview: the condition bar per area, the rounds sparkline, and
   an item's own history.
   --------------------------------------------------------------------------- */
.ccrm-hb {
    display: flex;
    width: 100%;
    height: 10px;
    margin: 4px 0 10px;
    border-radius: var(--br-radius-pill) !important;
    overflow: hidden;
    background: var(--br-surface-low);
}

.ccrm-hb i { display: block; height: 100%; }
.ccrm-hb .is-ok { background: var(--br-emerald); }
.ccrm-hb .is-warn { background: #d97706; }
.ccrm-hb .is-rose { background: var(--br-rose); }
.ccrm-hb .is-none { background: repeating-linear-gradient(135deg, var(--br-hairline) 0 4px, transparent 4px 8px); }

.ccrm-hl { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-hl b { color: var(--br-on-surface); }
.ccrm-hl .is-ok b { color: var(--br-emerald); }
.ccrm-hl .is-warn b { color: #b45309; }
.ccrm-hl .is-rose b { color: var(--br-rose); }

/* --- area by area --------------------------------------------------------- */
.ccrm-ha { display: flex; flex-direction: column; gap: 4px; }

.ccrm-ha__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--br-hairline);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-lowest);
    color: inherit;
    transition: border-color .15s ease;
}

.ccrm-ha__row:hover { border-color: var(--br-accent-20); color: inherit; text-decoration: none; }
.ccrm-ha__name { flex: 1 1 30%; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ccrm-ha__name b { font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-ha__name em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-ha__row .ccrm-hb { flex: 1 1 28%; margin: 0; min-width: 120px; }
.ccrm-ha__n { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); white-space: nowrap; }

/* --- rounds per month ----------------------------------------------------- */
.ccrm-spark { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 6px; }
.ccrm-spark__col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 5px; }
.ccrm-spark__col i { display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 0 0 !important; background: var(--br-accent); opacity: .85; }
.ccrm-spark__col:hover i { opacity: 1; }
.ccrm-spark__col em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); }

/* --- one item's history --------------------------------------------------- */
.ccrm-mi__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ccrm-mi__head b { display: block; font-size: 14px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-mi__head em { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }

.ccrm-mi__tally { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-mi__tally b { color: var(--br-on-surface); }
.ccrm-mi__tally .is-ok b { color: var(--br-emerald); }
.ccrm-mi__tally .is-warn b { color: #b45309; }
.ccrm-mi__tally .is-rose b { color: var(--br-rose); }
.ccrm-mi__tally .is-accent b { color: var(--br-accent); }

.ccrm-mi__strip { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 14px; }
.ccrm-mi__strip i {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-surface-low);
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    color: var(--br-on-surface-variant);
}

.ccrm-mi__strip .is-ok { background: rgba(5, 150, 105, .16); color: var(--br-emerald); }
.ccrm-mi__strip .is-warn { background: rgba(217, 119, 6, .16); color: #b45309; }
.ccrm-mi__strip .is-rose { background: rgba(225, 29, 72, .14); color: var(--br-rose); }

.ccrm-mi__log { display: flex; flex-direction: column; }
.ccrm-mi__row { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--br-hairline); font-size: 12px; }
.ccrm-mi__row:last-child { border-bottom: 0; }
.ccrm-mi__when { flex: 0 0 86px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-mi__act { flex: 0 0 110px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-mi__note { flex: 1 1 auto; min-width: 0; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-mi__who { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); white-space: nowrap; }

@media (max-width: 900px) {
    .ccrm-ha__row { flex-wrap: wrap; }
    .ccrm-ha__name { flex: 1 1 100%; }
    .ccrm-mi__row { flex-wrap: wrap; }
    .ccrm-mi__note { flex: 1 1 100%; }
}

/* --- parts fitted on a line of a round ------------------------------------ */
.ccrm-mr__parts { position: relative; width: 28px !important; height: 28px !important; font-size: 11px; }
.ccrm-mr__parts.is-on { border-color: var(--br-accent) !important; color: var(--br-accent) !important; }
.ccrm-mr__parts em {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: var(--br-radius-pill) !important;
    background: var(--br-accent);
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    line-height: 15px;
    color: #fff;
}

.ccrm-mp {
    margin: -1px 0 4px 54px;
    padding: 8px 10px;
    border: 1px dashed var(--br-accent-20);
    border-radius: var(--br-radius-sm) !important;
    background: var(--br-accent-05);
}

.ccrm-mp__list { display: flex; flex-direction: column; gap: 3px; }
.ccrm-mp__row { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.ccrm-mp__name { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-mp__name b { color: var(--br-accent); font-family: ui-monospace, Consolas, monospace; font-size: 11px; }
.ccrm-mp__q { flex: 0 0 auto; font-weight: 600; color: var(--br-on-surface-variant); font-variant-numeric: tabular-nums; }
.ccrm-mp__t { flex: 0 0 84px; text-align: right; font-weight: 800; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-mp__row .ccrm-eq__btn { width: 22px !important; height: 22px !important; font-size: 10px; }

.ccrm-mp__add { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ccrm-mp__add .mp-spare { flex: 2 1 240px; min-width: 0; }
.ccrm-mp__add .mp-name { flex: 2 1 180px; min-width: 0; }
.ccrm-mp__add .mp-qty { flex: 0 0 68px; }
.ccrm-mp__add .mp-cost { flex: 0 0 104px; }
.ccrm-mp__add .btn { flex: 0 0 auto; border-radius: var(--br-radius-pill) !important; }
.ccrm-mp__add .ccrm-in { height: 30px !important; font-size: 11.5px; }

.ccrm-rpt__h2 { margin: 26px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--br-navy); }

@media (max-width: 900px) { .ccrm-mp { margin-left: 0; } }

/* ---------------------------------------------------------------------------
   Site-Data (ccrm-sd): the client's own facility, as our team recorded it.
   The register lives inside a branch's Quality tab; ccrm-sv is one survey
   being walked, and ccrm-sm is the diagram those records are drawn on.
   --------------------------------------------------------------------------- */
.ccrm-sd { display: block; }

.ccrm-sd__nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ccrm-sd__navb {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border: 1px solid var(--br-hairline);
    border-radius: 999px !important; background: var(--br-surface-lowest);
    font-size: 12px; font-weight: 700; color: var(--br-on-surface-variant) !important;
    cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ccrm-sd__navb:hover { border-color: var(--br-navy); color: var(--br-navy) !important; }
.ccrm-sd__navb.is-active { background: var(--br-navy); border-color: var(--br-navy); color: #fff !important; }
.ccrm-sd__navb em { font-style: normal; opacity: .75; font-size: 11px; }
.ccrm-sd__view { display: none; }
.ccrm-sd__view.is-active { display: block; }

/* ---- the numbers at the top ---------------------------------------------- */
.ccrm-sd__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.ccrm-sd__kpi {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px; border: 1px solid var(--br-hairline);
    border-radius: 18px !important; background: var(--br-surface-lowest);
}
.ccrm-sd__kpi > .fa { font-size: 13px; color: var(--br-navy); opacity: .6; margin-bottom: 4px; }
.ccrm-sd__kpi b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--br-on-surface); line-height: 1.1; }
.ccrm-sd__kpi b em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-sd__kpidate { font-size: 14px !important; }
.ccrm-sd__kpi span { font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-sd__kpi.is-warn { border-color: rgba(217, 119, 6, .4); background: rgba(217, 119, 6, .05); }
.ccrm-sd__kpi.is-warn > .fa, .ccrm-sd__kpi.is-warn b { color: #b45309; }

/* ---- cards, lists and rows shared by every view -------------------------- */
.ccrm-sd__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ccrm-sd__card {
    border: 1px solid var(--br-hairline); border-radius: 20px !important;
    background: var(--br-surface-lowest); padding: 16px 18px; margin: 0 0 14px;
}
.ccrm-sd__cardhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.ccrm-sd__cardhead h4 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-sd__cardhead span { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-sd__note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--br-on-surface-variant); }
.ccrm-sd__none { margin: 4px 0 0; font-size: 11.5px; color: var(--br-on-surface-variant); }

.ccrm-sd__list { display: flex; flex-direction: column; }
.ccrm-sd__row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 2px; border-top: 1px solid var(--br-outline-variant);
}
.ccrm-sd__list > .ccrm-sd__row:first-child { border-top: 0; }
.ccrm-sd__rowic {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 12px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 13px;
}
.ccrm-sd__rowic.is-warn, .ccrm-sd__rowic.is-rose { background: rgba(225, 29, 72, .09); color: #e11d48; }
.ccrm-sd__rowic.is-ok { background: rgba(14, 159, 110, .1); color: #0e9f6e; }
.ccrm-sd__rowbody { flex: 1 1 auto; min-width: 0; color: inherit !important; display: block; }
.ccrm-sd__rowbody b { display: block; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-sd__rowbody > em { display: block; font-style: normal; font-size: 11.5px; color: var(--br-on-surface-variant); margin-top: 1px; }
.ccrm-sd__rowmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 3px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-sd__rowmeta em { font-style: normal; }
.ccrm-sd__rowmeta .fa { margin-right: 4px; opacity: .7; }
.ccrm-sd__rowacts { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ccrm-sd__rowacts .form-control { width: auto; min-width: 170px; }

.ccrm-sd__empty { padding: 18px 4px; text-align: center; color: var(--br-on-surface-variant); }
.ccrm-sd__empty .fa { font-size: 20px; opacity: .45; }
.ccrm-sd__empty p { margin: 6px 0 0; font-size: 12px; }

/* ---- the condition bar ---------------------------------------------------- */
.ccrm-sd__bar--cond, .ccrm-sd__bar.ccrm-sd__bar--cond { display: flex; }
.ccrm-sd__card .ccrm-sd__bar { display: flex; height: 22px; border-radius: 999px !important; overflow: hidden; background: var(--br-surface-low); }
.ccrm-sd__barseg {
    display: flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; color: #fff; min-width: 24px;
}
.ccrm-sd__barseg.is-ok { background: #0e9f6e; }
.ccrm-sd__barseg.is-warn { background: #d97706; }
.ccrm-sd__barseg.is-rose { background: #e11d48; }
.ccrm-sd__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-sd__legend b { color: var(--br-on-surface); }
.ccrm-sd__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--br-outline-variant); margin-right: 6px; }
.ccrm-sd__dot.is-ok { background: #0e9f6e; }
.ccrm-sd__dot.is-warn { background: #d97706; }
.ccrm-sd__dot.is-rose { background: #e11d48; }
.ccrm-sd__sched { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ccrm-sd__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ccrm-sd__cats .ccrm-chip b { margin-left: 5px; }

/* ---- the toolbars and the inline forms ------------------------------------ */
.ccrm-sd__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.ccrm-sd__barhint { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-sd__pickform { margin: 0; }
.ccrm-sd__pickform .form-control { min-width: 320px; }

.ccrm-sd__form {
    display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end;
    padding: 16px 18px; margin: 0 0 16px;
    border: 1px solid var(--br-navy); border-radius: 20px !important;
    background: var(--br-surface-lowest);
}
.ccrm-sd__form--float { border-style: dashed; }
/* the form lays out as a flex row, which would otherwise beat [hidden] */
.ccrm-sd__form[hidden], .ccrm-sd__seed[hidden] { display: none; }
.ccrm-sd__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; margin: 0; min-width: 0; }
.ccrm-sd__field--s { flex: 0 1 130px; }
.ccrm-sd__field--w { flex: 1 1 100%; }
.ccrm-sd__field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-sd__formacts { flex: 1 1 100%; display: flex; gap: 8px; }

/* ---- the zones read out of the old free-text locations -------------------- */
.ccrm-sd__seed {
    border: 1px dashed var(--br-navy); border-radius: 20px !important;
    background: rgba(27, 79, 130, .04); padding: 16px 18px; margin: 0 0 18px;
}
.ccrm-sd__seedhead { display: flex; gap: 12px; margin-bottom: 12px; }
.ccrm-sd__seedhead .fa { font-size: 17px; color: var(--br-navy); margin-top: 2px; }
.ccrm-sd__seedhead b { display: block; font-size: 13px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-sd__seedhead span { display: block; font-size: 11.5px; line-height: 1.55; color: var(--br-on-surface-variant); margin-top: 2px; }
.ccrm-sd__seedlist { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.ccrm-sd__seedrow { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 400; }
.ccrm-sd__seedrow .sdSeedName { flex: 1 1 200px; }
.ccrm-sd__seedrow .sdSeedKind { flex: 0 1 190px; }
.ccrm-sd__seedn { font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-sd__seedvar { font-size: 10.5px; font-style: normal; color: var(--br-navy); cursor: help; white-space: nowrap; }
.ccrm-sd__seedfoot { display: flex; gap: 8px; margin-top: 14px; }

/* ---- a zone and the lines standing in it ---------------------------------- */
.ccrm-sd__zone {
    border: 1px solid var(--br-hairline); border-radius: 20px !important;
    background: var(--br-surface-lowest); margin: 0 0 14px; overflow: hidden;
}
.ccrm-sd__zonehead { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--br-surface-low); }
.ccrm-sd__zoneic {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 13px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-lowest); color: var(--br-navy); font-size: 15px;
}
.ccrm-sd__zonename { flex: 1 1 auto; min-width: 0; }
.ccrm-sd__zonename b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-sd__zonename em { display: block; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); margin-top: 1px; }
.ccrm-sd__zonen { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-sd__zonenote { margin: 0; padding: 10px 18px 0; font-size: 11.5px; color: var(--br-on-surface-variant); }

.ccrm-sd__line { border-top: 1px solid var(--br-outline-variant); }
.ccrm-sd__zonehead + .ccrm-sd__line { border-top: 0; }
.ccrm-sd__linehead { display: flex; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer; transition: background .12s ease; }
.ccrm-sd__linehead:hover { background: var(--br-surface-low); }
.ccrm-sd__line.is-open > .ccrm-sd__linehead { background: var(--br-surface-low); }
.ccrm-sd__lineic {
    flex: 0 0 30px; width: 30px; height: 30px; border-radius: 11px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 12px;
}
.ccrm-sd__line.is-open .ccrm-sd__lineic { background: var(--br-surface-lowest); }
.ccrm-sd__linebody { flex: 1 1 auto; min-width: 0; }
.ccrm-sd__linebody > b { display: block; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-sd__linemeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-sd__linemeta em { font-style: normal; }
.ccrm-sd__linecond { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-sd__linecond em { font-style: normal; }
.ccrm-sd__chev { flex: 0 0 auto; color: var(--br-on-surface-variant); transition: transform .15s ease; }
.ccrm-sd__line.is-open .ccrm-sd__chev { transform: rotate(180deg); }

.ccrm-sd__linebody2 { padding: 4px 18px 18px 60px; background: var(--br-surface-low); }
.ccrm-sd__lineacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ccrm-sd__panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.ccrm-sd__pane h5 { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); }

.ccrm-sd__specs { width: 100%; border-collapse: collapse; }
.ccrm-sd__specs td { padding: 2px 4px 2px 0; vertical-align: middle; }
.ccrm-sd__specs .form-control { height: 30px; padding: 3px 9px; font-size: 12px; }
.ccrm-sd__specu { width: 76px; }
.ccrm-sd__specx { width: 34px; }
.ccrm-sd__specacts { display: flex; gap: 6px; margin-top: 8px; }

.ccrm-sd__prod {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 12px; margin-bottom: 6px;
    border: 1px solid var(--br-hairline); border-radius: 14px !important;
    background: var(--br-surface-lowest);
}
.ccrm-sd__prodbody { flex: 1 1 auto; min-width: 0; }
.ccrm-sd__prodbody b { display: block; font-size: 12px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-sd__prodmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; margin-top: 4px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-sd__prodmeta em { font-style: normal; }
.ccrm-sd__prodnote { display: block; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); margin-top: 4px; }

.ccrm-sd__eqrow { padding: 12px 18px 14px 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ccrm-sd__eqrow--zone { padding-left: 18px; border-top: 1px solid var(--br-outline-variant); }
.ccrm-sd__eqrow h5 { flex: 1 1 100%; margin: 0 0 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-sd__eq {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px; border: 1px solid var(--br-hairline); border-radius: 999px !important;
    background: var(--br-surface-lowest); font-size: 11px; color: var(--br-on-surface-variant);
}
.ccrm-sd__eq b { font-weight: 700; color: var(--br-on-surface); }
.ccrm-sd__eq em { font-style: normal; }
.ccrm-sd__loose { border-style: dashed; }

/* ---- the log -------------------------------------------------------------- */
.ccrm-sd__log { display: flex; flex-direction: column; }
.ccrm-sd__logrow { display: flex; gap: 14px; padding: 10px 2px; border-top: 1px solid var(--br-outline-variant); }
.ccrm-sd__logrow:first-child { border-top: 0; }
.ccrm-sd__logwhen { flex: 0 0 110px; font-size: 11.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-sd__logwhen em { display: block; font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-sd__logwhat { flex: 1 1 auto; min-width: 0; }
.ccrm-sd__logwhat b { display: block; font-size: 12px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-sd__logwhat em { display: block; font-style: normal; font-size: 11.5px; color: var(--br-on-surface-variant); margin-top: 1px; overflow-wrap: anywhere; }
.ccrm-sd__logwho { flex: 0 0 auto; font-size: 11px; color: var(--br-on-surface-variant); }

/* ---------------------------------------------------------------------------
   The diagram (ccrm-sm). Boxes are records; the drawing only says where they
   stand and how they are piped together.
   --------------------------------------------------------------------------- */
.ccrm-sd__map {
    position: relative; height: 560px; overflow: hidden;
    border: 1px solid var(--br-hairline); border-radius: 20px !important;
    background: var(--br-surface-lowest);
    background-image: radial-gradient(var(--br-outline-variant) 1px, transparent 1px);
    background-size: 22px 22px;
    cursor: grab; user-select: none;
}
.ccrm-sd__map.is-panning { cursor: grabbing; }
.ccrm-sd__map.is-linking { cursor: crosshair; }
.ccrm-sd__maplegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-sd__maplegend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.ccrm-sd__edgekind { width: auto !important; display: inline-block; }
#sdMapSave.is-dirty { box-shadow: 0 0 0 3px rgba(27, 79, 130, .2); }
#sdMapLink.is-on { background: var(--br-navy); color: #fff; }

.ccrm-sm__svg { display: block; width: 100%; height: 100%; }
.ccrm-sm__node { cursor: pointer; }
.ccrm-sm__box { fill: var(--br-surface-lowest); stroke: var(--br-hairline); stroke-width: 1; }
.ccrm-sm__node:hover .ccrm-sm__box { stroke: var(--br-navy); }
.ccrm-sm__node.is-drag .ccrm-sm__box { stroke: var(--br-navy); stroke-width: 2; }
.ccrm-sm__node.is-from .ccrm-sm__box { stroke: #7c3aed; stroke-width: 2; stroke-dasharray: 5 3; }
.ccrm-sm__node.is-zone .ccrm-sm__box { fill: #f2f6fb; }
.ccrm-sm__t1 { font-size: 12px; font-weight: 700; fill: #10263d; }
.ccrm-sm__t2 { font-size: 10px; fill: #6b7f93; }
.ccrm-sm__edge { cursor: pointer; }
.ccrm-sm__edge.is-auto { pointer-events: none; }
.ccrm-sm__edgelbl { font-size: 9.5px; fill: #6b7f93; }

/* ---------------------------------------------------------------------------
   A survey being walked (ccrm-sv). One line per thing to look at, rated with
   a thumb, so it works standing in a wet production hall.
   --------------------------------------------------------------------------- */
.ccrm-sv__head {
    display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end;
    padding: 16px 18px; margin: 0 0 16px;
    border: 1px solid var(--br-hairline); border-radius: 20px !important;
    background: var(--br-surface-lowest);
}
.ccrm-sv__prog { flex: 1 1 200px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-sv__prog b { font-size: 16px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-sv__bar { flex: 1 1 100px; height: 7px; border-radius: 999px !important; background: var(--br-surface-low); overflow: hidden; }
.ccrm-sv__bar em { display: block; height: 100%; background: var(--br-navy); transition: width .2s ease; }

.ccrm-sv__list { display: flex; flex-direction: column; }
.ccrm-sv__group {
    display: flex; align-items: center; gap: 8px; margin: 18px 0 6px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant);
}
.ccrm-sv__row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
    padding: 10px 14px; margin-bottom: 6px;
    border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest);
}
.ccrm-sv__row.is-rated { background: var(--br-surface-low); }
.ccrm-sv__what { flex: 1 1 230px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ccrm-sv__what b { font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-sv__cond { flex: 0 0 auto; display: flex; gap: 4px; }
.ccrm-sv__condb {
    width: 34px; height: 32px; border-radius: 11px !important;
    border: 1px solid var(--br-hairline); background: var(--br-surface-lowest);
    font-size: 12px; font-weight: 800; color: var(--br-on-surface-variant); cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ccrm-sv__condb:hover { border-color: var(--br-navy); }
.ccrm-sv__condb.is-ok.is-on { background: #0e9f6e; border-color: #0e9f6e; color: #fff; }
.ccrm-sv__condb.is-warn.is-on { background: #d97706; border-color: #d97706; color: #fff; }
.ccrm-sv__condb.is-rose.is-on { background: #e11d48; border-color: #e11d48; color: #fff; }
.ccrm-sv__condb[disabled] { opacity: .5; cursor: default; }
.ccrm-sv__text { flex: 2 1 300px; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ccrm-sv__text .form-control { flex: 1 1 140px; height: 32px; padding: 4px 10px; font-size: 12px; }
.ccrm-sv__acts { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.ccrm-sv__acts label.ccrm-eq__btn { margin: 0; }
.ccrm-sv__acts input[type="file"] { display: none; }
.ccrm-sv__kind { flex: 0 0 auto; width: 22px; color: var(--br-on-surface-variant); font-size: 12px; opacity: .7; }
.ccrm-sv__row.is-line .ccrm-sv__kind { color: var(--br-navy); opacity: 1; }
.ccrm-sv__row.is-zone { background: var(--br-surface-low); }
.ccrm-sv__row.is-zone .ccrm-sv__what b { font-weight: 800; }

.ccrm-sv__photos { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.ccrm-sv__photo { position: relative; display: inline-block; }
.ccrm-sv__photo img { width: 74px; height: 56px; object-fit: cover; border-radius: 10px !important; border: 1px solid var(--br-hairline); }
.ccrm-sv__photox {
    position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
    border-radius: 50% !important; border: 1px solid var(--br-hairline);
    background: var(--br-surface-lowest); color: #e11d48; font-size: 10px; cursor: pointer; padding: 0;
}
.ccrm-sv__add { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ccrm-sv__add .form-control { flex: 1 1 260px; }

/* the printed sheets reuse ccrm-rpt; these are the few pieces it lacks */
.ccrm-rpt__shots { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.ccrm-rpt__shots figure { margin: 0; width: 210px; }
.ccrm-rpt__shots img { width: 100%; height: 150px; object-fit: cover; border: 1px solid #d8e2ec; }
.ccrm-rpt__shots figcaption { font-size: 9.5px; color: #6b7f93; margin-top: 3px; }


@media (max-width: 860px) {
    .ccrm-sd__linebody2 { padding-left: 14px; }
    .ccrm-sd__eqrow { padding-left: 14px; }
    .ccrm-sd__zonen { flex: 1 1 100%; }
    .ccrm-sd__map { height: 420px; }
    .ccrm-sv__cond { flex: 1 1 100%; }
    .ccrm-sv__condb { flex: 1 1 0; width: auto; }
}

/* ---------------------------------------------------------------------------
   Fleet management (ccrm-veh): our own vehicles, their papers, their service
   history and the monthly count of what is in the boot.
   --------------------------------------------------------------------------- */
.ccrm-veh { display: block; }

.ccrm-veh__nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ccrm-veh__navb {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border: 1px solid var(--br-hairline);
    border-radius: 999px !important; background: var(--br-surface-lowest);
    font-size: 12px; font-weight: 700; color: var(--br-on-surface-variant) !important;
    cursor: pointer; transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ccrm-veh__navb:hover { border-color: var(--br-navy); color: var(--br-navy) !important; }
.ccrm-veh__navb.is-active { background: var(--br-navy); border-color: var(--br-navy); color: #fff !important; }
.ccrm-veh__navb em { font-style: normal; opacity: .75; font-size: 11px; }

/* ---- the numbers ---------------------------------------------------------- */
.ccrm-veh__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.ccrm-veh__kpi {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px; border: 1px solid var(--br-hairline);
    border-radius: 18px !important; background: var(--br-surface-lowest);
}
.ccrm-veh__kpi > .fa { font-size: 13px; color: var(--br-navy); opacity: .6; margin-bottom: 4px; }
.ccrm-veh__kpi b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--br-on-surface); line-height: 1.1; }
.ccrm-veh__kpi b em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-veh__kpism { font-size: 16px !important; }
.ccrm-veh__kpi span { font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-veh__kpi.is-warn { border-color: rgba(217, 119, 6, .4); background: rgba(217, 119, 6, .05); }
.ccrm-veh__kpi.is-warn > .fa, .ccrm-veh__kpi.is-warn b { color: #b45309; }
.ccrm-veh__kpi.is-rose { border-color: rgba(225, 29, 72, .35); background: rgba(225, 29, 72, .05); }
.ccrm-veh__kpi.is-rose > .fa, .ccrm-veh__kpi.is-rose b { color: #e11d48; }

/* ---- cards, lists, rows --------------------------------------------------- */
.ccrm-veh__card {
    display: block; border: 1px solid var(--br-hairline); border-radius: 20px !important;
    background: var(--br-surface-lowest); padding: 16px 18px; margin: 0 0 14px;
    color: inherit !important;
}
.ccrm-veh__cardhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.ccrm-veh__cardhead h4 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-veh__cardhead h4 small { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-veh__cardhead span { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__cardhead .btn { margin-left: auto; }
.ccrm-veh__two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }

.ccrm-veh__list { display: flex; flex-direction: column; }
.ccrm-veh__row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 2px; border-top: 1px solid var(--br-outline-variant);
    color: inherit !important; transition: background .12s ease;
}
.ccrm-veh__list > .ccrm-veh__row:first-child { border-top: 0; }
a.ccrm-veh__row:hover { background: var(--br-surface-low); }
.ccrm-veh__row.is-off { opacity: .5; }
.ccrm-veh__rowic {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 12px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 13px;
}
.ccrm-veh__rowic.is-rose { background: rgba(225, 29, 72, .09); color: #e11d48; }
.ccrm-veh__rowic.is-warn { background: rgba(217, 119, 6, .1); color: #b45309; }
.ccrm-veh__rowic.is-ok { background: rgba(14, 159, 110, .1); color: #0e9f6e; }
.ccrm-veh__rowic.is-muted { background: var(--br-surface-low); color: var(--br-on-surface-variant); }
.ccrm-veh__rowbody { flex: 1 1 auto; min-width: 0; }
.ccrm-veh__rowbody b { display: block; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-veh__rowbody b em { font-style: normal; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-veh__rowbody > em { display: block; font-style: normal; font-size: 11.5px; color: var(--br-on-surface-variant); margin-top: 1px; }
.ccrm-veh__rowmeta { display: block; font-size: 11px; color: var(--br-on-surface-variant); margin-top: 2px; }
.ccrm-veh__rowend { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-veh__rowend em { font-style: normal; }
.ccrm-veh__rowend b { font-size: 12.5px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-veh__acts { display: inline-flex; align-items: center; gap: 5px; }
.ccrm-veh__acts label.ccrm-eq__btn { margin: 0; }
.ccrm-veh__acts input[type="file"] { display: none; }

.ccrm-veh__empty { padding: 20px 4px; text-align: center; color: var(--br-on-surface-variant); }
.ccrm-veh__empty .fa { font-size: 20px; opacity: .45; }
.ccrm-veh__empty p { margin: 6px 0 0; font-size: 12px; }
.ccrm-veh__hint { margin: 10px 0 0; flex: 1 1 100%; font-size: 11px; color: var(--br-on-surface-variant); }

/* ---- the fleet as cards --------------------------------------------------- */
.ccrm-veh__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.ccrm-veh__vcard { margin: 0; transition: border-color .12s ease, box-shadow .12s ease; }
.ccrm-veh__vcard:hover { border-color: var(--br-navy); box-shadow: 0 4px 16px rgba(16, 42, 67, .08); }
.ccrm-veh__vhead { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.ccrm-veh__vic {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 14px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 16px;
}
.ccrm-veh__vname { flex: 1 1 auto; min-width: 0; }
.ccrm-veh__vname b { display: block; font-size: 14px; font-weight: 800; letter-spacing: -.01em; color: var(--br-on-surface); }
.ccrm-veh__vname em { display: block; font-style: normal; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__vmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--br-on-surface-variant); margin-bottom: 10px; }
.ccrm-veh__vmeta .fa { margin-right: 5px; opacity: .7; }
.ccrm-veh__vdocs { display: flex; flex-direction: column; gap: 4px; }
.ccrm-veh__doc {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 10px; border-radius: 10px !important; background: var(--br-surface-low);
    font-size: 11px; color: var(--br-on-surface-variant);
}
.ccrm-veh__doc b { flex: 1 1 auto; font-weight: 600; color: var(--br-on-surface); }
.ccrm-veh__doc em { font-style: normal; font-weight: 700; }
.ccrm-veh__doc.is-ok { background: rgba(14, 159, 110, .08); }
.ccrm-veh__doc.is-ok em { color: #0e9f6e; }
.ccrm-veh__doc.is-warn { background: rgba(217, 119, 6, .1); }
.ccrm-veh__doc.is-warn em { color: #b45309; }
.ccrm-veh__doc.is-rose { background: rgba(225, 29, 72, .09); }
.ccrm-veh__doc.is-rose em { color: #e11d48; }
.ccrm-veh__vwarn {
    display: flex; align-items: center; gap: 7px; margin-top: 10px;
    font-size: 11px; font-weight: 700; color: #b45309;
}

/* ---- the alert strip on one vehicle --------------------------------------- */
.ccrm-veh__alerts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ccrm-veh__alert {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 14px !important;
    font-size: 11.5px; background: rgba(217, 119, 6, .1); color: #b45309;
}
.ccrm-veh__alert.is-rose { background: rgba(225, 29, 72, .09); color: #e11d48; }
.ccrm-veh__alert b { font-weight: 700; }
.ccrm-veh__alert em { font-style: normal; opacity: .85; }

/* ---- the facts about one vehicle ------------------------------------------ */
.ccrm-veh__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; }
.ccrm-veh__facts > div { min-width: 0; }
.ccrm-veh__facts span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-veh__facts b { display: block; font-size: 13px; font-weight: 700; color: var(--br-on-surface); margin-top: 2px; overflow-wrap: anywhere; }
.ccrm-veh__factw { grid-column: 1 / -1; }

/* ---- papers --------------------------------------------------------------- */
.ccrm-veh__docgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; }
.ccrm-veh__docbox {
    border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest); padding: 13px 15px;
}
.ccrm-veh__docbox.is-warn { border-color: rgba(217, 119, 6, .45); }
.ccrm-veh__docbox.is-rose { border-color: rgba(225, 29, 72, .4); }
.ccrm-veh__docbox.is-muted { border-style: dashed; }
.ccrm-veh__docheadr { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.ccrm-veh__docheadr .fa { font-size: 15px; color: var(--br-navy); }
.ccrm-veh__docheadr b { display: block; font-size: 12.5px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-veh__docheadr em { display: block; font-style: normal; font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__docnone { margin: 0; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.ccrm-veh__dl dt { font-size: 10.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-veh__dl dd { margin: 0; font-size: 11.5px; color: var(--br-on-surface); overflow-wrap: anywhere; }
.ccrm-veh__dl dd .ccrm-chip { margin-left: 6px; }
.ccrm-veh__docfoot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--br-outline-variant); }
.ccrm-veh__file { flex: 1 1 auto; min-width: 0; font-size: 11px; color: var(--br-navy) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-veh__file .fa { margin-right: 5px; }
.ccrm-veh__nofile { flex: 1 1 auto; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-veh__docfoot .ccrm-veh__acts { margin-left: auto; }

.ccrm-veh__older { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--br-outline-variant); }
.ccrm-veh__older h5 { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-veh__oldrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 5px 0; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__oldrow > span:first-child { min-width: 180px; font-weight: 600; color: var(--br-on-surface); }
.ccrm-veh__oldrow em { font-style: normal; }

/* ---- the odometer --------------------------------------------------------- */
.ccrm-veh__kmbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ccrm-veh__kmbar .form-control { flex: 1 1 130px; }
.ccrm-veh__km { display: flex; flex-direction: column; max-height: 320px; overflow: auto; }
.ccrm-veh__kmrow { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--br-outline-variant); }
.ccrm-veh__kmrow:first-child { border-top: 0; }
.ccrm-veh__kmrow b { flex: 0 0 auto; font-size: 13px; font-weight: 800; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-veh__kmrow b small { font-size: 10px; font-weight: 600; color: var(--br-on-surface-variant); margin-left: 3px; }
.ccrm-veh__kmrow em { flex: 1 1 auto; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-veh__kmrow span { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: #0e9f6e; }

/* ---- tables --------------------------------------------------------------- */
.ccrm-veh__tbl { width: 100%; border-collapse: collapse; }
.ccrm-veh__tbl th {
    padding: 8px 10px; border-bottom: 1px solid var(--br-hairline);
    font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--br-on-surface-variant); text-align: left;
}
.ccrm-veh__tbl td { padding: 9px 10px; border-bottom: 1px solid var(--br-outline-variant); font-size: 12px; vertical-align: top; }
.ccrm-veh__tbl td em { display: block; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-veh__tbl .r, .ccrm-veh__tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- the forms ------------------------------------------------------------ */
.ccrm-veh__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.ccrm-veh__barhint { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__pick { margin: 0; }
.ccrm-veh__form {
    display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end;
    padding: 16px 18px; margin: 14px 0 0;
    border: 1px solid var(--br-navy); border-radius: 18px !important;
    background: var(--br-surface-low);
}
.ccrm-veh__form--float { border-style: dashed; margin: 0 0 16px; }
/* the form lays out as a flex row, which would otherwise beat [hidden] */
.ccrm-veh__form[hidden] { display: none; }
.ccrm-veh__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 190px; margin: 0; min-width: 0; }
.ccrm-veh__field--s { flex: 0 1 140px; }
.ccrm-veh__field--w { flex: 1 1 100%; }
.ccrm-veh__field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-veh__formacts { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.ccrm-veh__formacts .is-danger { margin-left: auto; color: #e11d48; }

/* ---- the monthly count ---------------------------------------------------- */
.ccrm-veh__head {
    display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end;
    padding: 16px 18px; margin: 0 0 16px;
    border: 1px solid var(--br-hairline); border-radius: 20px !important;
    background: var(--br-surface-lowest);
}
.ccrm-veh__prog { flex: 1 1 200px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__prog b { font-size: 16px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-veh__bar2 { flex: 1 1 100px; height: 7px; border-radius: 999px !important; background: var(--br-surface-low); overflow: hidden; }
.ccrm-veh__bar2 em { display: block; height: 100%; background: var(--br-navy); transition: width .2s ease; }

.ccrm-veh__klist { display: flex; flex-direction: column; gap: 6px; }
.ccrm-veh__krow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    padding: 9px 13px; border: 1px solid var(--br-hairline);
    border-radius: 14px !important; background: var(--br-surface-lowest);
}
.ccrm-veh__krow.is-done { background: var(--br-surface-low); }
.ccrm-veh__krow.is-missing { border-color: rgba(225, 29, 72, .4); }
.ccrm-veh__krow.is-short, .ccrm-veh__krow.is-damaged { border-color: rgba(217, 119, 6, .45); }
.ccrm-veh__kname { flex: 1 1 200px; min-width: 0; }
.ccrm-veh__kname b { display: block; font-size: 12.5px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-veh__kname em { font-style: normal; font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-veh__kbtns { flex: 0 0 auto; display: flex; gap: 4px; }
.ccrm-veh__kb {
    padding: 6px 12px; border-radius: 11px !important;
    border: 1px solid var(--br-hairline); background: var(--br-surface-lowest);
    font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); cursor: pointer;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.ccrm-veh__kb:hover { border-color: var(--br-navy); }
.ccrm-veh__kb.is-ok.is-on { background: #0e9f6e; border-color: #0e9f6e; color: #fff; }
.ccrm-veh__kb.is-warn.is-on { background: #d97706; border-color: #d97706; color: #fff; }
.ccrm-veh__kb.is-rose.is-on { background: #e11d48; border-color: #e11d48; color: #fff; }
.ccrm-veh__kb[disabled] { opacity: .5; cursor: default; }
.ccrm-veh__kqty { flex: 0 0 90px; }
.ccrm-veh__kqty .form-control, .ccrm-veh__knote .form-control { height: 32px; padding: 4px 10px; font-size: 12px; }
.ccrm-veh__knote { flex: 1 1 180px; min-width: 0; }

/* ---- the dashboard widget ------------------------------------------------- */
.ccrm-veh__wtally { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.ccrm-veh__wt {
    flex: 1 1 120px; display: flex; flex-direction: column; gap: 1px;
    padding: 11px 14px; border: 1px solid var(--br-hairline);
    border-radius: 16px !important; background: var(--br-surface-lowest); color: inherit !important;
}
.ccrm-veh__wt b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--br-on-surface); }
.ccrm-veh__wt b em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-veh__wt span { font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-veh__wt.is-rose b { color: #e11d48; }
.ccrm-veh__wt.is-warn b { color: #b45309; }
.ccrm-veh__wmore { margin-top: 10px; font-size: 11.5px; font-weight: 700; }

@media (max-width: 860px) {
    .ccrm-veh__kbtns { flex: 1 1 100%; }
    .ccrm-veh__kb { flex: 1 1 0; }
    .ccrm-veh__kqty { flex: 0 0 80px; }
    .ccrm-veh__rowend { flex: 1 1 100%; justify-content: flex-start; padding-left: 46px; }
}

/* ---------------------------------------------------------------------------
   A fleet form as a side card (fleet/form.php). The drawer strips the page's
   own chrome, so this is only the form: one column of fields on a narrow
   panel, two when there is room.
   --------------------------------------------------------------------------- */
.ccrm-vform { max-width: 760px; }
.ccrm-vform__title { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-vform__sub { margin: 2px 0 16px; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-vform__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; }
.ccrm-vform__grid .ccrm-veh__field { flex: none; }
.ccrm-vform__grid .ccrm-veh__field--w { grid-column: 1 / -1; }
.ccrm-vform__have { display: block; margin-top: 5px; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-vform__have .fa { margin-right: 5px; }
.ccrm-vform__hint { margin: 12px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--br-on-surface-variant); }
.ccrm-vform__acts {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px;
    padding-top: 16px; border-top: 1px solid var(--br-outline-variant);
}
.ccrm-vform__acts .is-danger { margin-left: auto; color: #e11d48; }
.ccrm-vform input[type="file"].form-control { height: auto; padding: 7px 10px; font-size: 12px; }

/* ---------------------------------------------------------------------------
   The site register inside the Engineering Follow-up (branches/_visits.php):
   one strip saying where the site stands, and a walk button on every task
   that carries one.
   --------------------------------------------------------------------------- */
.ccrm-visits__site {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    padding: 12px 16px; margin: 0 0 12px;
    border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest);
}
.ccrm-visits__siteic {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 12px !important;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--br-surface-low); color: var(--br-navy); font-size: 14px;
}
.ccrm-visits__sitebody { flex: 1 1 260px; min-width: 0; }
.ccrm-visits__sitebody b { display: block; font-size: 12.5px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-visits__sitebody em { display: block; font-style: normal; font-size: 11.5px; color: var(--br-on-surface-variant); margin-top: 1px; }
.ccrm-visits__siteacts { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ccrm-visit__walk { flex: 0 0 auto; white-space: nowrap; padding: 4px 10px !important; font-size: 9.5px !important; margin-right: 6px; }
.ccrm-visit__line a.ccrm-chip { text-decoration: none; }
@media (max-width: 800px) { .ccrm-visit__walk { flex-basis: 100%; text-align: center; margin: 0 0 6px; } }

/* ---------------------------------------------------------------------------
   Quotations (ccrm-qt*): the form in the side card, the printed document, the
   branch list and the cross-branch list. The form and the document borrow the
   sales-order line grid (ccrm-no) and the price-list sheet (ccrm-pl) so a quote
   looks like the rest of what we send clients.
   --------------------------------------------------------------------------- */
.ccrm-qt { max-width: 1100px; }
.ccrm-qt__head { margin: 0 0 14px; }
.ccrm-qt__head h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--br-on-surface); }
.ccrm-qt__head p { margin: 2px 0 0; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-qt__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.ccrm-qt__field { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; }
.ccrm-qt__field--w { grid-column: 1 / -1; }
.ccrm-qt__field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-qt__field > span .fa { margin-right: 4px; opacity: .7; }
.ccrm-qt__acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--br-outline-variant); }
.ccrm-qt .qtPrice[disabled] { opacity: .45; }

/* the document */
.ccrm-qtdoc__issued {
    max-width: 900px; margin: 0 auto 12px; padding: 10px 16px;
    border-radius: 14px !important; background: rgba(14, 159, 110, .1); color: #0b7a55;
    font-size: 12.5px;
}
.ccrm-qtdoc__issued .fa { margin-right: 6px; }
.ccrm-pl__eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--br-navy); margin-bottom: 2px; }
.ccrm-qtdoc__table { width: 100%; }
.ccrm-qtdoc__c-n { width: 28px; text-align: center; color: var(--br-on-surface-variant); }
.ccrm-qtdoc__c-qty { width: 11%; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.ccrm-qtdoc__c-total { width: 14%; white-space: nowrap; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-qtdoc__table tfoot td { padding: 6px 10px; border: 0; text-align: right; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-qtdoc__table tfoot tr:first-child td { border-top: 1px solid var(--br-hairline); padding-top: 10px; }
.ccrm-qtdoc__table tfoot tr.is-total td { font-size: 14px; font-weight: 800; color: var(--br-on-surface); border-top: 2px solid var(--br-navy); }
.ccrm-qtdoc .ccrm-rpt__toolbar .ccrm-chip { margin-right: 6px; }
body.ccrm-rpt.is-embedded .ccrm-rpt__toolbar { position: sticky; top: 0; z-index: 3; }   /* in the side card the bar stays on top */

/* the branch list */
.ccrm-qtrow__total { font-size: 12.5px; font-weight: 800; color: var(--br-on-surface); font-variant-numeric: tabular-nums; margin-right: 4px; }
.ccrm-qtrow.is-muted { opacity: .6; }

/* across branches */
.ccrm-qtl__nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ccrm-qtl__navb {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
    border: 1px solid var(--br-hairline); border-radius: 999px !important; background: var(--br-surface-lowest);
    font-size: 12px; font-weight: 700; color: var(--br-on-surface-variant) !important;
}
.ccrm-qtl__navb:hover { border-color: var(--br-navy); color: var(--br-navy) !important; }
.ccrm-qtl__navb.is-active { background: var(--br-navy); border-color: var(--br-navy); color: #fff !important; }
.ccrm-qtl__navb em { font-style: normal; opacity: .75; font-size: 11px; }
.ccrm-qtl { border: 1px solid var(--br-hairline); border-radius: 20px !important; background: var(--br-surface-lowest); padding: 8px 18px 14px; }
.ccrm-qtl__tbl { width: 100%; border-collapse: collapse; }
.ccrm-qtl__tbl th { padding: 10px; border-bottom: 1px solid var(--br-hairline); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); text-align: left; }
.ccrm-qtl__tbl td { padding: 10px; border-bottom: 1px solid var(--br-outline-variant); font-size: 12px; vertical-align: top; }
.ccrm-qtl__tbl td em { display: block; font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-qtl__tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.ccrm-qtl__tbl td.is-soon { color: #b45309; font-weight: 700; }
.ccrm-qtl__so { margin-left: 6px; font-size: 11px; font-weight: 700; }
.ccrm-qtdoc .ccrm-pl__meta dd { white-space: nowrap; }
/* a revised reference ("Q-2026-0001 rev. 2") is wider than an order number */
.ccrm-qtrow .ccrm-ord__main { grid-template-columns: minmax(160px, auto) 1fr; column-gap: 16px; }
@media (max-width: 900px) { .ccrm-qtrow .ccrm-ord__main { grid-template-columns: 1fr; } }
.ccrm-qtdoc__issued.is-warn { background: rgba(217, 119, 6, .12); color: #92400e; }

/* a hairline between groups of sub-tabs (branch Sales: follow-up | offer | deals) */
.nav-tabs > li.ccrm-subtabs__sep {
    flex: 0 0 1px; width: 1px; align-self: stretch;
    margin: 6px 5px !important; padding: 0;
    background: var(--br-outline-variant, #cbd9e8);
    pointer-events: none;
}
@media (max-width: 767px) { .nav-tabs > li.ccrm-subtabs__sep { margin: 8px 2px !important; } }

/* ---------------------------------------------------------------------------
   A branch's sales orders (branches/_orders_pipeline.php): the stages as
   filter chips, what is still in progress first, then month by month.
   --------------------------------------------------------------------------- */
.ccrm-sop { margin-top: 16px; }

.ccrm-sop__stages {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px;
}
.ccrm-sop__chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px; border: 1px solid var(--br-hairline);
    border-radius: 999px !important; background: var(--br-surface-lowest);
    font-size: 11.5px; font-weight: 700; color: var(--br-on-surface-variant);
    cursor: pointer; transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.ccrm-sop__chip:hover { border-color: var(--br-navy); color: var(--br-navy); }
.ccrm-sop__chip em { font-style: normal; font-weight: 800; color: var(--br-on-surface); opacity: .75; }
.ccrm-sop__chip.is-on { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }
.ccrm-sop__chip.is-on em { color: #fff; opacity: .85; }
.ccrm-sop__cdot { display: inline-block; width: 8px; height: 8px; border-radius: 50% !important; background: var(--br-accent); }
.ccrm-sop__cdot.is-open { background: var(--br-amber, #d97706); }

.ccrm-sop__group { margin: 0 0 14px; }
.ccrm-sop__head {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
    padding: 0 4px 6px;
}
.ccrm-sop__head b { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-sop__head span { font-size: 11px; color: var(--br-on-surface-variant); font-variant-numeric: tabular-nums; }
.ccrm-sop__group.is-open .ccrm-sop__head b { color: #b45309; }

.ccrm-sop__list {
    border: 1px solid var(--br-hairline); border-radius: 16px !important;
    background: var(--br-surface-lowest); overflow: hidden;
}
.ccrm-sop__group.is-open .ccrm-sop__list { border-color: rgba(217, 119, 6, .35); }
.ccrm-sop__row {
    display: flex; align-items: center;
    border-top: 1px solid var(--br-outline-variant);
    transition: background .12s ease, opacity .12s ease;
}
/* the whole row opens the order; only a pending request's buttons sit apart */
.ccrm-sop__hit {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    color: inherit !important; text-decoration: none !important;
}
.ccrm-sop__acts { flex: 0 0 auto; display: flex; gap: 6px; padding-right: 14px; }
.ccrm-sop__acts .btn { white-space: nowrap; }
.ccrm-sop__list > .ccrm-sop__row:first-child,
.ccrm-sop__list > .ccrm-sop__row[hidden] + .ccrm-sop__row { border-top: 0; }
.ccrm-sop__row:hover, .ccrm-sop__row.is-hl { background: var(--br-surface-low); }
.ccrm-sop.is-filtering .ccrm-sop__row:not(.is-hl) { opacity: .4; }
.ccrm-sop__row[hidden] { display: none; }
.ccrm-sop__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50% !important; }
.ccrm-sop__main { flex: 1 1 auto; min-width: 0; }
.ccrm-sop__no { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--br-on-surface); }
.ccrm-sop__urgent { color: #e11d48; font-size: 12px; }
.ccrm-sop__tag { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px !important; background: var(--br-surface-low); color: var(--br-navy); }
.ccrm-sop__meta { display: block; margin-top: 1px; font-size: 11.5px; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-sop__amt { flex: 0 0 auto; font-size: 12.5px; font-weight: 800; color: var(--br-on-surface); font-variant-numeric: tabular-nums; }
.ccrm-sop__stage {
    flex: 0 0 auto; padding: 3px 10px; border-radius: 999px !important;
    font-size: 10.5px; font-weight: 700; white-space: nowrap;
    color: var(--stage); background: color-mix(in srgb, var(--stage) 12%, transparent);
}
.ccrm-sop__go { flex: 0 0 auto; color: var(--br-on-surface-variant); opacity: .6; }

.ccrm-sop__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 6px; }
.ccrm-sop__more[hidden] { display: none; }
.ccrm-sop__more span { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-sop__none { padding: 18px; text-align: center; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-sop__none[hidden] { display: none; }
.ccrm-sop__none .fa { margin-right: 6px; opacity: .6; }

/* phones: the stage chips scroll sideways, a row folds onto two lines */
@media (max-width: 640px) {
    .ccrm-sop__stages { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-right: -16px; padding-right: 16px; }
    .ccrm-sop__stages::-webkit-scrollbar { display: none; }
    .ccrm-sop__chip { flex: 0 0 auto; }
    .ccrm-sop__row { flex-wrap: wrap; }
    .ccrm-sop__hit { flex-wrap: wrap; gap: 4px 10px; padding: 11px 12px; }
    .ccrm-sop__acts { flex: 1 1 100%; padding: 0 12px 11px 30px; }
    .ccrm-sop__acts .btn { flex: 1 1 0; }
    .ccrm-sop__main { flex: 1 1 calc(100% - 30px); }
    .ccrm-sop__amt { order: 3; margin-left: 18px; }
    .ccrm-sop__stage { order: 4; margin-left: auto; }
    .ccrm-sop__go { display: none !important; }   /* the whole row is the link on a phone */
}

/* ---------------------------------------------------------------------------
   Branch view head. On a desktop the switch and the shortcuts sit together on
   the right, as before. On a phone the status switch rises to the right of the
   branch name, and the shortcuts (Orders, Consignments, Print Profile) follow
   as one row of compact, equal buttons - they wrap only when a label cannot fit.
   --------------------------------------------------------------------------- */
.ccrm-page-head__btns { display: flex; align-items: center; gap: 10px; }
@media (max-width: 767px) {
    .ccrm-page-head--branch {
        display: grid; grid-template-columns: minmax(0, 1fr) auto;
        align-items: end; column-gap: 12px; row-gap: 12px;
    }
    .ccrm-page-head--branch .ccrm-page-head__actions--compact { display: contents; }
    /* level with the name: centred on the title line */
    .ccrm-page-head--branch .ccrm-toggle--head { grid-column: 2; grid-row: 1; margin: 0 0 2px; }
    .ccrm-page-head--branch .ccrm-toggle--head .ccrm-toggle__text { min-width: 0; }
    .ccrm-page-head--branch .ccrm-page-head__btns { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; }
    .ccrm-page-head__btns > .btn {
        flex: 1 1 0; min-width: max-content;
        display: inline-flex; align-items: center; justify-content: center;
        height: 34px; padding: 0 8px !important;
        font-size: 9.5px !important; letter-spacing: .05em !important; white-space: nowrap;
    }
    .ccrm-page-head__btns > .btn > i { margin-right: 5px; }
}

#ccrmNewAccount .ccrm-drawer__actions { flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   Profile reports on A4 (branch and salesperson): one size smaller all
   through, so long figures - a seven-digit total, a full year's value - stay
   inside their tiles, and the sheet holds more before it breaks a page.
   --------------------------------------------------------------------------- */
body.ccrm-rpt .ccrm-rpt__title { font-size: 24px; }
body.ccrm-rpt .ccrm-rpt__sub { font-size: 12px; }
body.ccrm-rpt .ccrm-rpt__meta { font-size: 10px; }
body.ccrm-rpt .ccrm-rpt__h { font-size: 13.5px; margin-bottom: 10px; padding-bottom: 7px; }
body.ccrm-rpt .ccrm-rpt__h small { font-size: 10px; }

body.ccrm-rpt .ccrm-rpt__kpis { gap: 8px; }
body.ccrm-rpt .ccrm-rpt__kpi { padding: 10px 11px; min-width: 0; }
body.ccrm-rpt .ccrm-rpt__kpi-v { font-size: 15px; letter-spacing: -.035em; white-space: nowrap; }
body.ccrm-rpt .ccrm-rpt__kpi-k { font-size: 8px; letter-spacing: .1em; }
body.ccrm-rpt .ccrm-rpt__kpi-k em { font-size: 9.5px; }

body.ccrm-rpt .ccrm-rpt__facts > div { padding: 8px 10px; min-width: 0; }
body.ccrm-rpt .ccrm-rpt__facts b { font-size: 13px; letter-spacing: -.03em; white-space: nowrap; }
body.ccrm-rpt .ccrm-rpt__facts span { font-size: 8.5px; letter-spacing: .05em; }

body.ccrm-rpt .ccrm-rpt__findings { gap: 6px; }
body.ccrm-rpt .ccrm-rpt__findings li { padding: 8px 11px; font-size: 11.5px; line-height: 1.45; }

body.ccrm-rpt .ccrm-rpt__kv { gap: 11px 22px; }
body.ccrm-rpt .ccrm-rpt__kv .ccrm-kv__k { font-size: 8px; }
body.ccrm-rpt .ccrm-rpt__kv .ccrm-kv__v { font-size: 12px; }

body.ccrm-rpt .ccrm-rpt__table { font-size: 10.5px; }
body.ccrm-rpt .ccrm-rpt__table th { padding: 6px 8px; font-size: 8px; }
body.ccrm-rpt .ccrm-rpt__table td { padding: 6px 8px; }
body.ccrm-rpt .ccrm-rpt__table td em { font-size: 9.5px; }
body.ccrm-rpt .ccrm-rpt__foot, body.ccrm-rpt .ccrm-rpt__footer { font-size: 9.5px; }

/* Report cards: a ranked list gives the name the width - the name on its own
   line, the figure beside its bar - and the stage legend reads small */
body.ccrm-rpt .ccrm-rpt__card .ccrm-bars > li { margin-bottom: 9px; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-bars__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'label label' 'track value'; gap: 3px 8px; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-bars__label { font-size: 11px; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-bars__value { font-size: 11px; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-bars__value em { font-size: 8.5px; margin-left: 4px; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-bars__track { height: 6px; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-donut { flex-wrap: wrap; justify-content: center; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-donut__legend { flex: 1 1 100%; min-width: 0; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-donut__legend > li { gap: 7px; padding: 5px 0; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-donut__name { font-size: 11px; line-height: 1.3; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-donut__num { font-size: 11px; white-space: nowrap; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-donut__num em { font-size: 8.5px; }
body.ccrm-rpt .ccrm-rpt__card .ccrm-oh__chart-title { font-size: 8.5px; }

/* ---------------------------------------------------------------------------
   Branch documents: the Documents tab on a branch, the preview in the side
   card, the checklist in Settings, and the audit report.
   --------------------------------------------------------------------------- */
.ccrm-tab__count.is-warn, .nav-tabs > li > a .ccrm-tab__count.is-warn { background: rgba(225, 29, 72, .12) !important; color: #be123c !important; }

/* the tab */
.ccrm-bdoc__meter { flex: 0 0 140px; height: 8px; border-radius: 999px !important; background: var(--br-surface-low); overflow: hidden; margin-left: auto; }
.ccrm-bdoc__meter i { display: block; height: 100%; border-radius: 999px !important; background: #d97706; }
.ccrm-bdoc__meter.is-done i { background: #0e9f6e; }
.ccrm-bdoc__group { margin: 0 0 16px; }
.ccrm-bdoc__gh { margin: 0 0 8px; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-bdoc__row {
    display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 12px 14px;
    border: 1px solid var(--br-hairline); border-radius: 14px !important; background: var(--br-surface-lowest);
    transition: border-color .12s ease, background .12s ease, opacity .12s ease;
}
.ccrm-bdoc__row.is-missing { border-color: rgba(225, 29, 72, .28); }
.ccrm-bdoc__row.is-over { border-color: var(--br-navy); background: rgba(37, 99, 235, .05); border-style: dashed; }
.ccrm-bdoc__row.is-busy { opacity: .55; pointer-events: none; }
.ccrm-bdoc__ic { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px !important; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.ccrm-bdoc__row.is-ok .ccrm-bdoc__ic { background: rgba(14, 159, 110, .12); color: #0e9f6e; }
.ccrm-bdoc__row.is-missing .ccrm-bdoc__ic { background: rgba(225, 29, 72, .1); color: #e11d48; }
.ccrm-bdoc__row.is-empty .ccrm-bdoc__ic { background: var(--br-surface-low); color: var(--br-on-surface-variant); }
.ccrm-bdoc__body { flex: 1 1 auto; min-width: 0; }
.ccrm-bdoc__body > b { display: block; font-size: 13px; font-weight: 700; color: var(--br-on-surface); }
.ccrm-bdoc__desc { display: block; font-size: 11px; color: var(--br-on-surface-variant); margin-top: 1px; }
.ccrm-bdoc__file { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--br-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-bdoc__file .fa { color: var(--br-navy); margin-right: 3px; }
.ccrm-bdoc__file em { font-style: normal; font-weight: 500; color: var(--br-on-surface-variant); margin-left: 6px; }
.ccrm-bdoc__none { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 700; color: #be123c; }
.ccrm-bdoc__row.is-empty .ccrm-bdoc__none { color: var(--br-on-surface-variant); font-weight: 600; }
.ccrm-bdoc__acts { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.ccrm-bdoc__acts label { margin: 0; cursor: pointer; }
.ccrm-bdoc__acts input[type="file"] { display: none !important; }   /* Bootstrap shows every file input, [hidden] or not */
.ccrm-bdoc__hist { margin-top: 8px; border: 1px solid var(--br-hairline); border-radius: 14px !important; background: var(--br-surface-lowest); }
.ccrm-bdoc__hist > summary { cursor: pointer; padding: 11px 14px; font-size: 12px; font-weight: 700; color: var(--br-on-surface); list-style: none; }
.ccrm-bdoc__hist > summary::-webkit-details-marker { display: none; }
.ccrm-bdoc__hist > summary em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px !important; background: var(--br-surface-low); font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-bdoc__htbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ccrm-bdoc__htbl th { padding: 7px 14px; text-align: left; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); border-top: 1px solid var(--br-hairline); }
.ccrm-bdoc__htbl td { padding: 7px 14px; border-top: 1px solid var(--br-outline-variant); vertical-align: top; }
.ccrm-bdoc__htbl td em { font-style: normal; color: var(--br-on-surface-variant); }
.ccrm-bdoc__htbl .r { text-align: right; }
@media (max-width: 640px) {
    .ccrm-bdoc__row { flex-wrap: wrap; }
    .ccrm-bdoc__body { flex: 1 1 calc(100% - 50px); }
    .ccrm-bdoc__acts { flex: 1 1 100%; padding-left: 44px; }
    .ccrm-bdoc__meter { flex-basis: 100%; margin: 8px 0 0; }
    .ccrm-bdoc__htbl th:nth-child(3), .ccrm-bdoc__htbl td:nth-child(3) { display: none; }
}

/* the preview, in the side card: the file fills what the bar leaves */
body.ccrm-bdocv { display: flex; flex-direction: column; height: 100vh; box-sizing: border-box; }
.ccrm-bdocv__bar { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
.ccrm-bdocv__info { flex: 1 1 260px; min-width: 0; }
.ccrm-bdocv__info b { display: block; font-size: 13.5px; font-weight: 700; color: var(--br-on-surface); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-bdocv__info span { display: block; font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-bdocv__info .ccrm-chip { margin: 0; padding: 1px 8px; font-size: 10.5px; font-style: normal; }
.ccrm-bdocv__note { margin-top: 3px; font-style: italic; }
.ccrm-bdocv__acts { display: flex; gap: 8px; }
.ccrm-bdocv__stage { flex: 1 1 auto; min-height: 320px; border: 1px solid var(--br-hairline); border-radius: 14px !important; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ccrm-bdocv__stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ccrm-bdocv__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ccrm-bdocv__stage.is-image { padding: 12px; box-sizing: border-box; }

/* a PDF, drawn by the app: white, fitted to the width, a slim strip of pages */
.ccrm-pdfv { position: relative; display: flex; width: 100%; height: 100%; align-self: stretch; background: #fff; }
.ccrm-pdfv__thumbs { flex: 0 0 72px; overflow-y: auto; padding: 10px 8px; border-right: 1px solid var(--br-hairline); background: var(--br-surface); box-sizing: border-box; scrollbar-width: thin; }
.ccrm-pdfv__thumbs[hidden] { display: none; }
.ccrm-pdfv__thumb { display: block; width: 100%; margin: 0 0 8px; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; }
.ccrm-pdfv__thumb canvas { display: block; margin: 0 auto; width: 52px; border: 1px solid var(--br-hairline); border-radius: 3px !important; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.ccrm-pdfv__thumb span { display: block; margin-top: 3px; font-size: 9.5px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-pdfv__thumb.is-on canvas { border-color: var(--br-navy); box-shadow: 0 0 0 2px rgba(16, 42, 67, .25); }
.ccrm-pdfv__thumb.is-on span { color: var(--br-navy); }
.ccrm-pdfv__pages { flex: 1 1 auto; overflow: auto; padding: 16px; box-sizing: border-box; background: #fff; }
.ccrm-pdfv__page { display: flex; justify-content: center; margin: 0 auto 14px; }
.ccrm-pdfv__page canvas { display: block; border: 1px solid var(--br-hairline); box-shadow: 0 2px 10px rgba(15, 23, 42, .06); background: #fff; }
.ccrm-pdfv__wait { margin: 40px 0; text-align: center; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-pdfv__count { position: absolute; right: 18px; bottom: 14px; padding: 4px 10px; border-radius: 999px !important; background: rgba(16, 42, 67, .82); color: #fff; font-size: 11px; font-weight: 700; }
.ccrm-pdfv__count[hidden] { display: none; }
.ccrm-pdfv.is-native .ccrm-pdfv__pages { padding: 0; }
.ccrm-pdfv.is-native iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .ccrm-pdfv__thumbs { display: none !important; } .ccrm-pdfv__pages { padding: 8px; } }
.ccrm-bdocv__stage.is-none { background: var(--br-surface-lowest); }

/* the checklist, in Settings */
.ccrm-bdt { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.ccrm-bdt__head, .ccrm-bdt__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr) 72px 72px 32px; gap: 10px; align-items: center; }
.ccrm-bdt__head span { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-bdt__head em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.ccrm-bdt__move { display: flex; gap: 4px; }
.ccrm-bdt__row .ccrm-toggle { margin: 0; }
.ccrm-bdt__row .form-control.is-invalid { border-color: #e11d48 !important; }
.ccrm-bdt__audit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.ccrm-bdt__fig { flex: 0 1 220px; padding: 10px 14px; border-radius: 14px !important; background: var(--br-surface-low); }
.ccrm-bdt__fig b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--br-navy); }
.ccrm-bdt__fig span { font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-bdt__fig.is-warn b { color: #be123c; }
@media (max-width: 760px) {
    .ccrm-bdt__head { display: none; }
    .ccrm-bdt__row { grid-template-columns: 64px minmax(0, 1fr) 32px; padding: 10px; border: 1px solid var(--br-hairline); border-radius: 12px !important; }
    .ccrm-bdt__row [data-desc] { grid-column: 1 / -1; }
}

/* the audit report: one wide sheet, landscape on paper */
body.ccrm-bdaud { background: var(--br-surface); }
.ccrm-bdaud__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1400px; margin: 0 auto 14px; }
.ccrm-bdaud__bar .form-control { width: auto; min-width: 170px; height: 36px; }
.ccrm-bdaud__chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; }
.ccrm-bdaud__sp { flex: 1 1 auto; }
.ccrm-bdaud__sheet { max-width: 1400px; margin: 0 auto; padding: 28px 30px 22px; background: var(--br-surface-lowest); border: 1px solid var(--br-hairline); border-radius: var(--br-radius) !important; box-shadow: var(--br-shadow-md); }
.ccrm-bdaud__head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--br-navy); }
.ccrm-bdaud__head h1 { margin: 4px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.03em; color: var(--br-on-surface); }
.ccrm-bdaud__head p { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-bdaud__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-bdaud__kpis { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ccrm-bdaud__kpis > div { flex: 1 1 150px; padding: 10px 12px; border-radius: 12px !important; background: var(--br-surface-low); }
.ccrm-bdaud__kpis b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--br-navy); }
.ccrm-bdaud__kpis b em { font-style: normal; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-bdaud__kpis span { font-size: 10.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-bdaud__kpis .is-warn b { color: #be123c; }
.ccrm-bdaud__tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ccrm-bdaud__tbl th { position: sticky; top: 0; z-index: 1; padding: 8px 8px; background: var(--br-surface-low); border-bottom: 1px solid var(--br-hairline); text-align: left; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); vertical-align: bottom; }
.ccrm-bdaud__tbl th small { display: block; font-size: 8px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.ccrm-bdaud__tbl th.is-opt { color: var(--br-hairline); }
.ccrm-bdaud__tbl td { padding: 7px 8px; border-bottom: 1px solid var(--br-outline-variant); vertical-align: middle; }
.ccrm-bdaud__tbl td a { color: inherit; text-decoration: none; }
.ccrm-bdaud__tbl td em { display: block; font-style: normal; font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-bdaud__tbl .c { text-align: center; white-space: nowrap; }
.ccrm-bdaud__tbl tr.is-missing td:first-child { box-shadow: inset 3px 0 0 #e11d48; }
.ccrm-bdaud__tbl tr.is-ok td:first-child { box-shadow: inset 3px 0 0 #0e9f6e; }
.ccrm-bdaud__ok, .ccrm-bdaud__no { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; font-size: 12px; }
.ccrm-bdaud__ok { color: #0e9f6e !important; }
.ccrm-bdaud__no { color: #e11d48; }
.ccrm-bdaud__ok span, .ccrm-bdaud__no span { font-size: 9px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-bdaud__na { color: var(--br-hairline); }
.ccrm-bdaud__score { font-variant-numeric: tabular-nums; }
.ccrm-bdaud__tbl tr.is-missing .ccrm-bdaud__score { color: #be123c; }
@media (max-width: 760px) { .ccrm-bdaud__sheet { padding: 16px 12px; overflow-x: auto; } .ccrm-bdaud__bar .form-control { min-width: 0; flex: 1 1 140px; } }
@media print {
    .ccrm-bdaud__sheet { page: ccrmLandscape; }   /* landscape for the audit only */
    body.ccrm-bdaud { background: #fff !important; padding: 0 !important; }
    .ccrm-bdaud__sheet { max-width: none; padding: 0; border: 0; box-shadow: none; }
    .ccrm-bdaud__tbl { font-size: 8.5pt; }
    .ccrm-bdaud__tbl th { position: static; }
    .ccrm-bdaud__tbl tr { break-inside: avoid; page-break-inside: avoid; }
}

/* ---------------------------------------------------------------------------
   Issued documents: the letterhead every quotation, price list and report
   carries (as on the ERP's documents), the address line at the foot of the
   page, the item code and barcode columns, and the quotation laid out under
   them. The sheet is A4 on every screen - js/ccrm-a4.js scales it down on a
   phone - and the PDF and the print are the same page.
   --------------------------------------------------------------------------- */
.ccrm-lh { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 10px; border-bottom: 4px double var(--br-navy); }
.ccrm-lh__id { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.ccrm-lh__name { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--br-navy); white-space: nowrap; }
.ccrm-lh__name small { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.ccrm-lh__tag { margin-top: 3px; font-size: 11px; font-weight: 700; color: var(--br-navy); }
.ccrm-lh__reg { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; font-size: 10.5px; font-weight: 700; color: var(--br-navy); line-height: 1.45; }
.ccrm-lh__iso { flex: 0 0 auto; height: 66px; width: auto; margin-bottom: 2px; }
.ccrm-lh__brand { flex: 0 0 auto; height: 92px; width: auto; border-radius: 12px !important; }
.ccrm-lh__foot {
    margin-top: auto; padding-top: 9px; border-top: 4px double var(--br-navy);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 9.5px; font-weight: 700; color: var(--br-navy); text-align: center;
}

/* the quotation: a page-tall sheet, so the address line closes the page */
body.ccrm-rpt .ccrm-qd { display: flex; flex-direction: column; min-height: 1123px; }   /* 297mm */
.ccrm-qd__box { margin-top: 12px; border: 1px solid #c9d1dc; border-radius: 12px !important; overflow: hidden; }
.ccrm-qd__title { margin: 0; padding: 5px 10px; background: #eef1f5; border-bottom: 1px solid #c9d1dc; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--br-on-surface); }
.ccrm-qd__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ccrm-qd__client { padding: 7px 11px; border-right: 1px solid #c9d1dc; display: flex; flex-direction: column; gap: 1px; font-size: 10px; line-height: 1.4; color: var(--br-on-surface); }
.ccrm-qd__code { font-size: 9.5px; font-weight: 800; color: var(--br-on-surface-variant); letter-spacing: .02em; }
.ccrm-qd__cname { font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 2px; }
.ccrm-qd__meta { margin: 0; padding: 5px 0; }
.ccrm-qd__meta > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px; padding: 1px 11px; font-size: 10px; line-height: 1.4; }
.ccrm-qd__meta dt { font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-qd__meta dd { margin: 0; color: var(--br-on-surface); }

.ccrm-qd__lines { width: 100%; margin-top: 10px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 11px; border: 1px solid #c9d1dc; border-bottom: 0; border-radius: 12px 12px 0 0 !important; overflow: hidden; }
.ccrm-qd__lines th, .ccrm-qd__lines td { box-sizing: border-box; overflow-wrap: anywhere; }
.ccrm-qd__lines th { padding: 6px 7px; background: #eef1f5; border-bottom: 1px solid #c9d1dc; text-align: left; font-size: 10px; font-weight: 700; color: var(--br-on-surface); vertical-align: bottom; }
.ccrm-qd__lines th + th, .ccrm-qd__lines td + td { border-left: 1px solid #c9d1dc; }
.ccrm-qd__lines th small { display: block; font-size: 8px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-qd__lines td { padding: 6px 7px; border-bottom: 1px solid #e3e8ef; vertical-align: top; color: var(--br-on-surface); }
.ccrm-qd__lines .c-n { width: 28px; text-align: center; color: var(--br-on-surface-variant); }
.ccrm-qd__lines .c-code { width: 100px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ccrm-qd__lines .c-desc b { display: block; font-weight: 700; }
.ccrm-qd__lines .c-desc span { display: block; margin-top: 1px; font-size: 10px; color: var(--br-on-surface-variant); }
.ccrm-qd__lines .c-bc { width: 120px; text-align: center; }
.ccrm-qd__lines .c-qty { width: 86px; text-align: right; white-space: nowrap; }
.ccrm-qd__lines .c-pr, .ccrm-qd__lines .c-tot { width: 72px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ccrm-qd__lines th.c-qty, .ccrm-qd__lines th.c-pr, .ccrm-qd__lines th.c-tot { text-align: right; }
.ccrm-qd__lines .c-tot { font-weight: 700; }
.ccrm-qd__dim { color: var(--br-hairline); }
.ccrm-qd__note { margin: 0; padding: 4px; border: 1px solid #c9d1dc; border-top: 1px solid #c9d1dc; text-align: center; font-size: 11px; font-weight: 700; font-style: italic; color: var(--br-on-surface); }
.ccrm-qd__sum { display: grid; grid-template-columns: minmax(0, 1fr) 290px; border: 1px solid #c9d1dc; border-top: 0; border-radius: 0 0 12px 12px !important; overflow: hidden; }
.ccrm-qd__words { padding: 8px 12px; border-right: 1px solid #c9d1dc; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface); }
.ccrm-qd__words em { font-size: 11px; font-weight: 500; color: var(--br-on-surface-variant); }
.ccrm-qd__tot { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ccrm-qd__tot td { padding: 3px 10px; }
.ccrm-qd__tot td:first-child { text-align: right; color: var(--br-on-surface); white-space: nowrap; }
.ccrm-qd__tot td:nth-child(2) { width: 34px; color: var(--br-on-surface-variant); }
.ccrm-qd__tot td:last-child { width: 82px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ccrm-qd__tot tr.is-total td { padding-top: 5px; padding-bottom: 5px; font-size: 13px; font-weight: 800; }
.ccrm-qd__tot tr.is-total td:last-child { background: #e6eaf0; border-radius: 8px 0 0 8px !important; }
.ccrm-qd__text { margin-top: 12px; }
.ccrm-qd__text h3 { margin: 0 0 3px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-qd__text p { margin: 0; font-size: 10.5px; line-height: 1.5; color: var(--br-on-surface); }
.ccrm-qd__sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 22px 0 18px; }
.ccrm-qd__sign > div { padding-top: 6px; border-top: 1px solid #c9d1dc; display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.ccrm-qd__sign span { font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-qd__sign b { font-size: 12px; }
.ccrm-qd__sign em { font-style: normal; color: var(--br-on-surface-variant); }

/* a barcode in a line, and the code under it */
svg.ccrm-bc { display: block; margin: 0 auto; max-width: 110px; height: auto; }
.ccrm-bc__txt { font-family: ui-monospace, Consolas, monospace; font-size: 10px; }

/* the document's toolbar switches for its item columns */
.ccrm-docshow { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--br-hairline); border-radius: 999px !important; background: var(--br-surface-lowest); }
.ccrm-docshow > em { padding: 0 6px 0 8px; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-docshow__opt { height: 28px; padding: 0 11px; border: 0; border-radius: 999px !important; background: transparent; font-size: 10.5px; font-weight: 700; color: var(--br-on-surface-variant); cursor: pointer; white-space: nowrap; }
.ccrm-docshow__opt.is-on { background: var(--br-navy); color: #fff; }

@media print {
    body.ccrm-rpt .ccrm-qd { min-height: 270mm; }   /* the page less its printed margins, so the foot closes it */
    .ccrm-docshow { display: none !important; }
}

/* ---------------------------------------------------------------------------
   Quotation view: one slim bar above the sheet. The state on the left in a
   single line, the actions on the right as compact one-line buttons, the rare
   ones (cancel, reopen, copy) behind the menu. Solid and sticky, so the sheet
   scrolls under it rather than through it; its own width, not the sheet's.
   --------------------------------------------------------------------------- */
body.ccrm-rpt .ccrm-rpt__toolbar.ccrm-qtbar {
    position: sticky; top: 0; z-index: 5;
    width: auto; max-width: none; box-sizing: border-box;
    /* full width for the background, the content lined up with the sheet */
    margin: 0 0 14px; padding: 10px max(0px, calc((100% - var(--ccrm-a4-sheet)) / 2));
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px;
    background: var(--br-surface);
    border-bottom: 1px solid var(--br-hairline);
}
.ccrm-qtbar .btn {
    height: 32px; padding: 0 11px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    white-space: nowrap; font-size: 9.5px; line-height: 1; text-decoration: none !important;
}
.ccrm-qtbar .btn > .fa { margin: 0; }
.ccrm-qtbar__status {
    flex: 1 1 auto; min-width: 0;   /* its own line before it is cut short */
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant);
}
.ccrm-qtbar__status .ccrm-chip { flex: 0 0 auto; margin: 0; }
.ccrm-qtbar__note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-qtbar__note b { color: var(--br-on-surface); }
.ccrm-qtbar__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }

.ccrm-qtbar__more { position: relative; }
.ccrm-qtbar__more > summary { list-style: none; cursor: pointer; width: 32px; padding: 0; }
.ccrm-qtbar__more > summary::-webkit-details-marker { display: none; }
.ccrm-qtbar__more[open] > summary { border-color: var(--br-navy); color: var(--br-navy); }
.ccrm-qtbar__menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 6;
    min-width: 220px; padding: 6px;
    display: flex; flex-direction: column;
    background: var(--br-surface-lowest); border: 1px solid var(--br-hairline);
    border-radius: 12px !important; box-shadow: var(--br-shadow-md);
}
.ccrm-qtbar__menu button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 12px; border: 0; background: none; border-radius: 8px !important;
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface);
    text-align: left; cursor: pointer;
}
.ccrm-qtbar__menu button:hover, .ccrm-qtbar__menu button:focus-visible { background: var(--br-surface-low); outline: none; }
.ccrm-qtbar__menu button .fa { width: 14px; text-align: center; color: var(--br-on-surface-variant); }
.ccrm-qtbar__menu button.is-danger, .ccrm-qtbar__menu button.is-danger .fa { color: #b91c1c; }

/* the notices under the bar line up with the sheet */
body.ccrm-qtdoc .ccrm-qtdoc__issued { width: var(--ccrm-a4-sheet); max-width: none; box-sizing: border-box; }

/* a narrow card or a phone: the state (beside Branch, on the full page) on one
   line, the buttons share the lines below. The bar scrolls away with the page
   here - the sheet is scaled to the screen, so there is little to scroll past,
   and a bar this tall would hold a fifth of the screen. */
@media (max-width: 640px) {
    body.ccrm-rpt .ccrm-rpt__toolbar.ccrm-qtbar { position: static; border-bottom: 0; padding-top: 0; }
    .ccrm-qtbar__status { flex: 1 1 0; }
    .ccrm-qtbar__acts { width: 100%; margin-left: 0; }
    .ccrm-qtbar__acts > .btn { flex: 1 1 auto; }
}

/* the column switches sit in the bar like its other buttons */
.ccrm-qtbar .ccrm-docshow { padding: 2px; }
.ccrm-qtbar .ccrm-docshow__opt { height: 26px; padding: 0 9px; font-size: 9.5px; }
.ccrm-qtbar .ccrm-docshow > em { display: none; }

/* the quotation bar: one row - the state on the left, the actions on the right */
body.ccrm-rpt .ccrm-rpt__toolbar.ccrm-qtbar { flex-wrap: nowrap; }
.ccrm-qtbar__status { flex: 1 1 auto; }
.ccrm-qtbar__acts { flex: 0 0 auto; flex-wrap: nowrap; }
/* its menu: a labelled pair of choices, a rule, then the rarer actions */
.ccrm-qtbar__mh { display: block; padding: 7px 12px 3px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-qtbar__menu button.is-radio .fa { visibility: hidden; color: var(--br-navy); }
.ccrm-qtbar__menu button.is-radio.is-on { color: var(--br-navy); }
.ccrm-qtbar__menu button.is-radio.is-on .fa { visibility: visible; }
.ccrm-qtbar__sep { display: block; height: 1px; margin: 5px 6px; background: var(--br-hairline); }
@media (max-width: 640px) {
    body.ccrm-rpt .ccrm-rpt__toolbar.ccrm-qtbar { flex-wrap: wrap; }
    .ccrm-qtbar__acts { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------------------
   The price list, on the quotation's sheet: letterhead, the PRICE LIST box,
   one rounded table per product category, then the note, terms, signatures
   and the address line closing the page.
   --------------------------------------------------------------------------- */
.ccrm-pld .ccrm-pl__line { margin: 16px 0 0; padding: 0 0 4px; border-bottom: 2px solid var(--br-navy); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-pld__table { margin-top: 10px; border-bottom: 1px solid #c9d1dc !important; border-radius: 12px !important; }
.ccrm-pld__table tbody tr:last-child td { border-bottom: 0; }
.ccrm-pld__cathead th { padding: 7px 10px !important; background: var(--br-navy) !important; color: #fff !important; border-bottom: 0 !important; }
.ccrm-pld__cathead th b { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ccrm-pld__cathead th span { float: right; font-size: 9.5px; font-weight: 600; opacity: .8; }
.ccrm-pld__sub td { padding: 4px 7px !important; background: #f4f6f9; font-size: 8.5px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--br-navy) !important; border-left: 0 !important; }
.ccrm-pld__table .c-code { width: 100px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--br-on-surface-variant); }
.ccrm-pld__table .c-use { width: 88px; }
.ccrm-pld__table .c-pack { width: 64px; text-align: right; white-space: nowrap; }
.ccrm-pld__table .c-pr { width: 76px; text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-pld__table th.c-pack, .ccrm-pld__table th.c-pr { text-align: right; }
.ccrm-pld__table .c-pr small { font-weight: 600; color: var(--br-on-surface-variant); margin-left: 2px; }
.ccrm-pld__note { margin-top: 12px; border-top: 1px solid #c9d1dc; border-radius: 10px !important; font-style: normal; font-weight: 600; font-size: 10.5px; }
.ccrm-pld .ccrm-qd__client .ccrm-pl__edit, .ccrm-pld .ccrm-qd__meta .ccrm-pl__edit { display: inline-block; min-width: 40px; }
@media print {
    .ccrm-pld .ccrm-pl__line, .ccrm-pld__sub { break-after: avoid; page-break-after: avoid; }
    .ccrm-pld__table thead { display: table-header-group; }   /* the category head repeats on the next page */
    .ccrm-pld__table tr { break-inside: avoid; page-break-inside: avoid; }
}
/* the price list: usage, pack and price sit in the middle of their cells */
.ccrm-pld__table th.c-use, .ccrm-pld__table td.c-use,
.ccrm-pld__table th.c-pack, .ccrm-pld__table td.c-pack,
.ccrm-pld__table th.c-pr, .ccrm-pld__table td.c-pr { text-align: center; }
.ccrm-pld__table tbody td { vertical-align: middle; }
/* the price list: the contact lines apart from the name and address; payment and minimum order in a box of their own */
.ccrm-pld__att { display: flex; flex-direction: column; gap: 1px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed #dde3ea; }
.ccrm-pld__terms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 8px; }
.ccrm-pld__terms > div { padding: 6px 11px 7px; }
.ccrm-pld__terms > div + div { border-left: 1px solid #c9d1dc; }
.ccrm-pld__terms h3 { margin: 0 0 2px; font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-pld__terms p { margin: 0; font-size: 10px; line-height: 1.45; color: var(--br-on-surface); }

/* ---------------------------------------------------------------------------
   Branch page, second row of tabs (Sales: follow-up | products, price lists |
   quotations, orders). Plain text tabs on a hairline, the open one underlined
   in navy: lighter than the pill row above it, so the two levels read apart.
   A short rule still marks the groups.
   --------------------------------------------------------------------------- */
.ccrm-tabs .ccrm-subtabs.nav-tabs {
    width: 100%; gap: 22px; margin-top: 14px; padding: 0 2px;
    background: transparent; border-radius: 0 !important;
    border-bottom: 1px solid var(--br-hairline);
}
.ccrm-tabs .ccrm-subtabs.nav-tabs > li > a {
    display: inline-flex; align-items: center;
    padding: 9px 0 10px !important; border-radius: 0 !important;
    font-size: 10.5px; letter-spacing: .07em; white-space: nowrap;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color .15s ease, box-shadow .15s ease;
}
.ccrm-tabs .ccrm-subtabs.nav-tabs > li > a:hover { box-shadow: inset 0 -2px 0 var(--br-outline-variant, #cbd9e8); }
.ccrm-tabs .ccrm-subtabs.nav-tabs > li.active > a,
.ccrm-tabs .ccrm-subtabs.nav-tabs > li.active > a:hover,
.ccrm-tabs .ccrm-subtabs.nav-tabs > li.active > a:focus {
    background: transparent !important; color: var(--br-navy) !important;
    box-shadow: inset 0 -2px 0 var(--br-navy);
}
.ccrm-tabs .ccrm-subtabs.nav-tabs > li > a .ccrm-tab__count {
    height: 18px; min-width: 18px; padding: 0 6px; margin-left: 7px;
    background: var(--br-surface-low); color: var(--br-on-surface-variant); letter-spacing: 0;
}
.ccrm-tabs .ccrm-subtabs.nav-tabs > li.active > a .ccrm-tab__count { background: var(--br-navy); color: #fff; }
.ccrm-tabs .ccrm-subtabs.nav-tabs > li.ccrm-subtabs__sep { flex: 0 0 1px; height: 14px; align-self: center; margin: 0 !important; }
@media (max-width: 767px) {
    .ccrm-tabs .ccrm-subtabs.nav-tabs.is-active { flex-wrap: nowrap; gap: 18px; padding: 0 2px; overflow-x: auto; }
    .ccrm-tabs .ccrm-subtabs.nav-tabs > li.ccrm-subtabs__sep { margin: 0 !important; }
}

/* Price lists and quotations of a branch: the orders' list, with a date column for a price list's validity */
.ccrm-sop--docs { margin-top: 0; }
.ccrm-sop__when { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 700; color: var(--br-on-surface); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ccrm-sop__when small { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-sop--docs .ccrm-sop__stage { min-width: 64px; text-align: center; }
.ccrm-sop--docs .ccrm-sop__acts { gap: 6px; }
@media (max-width: 640px) {
    .ccrm-sop--docs .ccrm-sop__row { flex-wrap: nowrap; align-items: flex-start; }
    .ccrm-sop--docs .ccrm-sop__acts { flex: 0 0 auto; padding: 10px 10px 0 0; }
    .ccrm-sop--docs .ccrm-sop__when { order: 3; margin-left: 18px; flex-direction: row; gap: 5px; align-items: baseline; }
}

/* a link in the document bar's menu reads like its buttons */
.ccrm-qtbar__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px !important; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface) !important; text-decoration: none !important; }
.ccrm-qtbar__menu a:hover, .ccrm-qtbar__menu a:focus-visible { background: var(--br-surface-low); outline: none; }
.ccrm-qtbar__menu a .fa { width: 14px; text-align: center; color: var(--br-on-surface-variant); }
.ccrm-qd__dimtxt { color: var(--br-on-surface-variant); font-weight: 500; }

/* ---------------------------------------------------------------------------
   The technical service report on the A4 sheet: the quotation's letterhead and
   box, the work carried out as one rounded table, photos three across, and the
   two signatures over their names.
   --------------------------------------------------------------------------- */
.ccrm-trd__acts .c-code { width: 66px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--br-on-surface-variant); }
.ccrm-trd__acts .c-disp { width: 182px; }
.ccrm-trd__acts .c-prod { width: 132px; }
.ccrm-trd__acts .c-test { width: 78px; text-align: center; }
.ccrm-trd__acts th.c-test { text-align: center; }
.ccrm-trd__acts tbody td { vertical-align: middle; }
.ccrm-trd__test { display: inline-block; max-width: 100%; padding: 2px 8px; border-radius: 999px !important; font-size: 9.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ccrm-trd__test.is-done { background: rgba(5, 150, 105, .12); color: #047857; }
.ccrm-trd__test.is-val { background: #eef1f5; color: var(--br-on-surface); }
.ccrm-trd__test.is-none { background: transparent; color: var(--br-on-surface-variant); font-weight: 600; }
.ccrm-trd__none { margin: 8px 0 0; padding: 12px; border: 1px dashed #c9d1dc; border-radius: 12px !important; text-align: center; font-size: 10.5px; color: var(--br-on-surface-variant); }
.ccrm-trd__photos h3 small { margin-left: 6px; font-size: 8.5px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--br-on-surface-variant); }
.ccrm-trd__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.ccrm-trd__grid figure { margin: 0; }
/* the whole photo, never cropped (portrait shots too), centred in a frame of one height */
.ccrm-trd__ph { display: flex; align-items: center; justify-content: center; height: 170px; border: 1px solid #c9d1dc; border-radius: 10px !important; background: #f4f6f9; overflow: hidden; }
.ccrm-trd__ph img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.ccrm-trd__grid figcaption { margin-top: 3px; font-size: 9px; line-height: 1.35; color: var(--br-on-surface-variant); }
.ccrm-trd__confirm { margin: 18px 0 0; font-size: 9px; line-height: 1.45; color: var(--br-on-surface-variant); }
.ccrm-trd__sign { margin-top: 8px; }
.ccrm-trd__sign > div { border-top: 0; padding-top: 0; }
.ccrm-trd__ink { display: flex; align-items: flex-end; justify-content: flex-start; height: 64px; margin: 4px 0 4px; border-bottom: 1px solid #c9d1dc; font-style: normal; }
.ccrm-trd__ink img { max-height: 60px; max-width: 220px; object-fit: contain; }
@media print {
    .ccrm-trd__grid figure, .ccrm-trd__sign, .ccrm-trd__acts tr { break-inside: avoid; page-break-inside: avoid; }
    .ccrm-trd .ccrm-pl__line, .ccrm-trd__confirm { break-after: avoid; page-break-after: avoid; }
    .ccrm-trd__acts thead { display: table-header-group; }
}

/* the technical report's work table, with some life: the visit at a glance in four tiles, the units
   grouped by model, a coloured edge and dot for how each was left, the code as a tag, light banding */
.ccrm-trd__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ccrm-trd__kpis > div { display: flex; align-items: baseline; gap: 7px; padding: 8px 11px; border: 1px solid #c9d1dc; border-radius: 12px !important; background: #f8fafc; }
.ccrm-trd__kpis b { font-size: 18px; font-weight: 800; line-height: 1; color: var(--br-navy); font-variant-numeric: tabular-nums; }
.ccrm-trd__kpis span { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-trd__kpis .is-ok { border-color: rgba(5, 150, 105, .35); background: rgba(5, 150, 105, .06); }
.ccrm-trd__kpis .is-ok b { color: #047857; }
.ccrm-trd__kpis .is-warn { border-color: rgba(217, 119, 6, .4); background: rgba(217, 119, 6, .07); }
.ccrm-trd__kpis .is-warn b { color: #b45309; }
.ccrm-trd__acts .c-code { width: 92px; }
.ccrm-trd__acts .c-prod { width: 150px; }
.ccrm-trd__acts .c-test { width: 86px; }
.ccrm-trd__model td { padding: 6px 9px !important; background: #eef3f9 !important; border-left: 0 !important; color: var(--br-navy) !important; }
.ccrm-trd__model .fa { margin-right: 7px; font-size: 10px; opacity: .7; }
.ccrm-trd__model b { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ccrm-trd__model span { float: right; font-size: 9px; font-weight: 700; color: var(--br-on-surface-variant); }
.ccrm-trd__acts tbody tr:not(.ccrm-trd__model):nth-child(even) td { background: #fafbfd; }
.ccrm-trd__acts tbody tr.is-ok td.c-code { box-shadow: inset 3px 0 0 #10b981; }
.ccrm-trd__acts tbody tr.is-warn td.c-code { box-shadow: inset 3px 0 0 #f59e0b; }
.ccrm-trd__acts tbody tr.is-note td.c-code { box-shadow: inset 3px 0 0 #cbd5e1; }
.ccrm-trd__acts tbody tr.is-warn td { background: rgba(245, 158, 11, .06) !important; }
.ccrm-trd__code { display: inline-block; padding: 2px 7px; border: 1px solid #d6dde7; border-radius: 6px !important; background: #fff; font-family: Consolas, Menlo, monospace; font-size: 10px; font-weight: 700; color: var(--br-navy); letter-spacing: .02em; }
.ccrm-trd__dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50% !important; background: #cbd5e1; vertical-align: middle; }
tr.is-ok .ccrm-trd__dot { background: #10b981; }
tr.is-warn .ccrm-trd__dot { background: #f59e0b; }
tr.is-warn .c-job { font-weight: 600; color: #92400e !important; }
.ccrm-trd__test .fa { font-size: 8.5px; margin-right: 1px; }

/* the technical report page: the team's comments under the sheet (screen only, never printed) */
.ccrm-trnotes { width: var(--ccrm-a4-sheet, 794px); max-width: 100%; box-sizing: border-box; margin: 18px auto 40px; padding: 16px 18px; border: 1px solid var(--br-hairline); border-radius: 18px !important; background: var(--br-surface-lowest, #fff); }
.ccrm-trnotes header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.ccrm-trnotes header b { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--br-navy); }
.ccrm-trnotes header b .fa { margin-right: 6px; }
.ccrm-trnotes header span { font-size: 11.5px; color: var(--br-on-surface-variant); }
.ccrm-trnotes__none { margin: 0 0 10px; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-trnotes__item { padding: 9px 0; border-top: 1px solid var(--br-outline-variant, #e3e8ef); }
.ccrm-trnotes__item > div { display: flex; align-items: baseline; gap: 10px; }
.ccrm-trnotes__item b { font-size: 12.5px; color: var(--br-on-surface); }
.ccrm-trnotes__item time { font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-trnotes__item p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--br-on-surface); }
.ccrm-trnotes__add { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; }
.ccrm-trnotes__add textarea { flex: 1 1 auto; min-height: 42px; padding: 9px 12px; border: 1px solid var(--br-hairline); border-radius: 12px !important; font: inherit; font-size: 12.5px; resize: vertical; background: #fff; }
.ccrm-trnotes__add textarea:focus { outline: none; border-color: var(--br-accent, #1d6fd1); }
.ccrm-trnotes__add .btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 640px) { .ccrm-trnotes__add { flex-direction: column; align-items: stretch; } }
@media print { .ccrm-trnotes { display: none !important; } }

/* ---------------------------------------------------------------------------
   Sales order / consignment request view: the workflow (track, decision,
   amendment) in a card above the A4 document - screen only - then the sheet.
   --------------------------------------------------------------------------- */
.ccrm-odflow { width: var(--ccrm-a4-sheet, 794px); max-width: 100%; box-sizing: border-box; margin: 0 auto 16px; padding: 14px 16px; border: 1px solid var(--br-hairline); border-radius: 18px !important; background: var(--br-surface-lowest, #fff); }
.ccrm-odflow .ccrm-so__steps { margin: 0; }
.ccrm-odflow .ccrm-flow__bar { margin: 12px 0 0; }
.ccrm-odflow .ccrm-alert { margin: 12px 0 0; }
.ccrm-odflow > :last-child { margin-bottom: 0; }
.ccrm-odd__lines .c-pack { width: 70px; text-align: right; white-space: nowrap; }
.ccrm-odd__lines th.c-pack { text-align: right; }
.ccrm-odd__lines .c-qty { width: 78px; }
.ccrm-odd__lines .c-pr { width: 84px; }
.ccrm-odd__lines .c-tot { width: 88px; }
.ccrm-odd__lines tbody tr:nth-child(even) td { background: #fafbfd; }
.ccrm-odd__none { padding: 14px !important; text-align: center; color: var(--br-on-surface-variant) !important; }
.ccrm-odd__warn { margin: 6px 0 0; font-size: 9.5px; color: #92400e; }
@media print { .ccrm-odflow { display: none !important; } .ccrm-odd__lines tr { break-inside: avoid; page-break-inside: avoid; } .ccrm-odd__lines thead { display: table-header-group; } }

/* ---------------------------------------------------------------------------
   Phones: a document page reads as a document, not as an A4 page shrunk to a
   third of its size. js/ccrm-a4.js puts body.is-reading on a narrow screen;
   Print and Save as PDF take it off first, so the paper and the PDF stay the
   exact A4 sheet. The boxes stack, text comes back to a readable size and the
   line tables scroll sideways inside the sheet.
   --------------------------------------------------------------------------- */
body.ccrm-rpt.is-reading { --ccrm-a4-sheet: calc(100% - 20px); }
body.is-reading .ccrm-rpt__paper.ccrm-qd { width: auto; margin: 0 10px 22px; padding: 18px 14px 14px; min-height: 0; border-radius: 16px !important; }
body.is-reading .ccrm-qd .ccrm-lh { gap: 10px; align-items: flex-start; }
body.is-reading .ccrm-qd .ccrm-lh__name { font-size: 21px; white-space: normal; }
body.is-reading .ccrm-qd .ccrm-lh__name small { font-size: 12px; }
body.is-reading .ccrm-qd .ccrm-lh__brand { height: 56px; border-radius: 9px !important; }
body.is-reading .ccrm-qd__title { font-size: 12px; letter-spacing: .12em; }
body.is-reading .ccrm-qd__grid { grid-template-columns: minmax(0, 1fr); }
body.is-reading .ccrm-qd__client { border-right: 0; border-bottom: 1px solid #c9d1dc; font-size: 12px; }
body.is-reading .ccrm-qd__cname { font-size: 12.5px; }
body.is-reading .ccrm-qd__meta > div { grid-template-columns: 92px minmax(0, 1fr); font-size: 12px; padding: 2px 11px; }
body.is-reading .ccrm-pld__terms { grid-template-columns: minmax(0, 1fr); }
body.is-reading .ccrm-pld__terms > div + div { border-left: 0; border-top: 1px solid #c9d1dc; }
body.is-reading .ccrm-pld__terms p, body.is-reading .ccrm-qd__text p { font-size: 12.5px; }
/* the lines become cards: the item and its total (or price, or test result) on
   the first line, the details - code, quantity, pack, usage, product - under it */
body.is-reading .ccrm-qd__scroll { margin-top: 10px; }
body.is-reading .ccrm-qd__lines { display: block; width: auto; margin-top: 10px; table-layout: auto; border-bottom: 1px solid #c9d1dc !important; border-radius: 12px !important; }
body.is-reading .ccrm-qd__scroll > .ccrm-qd__lines { margin-top: 0; }
body.is-reading .ccrm-qd__lines > thead, body.is-reading .ccrm-qd__lines > tbody { display: block; }
body.is-reading .ccrm-qd__lines > colgroup, body.is-reading .ccrm-qd__lines > thead > tr:not(.ccrm-pld__cathead) { display: none; }
body.is-reading .ccrm-qd__lines > thead > tr.ccrm-pld__cathead { display: block; }
body.is-reading .ccrm-qd__lines > thead > tr.ccrm-pld__cathead > th { display: block; }
body.is-reading .ccrm-qd__lines tr.ccrm-pld__sub, body.is-reading .ccrm-qd__lines tr.ccrm-trd__model { display: block; }
body.is-reading .ccrm-qd__lines tr.ccrm-pld__sub > td, body.is-reading .ccrm-qd__lines tr.ccrm-trd__model > td { display: block; }
body.is-reading .ccrm-qd__lines > tbody > tr:not(.ccrm-pld__sub):not(.ccrm-trd__model) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; padding: 9px 11px; border-bottom: 1px solid #e3e8ef; }
body.is-reading .ccrm-qd__lines > tbody > tr:last-child { border-bottom: 0; }
body.is-reading .ccrm-qd__lines > tbody > tr:not(.ccrm-pld__sub):not(.ccrm-trd__model) > td { order: 2; display: block; width: auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; text-align: left; font-size: 11px; color: var(--br-on-surface-variant); white-space: normal; }
body.is-reading .ccrm-qd__lines > tbody > tr > td:has(> .ccrm-qd__dim:only-child) { display: none; }
/* the item: the first line, room left for the figure on its right */
body.is-reading .ccrm-qd__lines > tbody > tr > td.c-desc, body.is-reading .ccrm-qd__lines > tbody > tr > td.c-job { order: 0 !important; flex: 1 1 calc(100% - 110px); min-width: 0; font-size: 12.5px !important; color: var(--br-on-surface) !important; }
body.is-reading .ccrm-qd__lines > tbody > tr > td.c-desc span { font-size: 11px; }
/* the figure: the line total; the price on a price list; the test on a technical report */
body.is-reading .ccrm-qd__lines > tbody > tr > td.c-tot, body.is-reading .ccrm-pld__table > tbody > tr > td.c-pr, body.is-reading .ccrm-trd__acts > tbody > tr > td.c-test { order: 1 !important; margin-left: auto; text-align: right !important; font-size: 13px !important; font-weight: 800; color: var(--br-on-surface) !important; }
body.is-reading .ccrm-qd__lines > tbody > tr > td.c-tot:has(> .ccrm-qd__dim:only-child) { display: block; }
/* the details, named */
body.is-reading .ccrm-qd__lines > tbody > tr > td.c-qty::before { content: 'Qty '; font-weight: 700; }
body.is-reading .ccrm-qd__lines > tbody > tr > td.c-pack::before { content: 'Pack '; font-weight: 700; }
body.is-reading .ccrm-qd__lines > tbody > tr > td.c-use::before { content: 'Usage '; font-weight: 700; }
body.is-reading .ccrm-qd__lines:not(.ccrm-pld__table) > tbody > tr > td.c-pr::before { content: 'Unit '; font-weight: 700; }
body.is-reading .ccrm-trd__acts > tbody > tr > td.c-prod::before { content: 'Product '; font-weight: 700; }
/* a technical report's colour moves from the code cell to the whole card */
body.is-reading .ccrm-trd__acts > tbody > tr.is-ok { box-shadow: inset 3px 0 0 #10b981; }
body.is-reading .ccrm-trd__acts > tbody > tr.is-warn { box-shadow: inset 3px 0 0 #f59e0b; background: rgba(245, 158, 11, .06); }
body.is-reading .ccrm-trd__acts > tbody > tr.is-note { box-shadow: inset 3px 0 0 #cbd5e1; }
body.is-reading .ccrm-qd__note { font-size: 11.5px; }
body.is-reading .ccrm-qd__sum { grid-template-columns: minmax(0, 1fr); }
body.is-reading .ccrm-qd__words { border-right: 0; border-bottom: 1px solid #c9d1dc; font-size: 12px; }
body.is-reading .ccrm-qd__tot { font-size: 12.5px; }
body.is-reading .ccrm-qd__sign { grid-template-columns: minmax(0, 1fr); gap: 18px; }
body.is-reading .ccrm-trd__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.is-reading .ccrm-trd__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.is-reading .ccrm-trd__ph { height: 140px; }
body.is-reading .ccrm-trd__confirm { font-size: 11px; }
body.is-reading .ccrm-lh__foot { font-size: 10.5px; }
body.is-reading .ccrm-odflow, body.is-reading .ccrm-trnotes { margin-left: 10px; margin-right: 10px; width: auto; padding: 12px; }

/* the bar on a phone: the state on one line, then one row of buttons - icons for
   the everyday ones, the main action keeps its words, the menu at the end */
@media (max-width: 640px) {
    body.ccrm-rpt .ccrm-rpt__toolbar.ccrm-qtbar { flex-wrap: wrap; gap: 8px; padding: 10px 10px 4px; }
    .ccrm-qtbar__status { flex: 1 1 100%; min-width: 0; }
    .ccrm-qtbar__acts { width: 100%; margin-left: 0; flex-wrap: nowrap; gap: 6px; }
    .ccrm-qtbar__acts > .btn { flex: 0 0 auto; height: 36px; min-width: 40px; padding: 0 12px !important; font-size: 0 !important; letter-spacing: 0; }
    .ccrm-qtbar__acts > .btn > .fa { font-size: 14px; }
    .ccrm-qtbar__acts > .btn.blue, .ccrm-qtbar__acts > .btn.green { flex: 1 1 auto; font-size: 10px !important; letter-spacing: .06em; }
    .ccrm-qtbar__acts > .btn.blue > .fa, .ccrm-qtbar__acts > .btn.green > .fa { margin-right: 6px; }
    .ccrm-qtbar__more { margin-left: auto; }
    .ccrm-qtbar__more > summary { width: 40px; height: 36px; }
}

/* the dashboard reads 10% smaller than the other pages: text, cards, charts and spacing alike
   (the top bar, the menu and the side cards keep their size) */
body.ccrm-dashpage .page-content { zoom: .9; }

/* Settings > Scheduled reports: one card per report with its recurrence */
.ccrm-sched { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 0 0 10px; border: 1px solid var(--br-hairline); border-radius: 16px !important; background: var(--br-surface-lowest, #fff); }
.ccrm-sched.is-off { opacity: .6; }
.ccrm-sched__icon { flex: 0 0 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 12px !important; background: var(--br-surface-low); color: var(--br-navy); font-size: 16px; }
.ccrm-sched__body { flex: 1 1 auto; min-width: 0; }
.ccrm-sched__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ccrm-sched__head b { font-size: 14px; color: var(--br-on-surface); }
.ccrm-sched__head .ccrm-chip { margin: 0; }
.ccrm-sched__on { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--br-on-surface); cursor: pointer; }
.ccrm-sched__desc { margin: 4px 0 10px; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-sched__when { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ccrm-sched__when label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-sched__when label[hidden] { display: none; }
.ccrm-sched__when .form-control { width: auto; min-width: 110px; height: 34px; }
.ccrm-sched__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 11.5px; color: var(--br-on-surface); }
.ccrm-sched__meta em { font-style: normal; font-weight: 700; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); margin-right: 6px; }
.ccrm-sched__warn { color: #b45309; }
.ccrm-sched__acts { flex: 0 0 auto; }
.ccrm-sched__cron { margin: 6px 0; padding: 8px 12px; border-radius: 10px !important; background: var(--br-surface-low); font-size: 12px; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 640px) { .ccrm-sched { flex-wrap: wrap; } .ccrm-sched__acts { width: 100%; } .ccrm-sched__acts .btn { width: 100%; } }

/* ==========================================================================
   Technical audit: board (audit/index), on-site form (audit/form), the A4
   sheet (audit/view, .ccrm-aud), the branch tab and the checklist settings.
   ========================================================================== */
/* tones shared by dots, scores, state chips */
.ccrm-aud__dot.is-ok { --stage: #059669; } .ccrm-aud__dot.is-warn { --stage: #d97706; } .ccrm-aud__dot.is-bad { --stage: #e11d48; } .ccrm-aud__dot.is-navy { --stage: var(--br-navy); } .ccrm-aud__dot.is-muted { --stage: #94a3b8; }
.ccrm-aud__dot { background: var(--stage) !important; }
.ccrm-aud__score { flex: 0 0 auto; display: inline-block; min-width: 52px; padding: 3px 10px; border-radius: 999px !important; font-size: 12px; font-weight: 700; text-align: center; background: #f1f5f9; color: #64748b; }
.ccrm-aud__score.is-ok { background: #d1fae5; color: #047857; } .ccrm-aud__score.is-warn { background: #fef3c7; color: #b45309; } .ccrm-aud__score.is-bad { background: #ffe4e6; color: #be123c; }
.ccrm-aud__st { flex: 0 0 auto; }
.ccrm-aud__st.is-bad { background: #ffe4e6 !important; color: #be123c !important; } .ccrm-aud__st.is-warn { background: #fef3c7 !important; color: #b45309 !important; }
.ccrm-aud__st.is-ok { background: #d1fae5 !important; color: #047857 !important; } .ccrm-aud__st.is-navy { background: var(--br-surface-low) !important; color: var(--br-navy) !important; }
.ccrm-aud__tag { display: inline-block; padding: 2px 8px; border-radius: 999px !important; background: #e0e7ff; color: #4338ca; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ccrm-aud__kind { display: inline-block; padding: 2px 9px; border-radius: 999px !important; font-size: 10.5px; font-weight: 700; white-space: nowrap; background: #f1f5f9; color: #475569; }
.ccrm-aud__kind.is-lead { background: #fde7ec; color: #be123c; } .ccrm-aud__kind.is-inactive { background: #fef3c7; color: #b45309; }
.ccrm-aud__kind.is-charts { background: #e0f2fe; color: #0369a1; } .ccrm-aud__kind.is-fix { background: #ffedd5; color: #c2410c; } .ccrm-aud__kind.is-register { background: #e0e7ff; color: #4338ca; }

/* board */
.ccrm-aud__kpi { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 4px 0 18px; }
.ccrm-aud__kpi > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px !important; background: #fff; border: 1px solid var(--br-hairline); box-shadow: var(--br-shadow); min-width: 0; }
.ccrm-aud__kpi b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--br-on-surface); line-height: 1.15; }
.ccrm-aud__kpi span { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-aud__kpi em { font-style: normal; font-size: 11px; color: var(--br-on-surface-variant); }
.ccrm-aud__kpi .is-bad b { color: #be123c; } .ccrm-aud__kpi .is-warn b { color: #b45309; } .ccrm-aud__kpi .is-ok b { color: #047857; } .ccrm-aud__kpi .is-navy b { color: var(--br-navy); }
.ccrm-aud__kpi .is-bad { border-color: #fecdd3; } .ccrm-aud__kpi .is-warn { border-color: #fde68a; }
.ccrm-aud__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.ccrm-aud__filter input { flex: 1 1 220px; max-width: 320px; }
.ccrm-aud__chips { display: contents; }
.ccrm-aud__brow .ccrm-sop__acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ccrm-aud__cycle { margin: 0 0 12px; }
.ccrm-aud__cycle label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-aud__cycle select { width: auto; min-width: 220px; }
@media (max-width: 1200px) { .ccrm-aud__kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .ccrm-aud__kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ccrm-aud__brow { flex-wrap: wrap; }
    .ccrm-aud__brow .ccrm-sop__acts { width: 100%; justify-content: flex-end; padding: 0 12px 10px; }
}

/* the A4 sheet */
.ccrm-aud__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 8px; font-size: 10.5px; color: #475569; }
.ccrm-aud__legend span { white-space: nowrap; }
.ccrm-aud__legend b { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-right: 3px; border-radius: 50% !important; background: var(--br-navy); color: #fff; font-size: 9.5px; }
.ccrm-aud__legend em, .ccrm-audu__chk em { font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #be123c; margin-left: 3px; }
.ccrm-aud__grid .c-chk { width: 30px; text-align: center !important; padding-left: 2px !important; padding-right: 2px !important; font-size: 13px; }
.ccrm-aud__grid th.c-chk { font-size: 10px; }
.ccrm-aud__grid .c-code { width: 92px; }
.ccrm-aud__grid .c-pr { width: 62px; text-align: right !important; font-weight: 700; }
.ccrm-aud__grid .c-desc span { display: block; font-size: 11px; color: #64748b; }
.ccrm-aud__grid .c-desc .ccrm-aud__note { color: #b45309; font-style: italic; }
.ccrm-aud__grid tr.is-missing td { background: #fff1f2; }
.ccrm-aud__nf { color: #be123c; font-weight: 700; font-size: 11px; text-align: center !important; letter-spacing: .04em; text-transform: uppercase; }
.ccrm-aud__actions p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0 0 5px; }
.ccrm-aud__actions em { font-style: normal; color: #64748b; font-size: 11.5px; }
body.is-reading .ccrm-aud__grid .c-chk { width: auto; }

/* on-site form: built for a phone first (thumb-sized buttons, one unit at a
   time, progress and "Next unit" always at hand in the bottom bar) */
body.ccrm-audf { background: var(--br-surface); -webkit-text-size-adjust: 100%; }
.ccrm-audf__wrap { max-width: 860px; margin: 0 auto; padding: 18px 16px 120px; display: flex; flex-direction: column; gap: 12px; }
.ccrm-audf__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px !important; background: #fff; border: 1px solid var(--br-hairline); box-shadow: var(--br-shadow); }
.ccrm-audf__back { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50% !important; background: var(--br-surface-low); color: var(--br-navy); font-size: 22px; text-decoration: none !important; }
.ccrm-audf__title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ccrm-audf__title span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-audf__title b { font-size: 15px; color: var(--br-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-audf__title small { font-size: 12px; color: var(--br-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-audf__saved { flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 600; color: #047857; }
.ccrm-audf__intro { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding: 14px 16px; border-radius: 20px !important; background: #fff; border: 1px solid var(--br-hairline); }
.ccrm-audf__intro label { flex: 1 1 240px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ccrm-audf__intro label span, .ccrm-audf__notes span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-audf__intro p { flex: 2 1 320px; margin: 0; font-size: 12px; color: var(--br-on-surface-variant); line-height: 1.5; }
.ccrm-audf__intro p i { color: var(--br-accent); }
.ccrm-audf .form-control { min-height: 44px; border-radius: 12px !important; }

/* one unit */
.ccrm-audu { border-radius: 20px !important; background: #fff; border: 1px solid var(--br-hairline); box-shadow: var(--br-shadow); overflow: hidden; scroll-margin-top: 12px; }
.ccrm-audu__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--br-surface-low); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.ccrm-audu__no { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50% !important; background: var(--br-navy); color: #fff; font-size: 12px; font-weight: 700; }
.ccrm-audu__id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ccrm-audu__id b { font-size: 13.5px; color: var(--br-on-surface); line-height: 1.3; }
.ccrm-audu__id > span { font-size: 11.5px; color: var(--br-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-audu__state { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px !important; background: #fff; border: 1px solid var(--br-hairline); font-size: 11px; font-weight: 700; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-audu__state:empty { display: none; }
.ccrm-audu__state.is-part { color: var(--br-navy); border-color: #bfd3ea; }
.ccrm-audu__state.is-ok { background: #d1fae5; border-color: #d1fae5; color: #047857; }
.ccrm-audu__state.is-warn { background: #fef3c7; border-color: #fef3c7; color: #b45309; }
.ccrm-audu__state.is-bad { background: #ffe4e6; border-color: #ffe4e6; color: #be123c; }
.ccrm-audu__chev { flex: 0 0 auto; width: 20px; text-align: center; font-size: 18px; color: var(--br-on-surface-variant); transition: transform .2s; }
.ccrm-audu.is-folded .ccrm-audu__chev { transform: rotate(-90deg); }
.ccrm-audu.is-folded .ccrm-audu__found, .ccrm-audu.is-folded .ccrm-audu__body { display: none; }
.ccrm-audu.is-folded .ccrm-audu__head { background: #fff; }
.ccrm-audu__found { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 14px 0; }
.ccrm-audu__found button { height: 40px; border: 1px solid var(--br-hairline); background: #fff; border-radius: 12px !important; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-audu__found button i { margin-right: 4px; }
.ccrm-audu__found button.is-on { background: var(--br-navy); border-color: var(--br-navy); color: #fff; }
.ccrm-audu__found button[data-found="0"].is-on { background: #be123c; border-color: #be123c; }
.ccrm-audu__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding: 10px 14px 14px; }
.ccrm-audu.is-missing .ccrm-audu__checks { display: none; }
.ccrm-audu.is-missing .ccrm-audu__body { grid-template-columns: minmax(0, 1fr); }
.ccrm-audu.is-missing { border-color: #fecdd3; }
.ccrm-audu.is-missing .ccrm-audu__head { background: #fff1f2; }
.ccrm-audu__checks { display: flex; flex-direction: column; }
.ccrm-audu__chk { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid #eef2f7; }
.ccrm-audu__chk > span { flex: 1 1 auto; min-width: 0; font-size: 13px; line-height: 1.3; color: var(--br-on-surface); }
.ccrm-audu__chk em { display: inline-block; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #be123c; margin-left: 3px; }
.ccrm-audu__yn { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.ccrm-audu__yn button { height: 40px; padding: 0; border: 1px solid var(--br-hairline); background: #fff; border-radius: 12px !important; font-size: 16px; font-weight: 700; line-height: 1; color: #94a3b8; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ccrm-audu__yn button.is-na { font-size: 10.5px; letter-spacing: .02em; }
.ccrm-audu__yn button.is-y.is-on { background: #059669; border-color: #059669; color: #fff; }
.ccrm-audu__yn button.is-n.is-on { background: #e11d48; border-color: #e11d48; color: #fff; }
.ccrm-audu__yn button.is-na.is-on { background: #64748b; border-color: #64748b; color: #fff; }
.ccrm-audu__allok { margin-top: 10px; height: 42px; border: 1px solid #a7f3d0; background: #ecfdf5; border-radius: 12px !important; font-size: 12.5px; font-weight: 600; color: #047857; }
.ccrm-audu__more { display: flex; flex-direction: column; gap: 10px; }
.ccrm-audu__photo { display: flex; align-items: center; gap: 12px; }
.ccrm-audu__cam { flex: 1 1 auto; margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px dashed #9fb6d1; border-radius: 12px !important; background: #f8fafc; font-size: 12.5px; font-weight: 600; color: var(--br-navy); cursor: pointer; }
.ccrm-audu__cam i { font-size: 16px; }
.ccrm-audu__thumb { position: relative; display: inline-block; flex: 0 0 auto; }
.ccrm-audu__thumb[hidden] { display: none; }
.ccrm-audu__thumb img { display: block; width: 72px; height: 54px; object-fit: cover; border-radius: 10px !important; border: 1px solid var(--br-hairline); }
.ccrm-audu__thumb button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 50% !important; background: #be123c; color: #fff; font-size: 14px; line-height: 18px; }
.ccrm-audu__fix summary, .ccrm-audf__add summary { cursor: pointer; padding: 6px 0; font-size: 12.5px; font-weight: 600; color: var(--br-accent); }
.ccrm-audu__fix[open] summary { margin-bottom: 6px; }
.ccrm-audu__fix .form-control + .form-control { margin-top: 8px; }

/* add a unit, finish */
.ccrm-audf__add { padding: 12px 16px; border-radius: 20px !important; background: #fff; border: 1px dashed var(--br-hairline); }
.ccrm-audf__addgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ccrm-audf__addgrid .btn { grid-column: 1 / -1; justify-self: start; }
.ccrm-audf__finish { scroll-margin-top: 12px; padding: 16px; border-radius: 20px !important; background: #fff; border: 1px solid var(--br-hairline); box-shadow: var(--br-shadow); display: flex; flex-direction: column; gap: 14px; }
.ccrm-audf__finish h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--br-navy); }
.ccrm-audf__score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ccrm-audf__score b { font-size: 26px; color: var(--br-navy); }
.ccrm-audf__score span { font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-audf__score em { font-style: normal; font-size: 12px; font-weight: 700; color: #be123c; }
.ccrm-audf__notes { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ccrm-audf .ccrm-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.ccrm-audf .ccrm-sig { position: relative; gap: 6px; }
.ccrm-audf .ccrm-sig__k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); padding-right: 70px; }
.ccrm-audf .ccrm-sig__k em { font-style: normal; color: #be123c; text-transform: none; letter-spacing: 0; font-weight: 600; }
.ccrm-audf .ccrm-sig__pad { height: 150px; border: 1.5px dashed #9fb6d1; border-radius: 14px !important; }
.ccrm-audf .ccrm-sig__clear { position: absolute; top: -4px; right: 0; height: 26px; padding: 0 12px; border: 1px solid var(--br-hairline); border-radius: 999px !important; background: #fff; font-size: 11px; font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-audf__acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ccrm-audf__acts .btn { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ccrm-audf__hint { margin: 0; font-size: 11.5px; color: var(--br-on-surface-variant); }
body.ccrm-audf.is-embedded .ccrm-audf__wrap { padding-top: 8px; }

/* the bottom bar: progress and the next unit to do */
.ccrm-audf__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.ccrm-audf__barin { max-width: 836px; margin: 0 auto; padding: 10px 12px 10px 16px; border-radius: 20px !important; background: rgba(255, 255, 255, .97); border: 1px solid var(--br-hairline); box-shadow: 0 10px 30px -8px rgba(15, 23, 42, .28); pointer-events: auto; }
.ccrm-audf__meter { height: 5px; margin-bottom: 8px; border-radius: 999px !important; background: #e2e8f0; overflow: hidden; }
.ccrm-audf__meter i { display: block; height: 100%; width: 0; border-radius: 999px !important; background: linear-gradient(90deg, var(--br-accent), #059669); transition: width .3s; }
.ccrm-audf__barrow { display: flex; align-items: center; gap: 12px; }
.ccrm-audf__prog { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.ccrm-audf__prog b { font-size: 16px; color: var(--br-navy); }
.ccrm-audf__prog span { font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-audf__prog em { display: block; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--br-on-surface-variant); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-audf__barrow .btn { flex: 0 0 auto; height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border-radius: 14px !important; }
.ccrm-audf__barrow .btn.is-finish { background: #059669 !important; border-color: #059669 !important; }

@media (max-width: 640px) {
    .ccrm-audf__wrap { padding: 10px 10px 120px; gap: 10px; }
    .ccrm-audf__head { padding: 10px 12px; gap: 10px; border-radius: 16px !important; }
    .ccrm-audf__intro { padding: 12px; border-radius: 16px !important; }
    .ccrm-audu, .ccrm-audf__finish, .ccrm-audf__add { border-radius: 16px !important; }
    .ccrm-audu__head { padding: 12px; gap: 8px; }
    .ccrm-audu__found { padding: 10px 12px 0; }
    .ccrm-audu__body { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 6px 12px 14px; }
    .ccrm-audu__yn { grid-template-columns: repeat(3, 46px); gap: 5px; }
    .ccrm-audu__yn button { height: 42px; }
    .ccrm-audu__allok { width: 100%; }
    .ccrm-audf__addgrid { grid-template-columns: minmax(0, 1fr); }
    .ccrm-audf__addgrid .btn { width: 100%; justify-self: stretch; height: 44px; }
    .ccrm-audf .ccrm-signs { grid-template-columns: minmax(0, 1fr); }
    .ccrm-audf__acts { flex-direction: column-reverse; align-items: stretch; }
    .ccrm-audf__acts .btn { width: 100%; }
    .ccrm-audf__acts #audCancel { background: transparent !important; border-color: transparent !important; color: #be123c !important; box-shadow: none !important; }
    /* 16px stops iPhone zooming into a field on focus */
    .ccrm-audf .form-control, .ccrm-audf textarea, .ccrm-audf select { font-size: 16px !important; }
}
@media (max-width: 360px) {
    .ccrm-audu__yn { grid-template-columns: repeat(3, 42px); }
    .ccrm-audu__chk > span { font-size: 12.5px; }
    .ccrm-audf__barrow .btn { padding: 0 14px; }
}

/* settings: the checklist editor */
.ccrm-audset { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.ccrm-audset__head, .ccrm-audset__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 70px minmax(0, 240px) 60px 34px; gap: 8px; align-items: center; }
.ccrm-audset__head { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); padding: 0 2px; }
.ccrm-audset__head span:nth-child(3), .ccrm-audset__head span:nth-child(5) { text-align: center; }
.ccrm-audset__row { padding: 6px; border-radius: 14px !important; background: var(--br-surface-low); }
.ccrm-audset__move { display: inline-flex; gap: 2px; }
.ccrm-audset__tog { margin: 0; display: flex; justify-content: center; }
.ccrm-audset__tog input { width: 17px; height: 17px; margin: 0; }
@media (max-width: 760px) {
    .ccrm-audset__head { display: none; }
    .ccrm-audset__row { grid-template-columns: 56px minmax(0, 1fr) 34px; }
}
.ccrm-aud__grid col.c-code { width: 92px; } .ccrm-aud__grid col.c-chk { width: 30px; } .ccrm-aud__grid col.c-pr { width: 62px; }
.ccrm-audf__add summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.ccrm-audf__add summary::-webkit-details-marker { display: none; }
.ccrm-audf__add summary i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50% !important; background: var(--br-surface-low); color: var(--br-accent); font-size: 12px; }
.ccrm-audf select.form-control { font-weight: 400 !important; }
/* audit board on a phone: figures, tabs and filters scroll sideways instead of stacking */
@media (max-width: 640px) {
    .ccrm-aud__kpi { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; margin: 0 -10px 14px; padding: 2px 10px 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .ccrm-aud__kpi::-webkit-scrollbar { display: none; }
    .ccrm-aud__kpi > div { flex: 0 0 132px; scroll-snap-align: start; padding: 10px 12px; border-radius: 16px !important; }
    .ccrm-aud__kpi b { font-size: 20px; }
    .ccrm-aud__kpi span { font-size: 9.5px; }
    .ccrm-aud__tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .ccrm-aud__tabs::-webkit-scrollbar { display: none; }
    .ccrm-aud__tabs > li { float: none !important; flex: 0 0 auto; }
    .ccrm-aud__tabs > li > a { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; white-space: nowrap; }
    .ccrm-aud__tabs > li > a .ccrm-tab__count { position: static !important; margin: 0 !important; }
    .ccrm-aud__filter input { flex: 0 0 100%; max-width: none; }
    .ccrm-aud__chips { display: flex; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .ccrm-aud__chips::-webkit-scrollbar { display: none; }
    .ccrm-aud__chips .ccrm-sop__chip { flex: 0 0 auto; }
    .ccrm-aud__filter input { font-size: 16px !important; }
}
/* audit assigning: who has it, row selection, the selection bar, the dialog, the branch tab form */
.ccrm-aud__who { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; padding: 2px 9px; border-radius: 999px !important; background: var(--br-surface-low); color: var(--br-navy); font-size: 11px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccrm-aud__who.is-late { background: #ffe4e6; color: #be123c; }
.ccrm-aud__brow .ccrm-sop__main { min-width: 0; }
.ccrm-aud__pick { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; align-self: stretch; margin: 0; cursor: pointer; }
.ccrm-aud__pick input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.ccrm-aud__brow.has-pick { display: flex; align-items: center; }
.ccrm-aud__brow.has-pick .ccrm-sop__hit { flex: 1 1 auto; min-width: 0; padding-left: 0; }
.ccrm-aud__selall { flex: 0 0 auto; }
.ccrm-aud__selbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1040; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px !important; background: var(--br-navy); color: #fff; box-shadow: 0 12px 30px -8px rgba(15, 23, 42, .45); }
.ccrm-aud__selbar[hidden] { display: none; }
.ccrm-aud__selbar span { font-size: 13px; white-space: nowrap; }
.ccrm-aud__selbar .btn { border-radius: 999px !important; height: 38px; }
.ccrm-aud__selbar .btn.default { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .4) !important; }
.ccrm-aud__selbar .btn.blue { background: #fff !important; color: var(--br-navy) !important; border-color: #fff !important; }
.ccrm-aud__modal .modal-content { border-radius: 22px !important; overflow: hidden; }
.ccrm-aud__modal .modal-title { font-weight: 700; color: var(--br-navy); }
.ccrm-aud__mfor { margin: 2px 0 0; font-size: 12.5px; color: var(--br-on-surface-variant); }
.ccrm-aud__modal .ccrm-frm__field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ccrm-aud__modal .form-control { min-height: 44px; border-radius: 12px !important; }
.ccrm-aud__modal .modal-footer .btn { height: 42px; padding: 0 18px; }
.ccrm-aud__assign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px !important; background: var(--br-surface-low); }
.ccrm-aud__asgk { flex: 1 1 100%; font-size: 12.5px; color: var(--br-on-surface); }
.ccrm-aud__asgk i { color: var(--br-accent); margin-right: 4px; }
.ccrm-aud__assign select { flex: 1 1 200px; width: auto; }
.ccrm-aud__assign input[type=date] { flex: 0 1 170px; width: auto; }
.ccrm-aud__assign .btn { height: 38px; }
@media (max-width: 640px) {
    .ccrm-aud__selbar { left: 10px; right: 10px; transform: none; justify-content: space-between; }
    .ccrm-aud__brow.has-pick { flex-wrap: wrap; }
    .ccrm-aud__brow.has-pick .ccrm-sop__hit { flex: 1 1 calc(100% - 40px); }
    .ccrm-aud__brow .ccrm-sop__acts .btn { flex: 1 1 auto; }
    .ccrm-aud__brow .ccrm-sop__acts .ccrm-eq__btn { flex: 0 0 auto; width: 38px; height: 38px; }
    .ccrm-aud__selall { width: 100%; }
    .ccrm-aud__modal .modal-dialog { margin: 0; position: fixed; left: 0; right: 0; bottom: 0; width: auto; }
    .ccrm-aud__modal .modal-content { border-radius: 22px 22px 0 0 !important; padding-bottom: env(safe-area-inset-bottom); }
    .ccrm-aud__modal .form-control { font-size: 16px !important; }
    .ccrm-aud__modal .modal-footer { display: flex; gap: 8px; }
    .ccrm-aud__modal .modal-footer .btn { flex: 1 1 0; margin: 0 !important; }
    .ccrm-aud__assign select, .ccrm-aud__assign input[type=date], .ccrm-aud__assign .btn { flex: 1 1 100%; font-size: 16px; }
    .ccrm-aud__assign .btn { height: 44px; }
}
@media (max-width: 640px) {
    .ccrm-aud__assign > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
    .ccrm-aud__assign select, .ccrm-aud__assign input[type=date] { width: 100% !important; }
    .ccrm-aud__cycle label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; }
    .ccrm-aud__cycle select { min-width: 0; width: 100% !important; font-size: 16px; }
}


/* ==========================================================================
   Main menu in the header row (computers): logo · modules · user, Settings,
   log out. sidebar.php moves the menu into #ccrmTopnav; phones and tablets
   keep it in the burger panel.
   ========================================================================== */
.ccrm-topnav { display: none; }
@media (min-width: 992px) {
    :root { --br-sidebar-w: 0px; }
    .page-sidebar-wrapper, .page-sidebar, .page-sidebar.navbar-collapse { display: none !important; }
    .page-header.navbar .page-header-inner { display: flex; align-items: center; height: var(--br-header-h); }
    .page-header.navbar .page-logo { float: none; flex: 0 0 auto; width: auto; }
    .page-header.navbar .top-menu { float: none; flex: 0 0 auto; margin-left: auto; }
    .ccrm-topnav { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 12px; }
    .ccrm-topnav .ccrm-erp { position: static; height: auto; min-height: 0; width: 100%; }
    .ccrm-topnav .ccrm-rail { flex-direction: row; align-items: center; gap: 4px; height: auto; min-height: 0; padding: 0; background: transparent; }
    .ccrm-topnav .ccrm-rail__item { flex: 0 0 auto; }
    .ccrm-topnav .ccrm-rail__spacer, .ccrm-topnav .ccrm-rail__item--settings, .ccrm-topnav .ccrm-rail__item.is-disabled { display: none; }
    .ccrm-topnav .ccrm-rail__btn { flex-direction: row; gap: 8px; width: auto; min-height: 40px; padding: 0 14px; font-size: 12.5px; letter-spacing: 0; border-radius: 12px !important; }
    .ccrm-topnav .ccrm-rail__btn > i { font-size: 14px; }
    .ccrm-topnav button.ccrm-rail__btn::after { content: "\f107"; font: normal normal normal 12px/1 FontAwesome; opacity: .6; margin-left: -2px; }
    /* the menus drop down from the header */
    .ccrm-topnav .ccrm-pop { top: 100%; left: 0; padding: 14px 0 0 0; }
    .ccrm-topnav .ccrm-pop--sub { top: -8px; left: 100%; padding: 0 0 0 6px; }
    .page-content-wrapper .page-content, body.page-content-white .page-content { margin-left: 0 !important; }
    .page-footer { margin-left: 0 !important; }
    /* Settings, between the user menu and log out: same round button as log out */
    .page-header.navbar .top-menu .navbar-nav > li.ccrm-settings-item.is-current > .dropdown-toggle { background: #fff !important; }
    .page-header.navbar .top-menu .navbar-nav > li.ccrm-settings-item.is-current > .dropdown-toggle > i { color: var(--br-navy) !important; }
}
@media (min-width: 992px) and (max-width: 1280px) {
    .ccrm-topnav { padding: 0 6px; }
    .ccrm-topnav .ccrm-rail { gap: 2px; }
    .ccrm-topnav .ccrm-rail__btn { padding: 0 9px; font-size: 12px; gap: 6px; }
}
@media (min-width: 992px) and (max-width: 1140px) {
    .ccrm-topnav .ccrm-rail__btn > span { display: none; }
    .ccrm-topnav .ccrm-rail__item.is-current > .ccrm-rail__btn > span { display: inline; }
}
/* the Settings button in the header keeps its Font Awesome sliders icon (the theme swaps the glyph of this kind of button) */
.page-header.navbar .top-menu .navbar-nav > li.ccrm-settings-item > .dropdown-toggle > i.fa-sliders:before { content: "\f1de" !important; font-family: FontAwesome !important; }
/* header round buttons (Settings, Log out): the theme adds top padding to this kind of button; centre the icon exactly */
.page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle { padding: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle > i { display: block; width: 1em; height: 1em; line-height: 1 !important; text-align: center; top: 0 !important; margin: 0 !important; }
/* header row: tighter spacing between the buttons */
@media (min-width: 992px) {
    .page-header.navbar .top-menu .navbar-nav > li { padding: 0 0 0 6px !important; margin: 0 !important; }
    .page-header.navbar .top-menu .navbar-nav > li > a { margin: 0 !important; }
    .page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle { width: 38px; min-width: 38px; height: 38px; }
    .ccrm-topnav .ccrm-rail { gap: 2px; }
    .ccrm-topnav .ccrm-rail__btn { padding: 0 11px; min-height: 36px; }
}
@media (min-width: 992px) {
    .page-header.navbar .top-menu { height: var(--br-header-h); display: flex; align-items: center; margin-top: 0 !important; }
    .page-header.navbar .top-menu .navbar-nav { display: flex; align-items: center; height: 100%; margin: 0 !important; float: none !important; }
    .page-header.navbar .top-menu .navbar-nav > li { float: none !important; display: flex; align-items: center; height: 100%; }
}
@media (min-width: 992px) { .page-header.navbar .top-menu .navbar-nav > li { height: auto !important; display: flex !important; align-items: center; } .page-header.navbar .top-menu .navbar-nav > li > a { top: 0 !important; } }
/* the logo artwork sits slightly above the middle of its image file; optical centring in the header */
@media (min-width: 992px) { .page-header.navbar .page-logo { height: var(--br-header-h); align-items: center; } .page-header.navbar .page-logo img { transform: translateY(2px); } }
/* header buttons: smaller, to suit the slimmer header */
@media (min-width: 992px) {
    .page-header.navbar .top-menu .navbar-nav > li.dropdown-user > .dropdown-toggle { height: 34px !important; min-height: 34px; padding: 0 12px 0 4px !important; gap: 7px; display: flex !important; align-items: center; }
    .page-header.navbar .top-menu .navbar-nav > li.dropdown-user > .dropdown-toggle .username { font-size: 12px; }
    .page-header.navbar .top-menu .ccrm-avatar { width: 26px !important; height: 26px !important; min-width: 26px; font-size: 11px; }
    .page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle { width: 34px !important; min-width: 34px !important; height: 34px !important; }
    .page-header.navbar .top-menu .navbar-nav > li.dropdown-quick-sidebar-toggler > .dropdown-toggle > i { font-size: 13px !important; }
}
/* breadcrumb bar: room between the chips and the line under them, and before the page below */
.page-bar { padding: 2px 0 12px !important; margin: 0 0 18px !important; }
.page-bar .page-toolbar { display: flex; align-items: center; gap: 8px; margin: 0 !important; }
/* accounts list: the account ID in the left badge, the account code next to the name in the status colour */
.ccrm-accounts .timeline > li > .timeline-item { padding-left: 66px; }
.ccrm-accounts .timeline > li > i.client-status-dot.ccrm-acc__id { width: auto !important; min-width: 38px; padding: 0 6px; display: inline-flex !important; align-items: center; justify-content: center; background: var(--br-surface-low) !important; color: var(--br-on-surface-variant) !important; border: 1px solid var(--br-hairline); font-family: inherit !important; font-style: normal; font-size: 10px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccrm-accounts .timeline > li > .timeline-item > .timeline-header { justify-content: flex-start; }
.ccrm-acc__name { flex: 0 1 auto; }
.ccrm-acc__spacer { flex: 1 1 auto; }
.ccrm-acc__serial { min-width: 0; flex: 0 0 auto; }
.ccrm-acc__serial.status-active { background: rgba(5, 150, 105, .1); border-color: rgba(5, 150, 105, .35); color: var(--br-st-active); }
.ccrm-acc__serial.status-inactive { background: rgba(225, 29, 72, .08); border-color: rgba(225, 29, 72, .3); color: var(--br-st-inactive); }
.ccrm-acc__serial.status-reengaged { background: rgba(249, 115, 22, .1); border-color: rgba(249, 115, 22, .35); color: var(--br-st-reengaged); }
.ccrm-acc__serial.status-closed { background: rgba(17, 24, 39, .07); border-color: rgba(17, 24, 39, .25); color: var(--br-st-closed); }
.ccrm-accounts .timeline > li > i.client-status-dot.ccrm-acc__id { right: auto !important; bottom: auto !important; height: 26px !important; line-height: 1 !important; box-sizing: border-box; }
/* accounts list: the serial in the left badge, coloured by status (replaces the type letter) */
.ccrm-accounts .timeline > li > .timeline-item { padding-left: 112px; }
.ccrm-accounts .timeline > li > i.client-status-dot.ccrm-acc__id { width: 84px !important; min-width: 84px; padding: 0 6px; font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace !important; font-size: 10.5px !important; letter-spacing: .02em; border-radius: 999px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccrm-accounts .timeline > li > i.ccrm-acc__id.status-active { background: rgba(5, 150, 105, .1) !important; border-color: rgba(5, 150, 105, .35); color: var(--br-st-active) !important; }
.ccrm-accounts .timeline > li > i.ccrm-acc__id.status-inactive { background: rgba(225, 29, 72, .08) !important; border-color: rgba(225, 29, 72, .3); color: var(--br-st-inactive) !important; }
.ccrm-accounts .timeline > li > i.ccrm-acc__id.status-reengaged { background: rgba(249, 115, 22, .1) !important; border-color: rgba(249, 115, 22, .35); color: var(--br-st-reengaged) !important; }
.ccrm-accounts .timeline > li > i.ccrm-acc__id.status-closed { background: rgba(17, 24, 39, .07) !important; border-color: rgba(17, 24, 39, .25); color: var(--br-st-closed) !important; }
.ccrm-accounts .timeline > li > i.ccrm-acc__id.is-empty { opacity: .5; }
.ccrm-acc__name { flex: 1 1 auto; }
/* serial badge: as wide as the longest serial in the list (clients/index.php sets --acc-serial-w) */
.ccrm-accounts .timeline > li > i.client-status-dot.ccrm-acc__id { width: var(--acc-serial-w, auto) !important; min-width: 0 !important; padding: 0 9px; box-sizing: border-box !important; overflow: visible; }
.ccrm-accounts .timeline > li > .timeline-item { padding-left: calc(var(--acc-serial-w, 64px) + 30px); }

/* ==========================================================================
   Accounts list, compact (desktop): Export / New account in the filter bar,
   tighter head, filters, tabs and rows.
   ========================================================================== */
.ccrm-toolbar__acts { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.ccrm-toolbar__acts .btn { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; white-space: nowrap; }
@media (min-width: 992px) {
    body.ccrm-accpage .page-content { padding-top: 12px !important; }
    body.ccrm-accpage .page-bar { padding-bottom: 8px !important; margin-bottom: 12px !important; min-height: 0; }
    body.ccrm-accpage .page-bar .page-breadcrumb { height: 30px; }
    body.ccrm-accpage .ccrm-page-head { margin: 0 0 10px !important; }
    body.ccrm-accpage .ccrm-page-head__title { font-size: 22px !important; margin: 0 !important; line-height: 1.15; }
    body.ccrm-accpage .ccrm-page-head__sub { font-size: 11.5px !important; margin: 2px 0 0 !important; }
    body.ccrm-accpage .ccrm-toolbar { padding: 7px 10px !important; margin-bottom: 10px !important; gap: 8px; flex-wrap: nowrap; align-items: center; }
    body.ccrm-accpage .ccrm-toolbar__search .form-control, body.ccrm-accpage .ccrm-toolbar__filters .form-control,
    body.ccrm-accpage .ccrm-toolbar__filters .select2-selection { height: 34px !important; min-height: 34px !important; font-size: 12px !important; }
    body.ccrm-accpage .ccrm-toolbar__filters .select2-selection__rendered { line-height: 32px !important; }
    body.ccrm-accpage .ccrm-toolbar__filters { gap: 6px; flex-wrap: nowrap; }
    body.ccrm-accpage .ccrm-acctabs { margin-bottom: 10px !important; gap: 8px; }
    body.ccrm-accpage .ccrm-acctab { padding: 5px 10px 5px 6px !important; min-height: 0 !important; gap: 8px; }
    body.ccrm-accpage .ccrm-acctab__ico { width: 26px !important; height: 26px !important; font-size: 11px; }
    body.ccrm-accpage .ccrm-acctab__name { font-size: 12px; }
    body.ccrm-accpage .ccrm-acctab__hint { font-size: 10px; }
    body.ccrm-accpage .ccrm-accounts .timeline > li { margin-bottom: 4px !important; }
    body.ccrm-accpage .ccrm-accounts .timeline > li > .timeline-item { padding-top: 7px !important; padding-bottom: 7px !important; border-radius: 12px !important; }
    body.ccrm-accpage .ccrm-accounts .timeline > li > i.client-status-dot { top: 7px !important; height: 24px !important; }
}
/* account names: regular weight, dark blue, Arial */
body.ccrm-accpage .ccrm-acc__name { font-family: Arial, Helvetica, sans-serif !important; font-weight: 400 !important; font-size: 13px; letter-spacing: 0; color: var(--br-navy) !important; }
/* Arial has no semi-bold weight (600 would render as full bold): a hairline stroke gives the in-between weight */
body.ccrm-accpage .ccrm-acc__name { -webkit-text-stroke: 0; }
/* the serial badge in Arial too */
body.ccrm-accpage .ccrm-accounts .timeline > li > i.client-status-dot.ccrm-acc__id { font-family: Arial, Helvetica, sans-serif !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0; }

/* accounts filter bar: one row, every control 34px tall with its text centred;
   the search takes the free width, the four filters share one width */
@media (min-width: 992px) {
    body.ccrm-accpage .ccrm-toolbar { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; gap: 8px !important; }
    body.ccrm-accpage .ccrm-toolbar__search { flex: 1 1 auto !important; min-width: 220px; max-width: none !important; height: 34px; display: flex; align-items: center; }
    body.ccrm-accpage .ccrm-toolbar__search input { height: 34px !important; }
    body.ccrm-accpage .ccrm-toolbar__filters { display: flex !important; align-items: center !important; flex: 0 0 auto !important; gap: 8px !important; margin: 0 !important; }
    body.ccrm-accpage .ccrm-toolbar__filters > .select2-container,
    body.ccrm-accpage .ccrm-toolbar__filters > select.form-control { flex: 0 0 160px !important; width: 160px !important; min-width: 0 !important; max-width: 160px !important; margin: 0 !important; }
    body.ccrm-accpage .ccrm-toolbar__filters .select2-container .selection { display: block; height: 34px; }
    body.ccrm-accpage .ccrm-toolbar__filters .select2-container .select2-selection--single,
    body.ccrm-accpage .ccrm-toolbar__filters > select.form-control {
        height: 34px !important; min-height: 34px !important; box-sizing: border-box !important; margin: 0 !important;
        border: 1px solid var(--br-hairline) !important; border-radius: 999px !important; background-color: #fff !important;
        font-family: inherit !important; font-size: 12px !important; font-weight: 600 !important; color: var(--br-on-surface) !important;
    }
    body.ccrm-accpage .ccrm-toolbar__filters .select2-selection__rendered { height: 32px !important; line-height: 32px !important; padding: 0 30px 0 14px !important; font-family: inherit !important; font-size: 12px !important; color: var(--br-on-surface) !important; }
    body.ccrm-accpage .ccrm-toolbar__filters .select2-selection__placeholder { color: var(--br-on-surface-variant) !important; font-weight: 500; }
    body.ccrm-accpage .ccrm-toolbar__filters .select2-selection__arrow { height: 32px !important; top: 0 !important; right: 10px !important; display: flex; align-items: center; }
    body.ccrm-accpage .ccrm-toolbar__filters > select.form-control { padding: 0 30px 0 14px !important; line-height: 32px !important; -webkit-appearance: none; appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 8px 5px !important; }
    body.ccrm-accpage .ccrm-toolbar__acts { flex: 0 0 auto; margin-left: 0; }
}
@media (min-width: 992px) and (max-width: 1400px) {
    body.ccrm-accpage .ccrm-toolbar__filters > .select2-container,
    body.ccrm-accpage .ccrm-toolbar__filters > select.form-control { flex-basis: 136px !important; width: 136px !important; max-width: 136px !important; }
}
@media (min-width: 992px) {
    body.ccrm-accpage .ccrm-toolbar__filters > .select2-container { height: 34px !important; align-self: center; vertical-align: middle !important; display: block !important; }
    body.ccrm-accpage .ccrm-toolbar__filters > .select2-container, body.ccrm-accpage .ccrm-toolbar__filters > select.form-control { flex-basis: 172px !important; width: 172px !important; max-width: 172px !important; }
    body.ccrm-accpage .ccrm-toolbar__filters .select2-selection__rendered { padding: 0 26px 0 14px !important; text-align: left !important; }
}
@media (min-width: 992px) and (max-width: 1400px) { body.ccrm-accpage .ccrm-toolbar__filters > .select2-container, body.ccrm-accpage .ccrm-toolbar__filters > select.form-control { flex-basis: 146px !important; width: 146px !important; max-width: 146px !important; } }

/* ==========================================================================
   Accounts list - the opened account ("A+"): a coloured edge and soft tint in
   the account's status colour, one action strip (status, summary, + Branch,
   Edit, Portal, delete, Manage branches), slim branch rows with coloured
   initials and the zone.
   ========================================================================== */
.ccrm-accounts li.ccrm-acc--status-active { --sc: #059669; --st: rgba(5, 150, 105, .055); }
.ccrm-accounts li.ccrm-acc--status-inactive { --sc: #e11d48; --st: rgba(225, 29, 72, .045); }
.ccrm-accounts li.ccrm-acc--status-reengaged { --sc: #f97316; --st: rgba(249, 115, 22, .055); }
.ccrm-accounts li.ccrm-acc--status-closed { --sc: #334155; --st: rgba(15, 23, 42, .04); }
.ccrm-accounts .timeline > li > .timeline-item { position: relative; overflow: visible; transition: border-color .15s, box-shadow .15s; }
.ccrm-accounts .timeline > li > .timeline-item:has(> .timeline-header.togledown) {
    border-color: color-mix(in srgb, var(--sc, #9fb6d1) 35%, #cbd9e8) !important;
    box-shadow: inset 4px 0 0 var(--sc, #9fb6d1), 0 8px 20px -14px rgba(0, 32, 58, .45) !important;
}
.ccrm-accounts .timeline > li > .timeline-item > .timeline-footer {
    margin: 7px -16px -7px calc(-1 * (var(--acc-serial-w, 64px) + 30px)) !important;
    padding: 9px 16px 12px calc(var(--acc-serial-w, 64px) + 30px) !important;
    border-top: 1px solid #e6edf5 !important; border-radius: 0 0 12px 12px !important;
    background: linear-gradient(180deg, var(--st, transparent), rgba(255, 255, 255, 0) 75%) !important;
}

/* the action strip */
.ccrm-accounts .ccrm-acc__actions { display: flex !important; align-items: center !important; flex-wrap: nowrap !important; gap: 6px !important; padding: 0 0 9px !important; margin: 0 !important; border: 0 !important; }
.ccrm-acc__sp { flex: 1 1 auto; }
.ccrm-acc__sum { margin-left: 4px; font-size: 11.5px; color: var(--br-on-surface-variant); white-space: nowrap; }
.ccrm-acc__sum b { color: var(--br-on-surface); font-weight: 700; }
.ccrm-acc__sum i { font-style: normal; margin: 0 3px; opacity: .5; }
.ccrm-accounts .client-status-wrap { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.ccrm-accounts .client-status-wrap::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--sc, #94a3b8); z-index: 1; pointer-events: none; animation: ccrmStPulse 2.2s infinite; }
@keyframes ccrmStPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sc, #94a3b8) 45%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ccrm-accounts .timeline-footer .client-status-dropdown {
    height: 28px !important; min-width: 0 !important; width: auto !important; margin: 0 !important; padding: 0 26px 0 24px !important;
    border-radius: 999px !important; border: 1px solid color-mix(in srgb, var(--sc, #94a3b8) 35%, transparent) !important; border-left-width: 1px !important;
    background-color: color-mix(in srgb, var(--sc, #94a3b8) 9%, #fff) !important; color: var(--sc) !important;
    font-family: inherit !important; font-size: 11px !important; font-weight: 600 !important; line-height: 26px !important; box-shadow: none !important; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 8px 5px !important;
}
.ccrm-accounts .client-status-wrap .ccrm-chip { padding-left: 24px; }
.ccrm-accb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px !important; border: 1px solid var(--br-hairline);
    background: #fff; color: var(--br-on-surface) !important; font-size: 11px; font-weight: 600; white-space: nowrap; text-decoration: none !important; cursor: pointer;
    transition: transform .12s, box-shadow .12s, border-color .12s, background .12s; }
.ccrm-accb > i { font-size: 12px; color: var(--c, var(--br-on-surface-variant)); }
.ccrm-accb:hover { transform: translateY(-1px); border-color: var(--c, #9fb6d1); box-shadow: 0 4px 10px -6px rgba(0, 32, 58, .4); }
.ccrm-accb--pri { background: var(--br-navy); border-color: var(--br-navy); color: #fff !important; }
.ccrm-accb--pri > i { color: #fff; }
.ccrm-accb--pri:hover { border-color: var(--br-navy); box-shadow: 0 6px 14px -6px rgba(0, 69, 124, .55); }
.ccrm-accb--icon { width: 28px; padding: 0; }
.ccrm-accb--del:hover { border-color: #e11d48; background: #fff1f2; }
.ccrm-accb--del:hover > i { color: #e11d48; }
.ccrm-accb__n { font-style: normal; display: inline-flex; min-width: 16px; height: 16px; padding: 0 4px; align-items: center; justify-content: center; border-radius: 999px !important; background: #7c3aed; color: #fff; font-size: 9.5px; font-weight: 700; }
.ccrm-accounts .ccrm-acc__manage { margin-left: 8px !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--br-accent) !important; white-space: nowrap; }
.ccrm-accounts .ccrm-acc__manage i { transition: transform .15s; }
.ccrm-accounts .ccrm-acc__manage:hover i { transform: translateX(3px); }

/* the branch rows */
.ccrm-accounts .ccrm-acc__branchlist { display: flex !important; flex-direction: column; gap: 3px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.ccrm-accounts .ccrm-acc__branchlabel { display: none !important; }
.ccrm-accounts .ccrm-acc__branchlist > .par {
    position: relative; display: flex !important; align-items: center; gap: 10px; min-height: 0 !important; margin: 0 !important; padding: 3px 8px 3px 6px !important;
    background: #fff !important; border: 1px solid #e6edf5 !important; border-left-width: 1px !important; border-radius: 10px !important; box-shadow: none !important;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.ccrm-accounts .ccrm-acc__branchlist > .par:hover { transform: translateX(2px); border-color: #b9cbe0 !important; box-shadow: 0 6px 14px -10px rgba(0, 32, 58, .45) !important; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .ccrm-br__ini { order: 1; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px !important; display: inline-flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 700; background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 55% 32%); }
.ccrm-accounts .ccrm-acc__branchlist > .par > a:not(.menu-btn) { order: 2; flex: 1 1 auto; min-width: 0; font-family: Arial, Helvetica, sans-serif !important; font-size: 12.5px !important; font-weight: 400 !important;
    color: var(--br-navy) !important; text-transform: none; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none !important; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .ccrm-chip--main { order: 3; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .ccrm-br__zone { order: 4; flex: 0 0 110px; display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px !important;
    background: #f1f5f9; color: #475569; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .ccrm-br__zone i { font-size: 10px; opacity: .7; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .pll11 { order: 5; position: static !important; float: none !important; margin: 0 !important; display: flex; align-items: center; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .container-m { order: 6; position: static !important; float: none !important; margin: 0 !important; transform: scale(.8); }
.ccrm-accounts .ccrm-acc__branchlist > .par.branch-inactive { background: #fafbfc !important; }
.ccrm-accounts .ccrm-acc__branchlist > .par.branch-inactive > a:not(.menu-btn) { color: #94a3b8 !important; }
.ccrm-accounts .ccrm-acc__branchlist > .par.branch-inactive > .ccrm-br__ini { filter: grayscale(1); opacity: .6; }
.ccrm-accounts .ccrm-acc__nobranch { margin: 0; padding: 6px 10px; border: 1px dashed #c3d3e6; border-radius: 10px !important; color: var(--br-on-surface-variant); font-size: 11.5px; }

/* branch row menu: a quiet ⋯ button opening a small list under it */
.ccrm-accounts .ccrm-acc__branchlist > .par > .container-m { transform: none !important; width: 26px; height: 26px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 8px !important; cursor: pointer; color: var(--br-on-surface-variant); transition: background .12s, color .12s; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .container-m > div { display: none !important; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .container-m::before { content: "\f141"; font: normal normal normal 14px/1 FontAwesome; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .container-m:hover,
.ccrm-accounts .ccrm-acc__branchlist > .par > .container-m.change { background: var(--br-surface-low); color: var(--br-navy); }
.ccrm-accounts .ccrm-acc__branchlist > .par > .over.show {
    position: absolute !important; top: calc(100% + 4px) !important; right: 4px !important; left: auto !important; bottom: auto !important; transform: none !important;
    display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 1px !important;
    width: 196px !important; min-width: 0 !important; height: auto !important; margin: 0 !important; padding: 5px !important;
    background: #fff !important; border: 1px solid var(--br-hairline) !important; border-radius: 12px !important;
    box-shadow: 0 14px 30px -12px rgba(0, 32, 58, .4) !important; z-index: 30; animation: ccrmBrmIn .12s ease-out;
}
@keyframes ccrmBrmIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.ccrm-accounts .par > .over .ccrm-brm {
    display: flex !important; align-items: center !important; gap: 9px !important; width: 100% !important; height: auto !important; min-height: 0 !important;
    margin: 0 !important; padding: 7px 10px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; box-shadow: none !important;
    color: var(--br-on-surface) !important; font-family: inherit !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
    text-align: left !important; white-space: nowrap; text-decoration: none !important; line-height: 1.3 !important;
}
.ccrm-accounts .par > .over .ccrm-brm > i { width: 14px; text-align: center; font-size: 12px; color: var(--br-on-surface-variant); }
.ccrm-accounts .par > .over .ccrm-brm:hover { background: var(--br-surface-low) !important; color: var(--br-navy) !important; }
.ccrm-accounts .par > .over .ccrm-brm:hover > i { color: var(--br-navy); }
.ccrm-accounts .par > .over .ccrm-brm.is-on > i { color: var(--br-navy); }
.ccrm-accounts .par > .over .ccrm-brm--del { margin-top: 3px !important; border-top: 1px solid #eef2f7 !important; border-radius: 0 0 8px 8px !important; padding-top: 8px !important; color: #be123c !important; }
.ccrm-accounts .par > .over .ccrm-brm--del > i { color: #be123c; }
.ccrm-accounts .par > .over .ccrm-brm--del:hover { background: #fff1f2 !important; color: #be123c !important; }
.ccrm-accounts .par > .over .ccrm-brm.ccrm-pin.is-on { background: transparent !important; color: var(--br-navy) !important; font-weight: 600 !important; }
.ccrm-accounts .par > .over .ccrm-brm.ccrm-pin.is-on:hover { background: var(--br-surface-low) !important; }
/* the open menu stays above the rows and accounts that follow */
.ccrm-accounts .timeline > li:has(.over.show), .ccrm-accounts .ccrm-acc__branchlist > .par:has(> .over.show) { position: relative; z-index: 60 !important; }
.ccrm-accounts .timeline > li:has(.over.show) > .timeline-item, .ccrm-accounts .timeline > li:has(.over.show) .timeline-footer { overflow: visible !important; }
.ccrm-accounts .ccrm-acc__branchlist > .par > .over:not(.show) { display: none !important; }

/* branch on/off: a small rounded switch instead of the theme's "ON | knob" box.
   The plugin's label is stretched over the whole switch (it is what toggles),
   the on/off texts are hidden and the knob is drawn by the wrapper. */
.ccrm-accounts .ccrm-acc__branchlist .pll11 { width: auto !important; overflow: visible !important; }
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch {
    position: relative !important; display: inline-block !important; width: 32px !important; height: 18px !important; min-width: 0 !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; overflow: hidden !important;
    background: #cbd5e1 !important; box-shadow: none !important; cursor: pointer; transition: background .18s ease;
}
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch.bootstrap-switch-on { background: #059669 !important; }
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50% !important; background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .3); transition: left .18s ease; pointer-events: none; z-index: 2;
}
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch.bootstrap-switch-on::after { left: 16px; }
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch .bootstrap-switch-container {
    position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; transform: none !important; display: block !important;
}
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch .bootstrap-switch-handle-on,
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch .bootstrap-switch-handle-off { display: none !important; }
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch .bootstrap-switch-label {
    position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; font-size: 0 !important; z-index: 3;
}
.ccrm-accounts .ccrm-acc__branchlist .bootstrap-switch input { display: none !important; }

/* opening an account: the footer is always laid out and its height runs
   0 -> auto through a grid-row transition (clients/index.php toggles .is-open);
   spacing lives on the inner box so nothing shows while it is closed */
.ccrm-accounts .timeline > li > .timeline-item > .timeline-footer {
    display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows .24s cubic-bezier(.2, .7, .2, 1), border-color .2s;
    padding: 0 !important; margin: 0 -16px 0 calc(-1 * (var(--acc-serial-w, 64px) + 30px)) !important;
    border-top: 1px solid transparent !important; height: auto !important; overflow: hidden;
}
.ccrm-accounts .timeline > li > .timeline-item > .timeline-footer.is-open { grid-template-rows: 1fr; border-top-color: #e6edf5 !important; }
.ccrm-accounts .timeline > li > .timeline-item > .timeline-footer.is-done { overflow: visible; }
.ccrm-acc__inner { min-height: 0; overflow: hidden; padding: 0 16px 0 calc(var(--acc-serial-w, 64px) + 30px); opacity: 0; transition: opacity .18s ease, padding .24s cubic-bezier(.2, .7, .2, 1); }
.timeline-footer.is-open > .ccrm-acc__inner { opacity: 1; padding-top: 9px; padding-bottom: 12px; margin-top: 7px; }
.timeline-footer.is-done > .ccrm-acc__inner { overflow: visible; }
.ccrm-accounts .timeline > li > .timeline-item > .timeline-footer.is-open { margin-top: 7px !important; margin-bottom: -7px !important; }
.ccrm-accounts .timeline > li > .timeline-item > .timeline-footer.is-open > .ccrm-acc__inner { margin-top: 0; }
/* loading the branches the first time: the arrow spins until they are in */
.timeline-header.is-loading .ccrm-acc__chev i::before { content: "\f110"; }
.timeline-header.is-loading .ccrm-acc__chev i { animation: fa-spin 1s infinite linear; }
/* header menu: no Home (the logo goes home); even spacing between the modules */
@media (min-width: 992px) {
    .ccrm-topnav .ccrm-rail__item[data-mod="home"] { display: none !important; }
    .ccrm-topnav { padding-left: 20px; }
    .ccrm-topnav .ccrm-rail { gap: 6px !important; }
    .ccrm-topnav .ccrm-rail__btn { padding: 0 12px !important; gap: 7px !important; }
    .ccrm-topnav button.ccrm-rail__btn::after { margin-left: 1px !important; }
}
/* header row lines up with the page content: same 32px side margins as .page-content */
@media (min-width: 992px) {
    .page-header.navbar .page-header-inner { padding: 0 32px !important; box-sizing: border-box; }
    .page-header.navbar .page-logo { padding-left: 0 !important; margin-left: 0 !important; }
    .page-header.navbar .top-menu { margin-right: 0 !important; padding-right: 0 !important; }
    .page-header.navbar .top-menu .navbar-nav > li:last-child { padding-right: 0 !important; margin-right: 0 !important; }
}
@media (min-width: 992px) { .page-header.navbar .top-menu .navbar-nav { padding-right: 0 !important; } }

/* ==========================================================================
   Header menus (computers): compact, and each group laid out as a column under
   its heading instead of a second fly-out. Pages without a group sit in the
   first column; a group inside a group (Sales > Reports) still flies out.
   ========================================================================== */
@media (min-width: 992px) {
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop { width: auto !important; }
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card {
        display: grid; grid-auto-flow: column; grid-template-rows: repeat(12, auto); grid-auto-columns: minmax(176px, auto);
        column-gap: 4px; row-gap: 0; width: max-content; padding: 8px !important; border-radius: 14px !important;
    }
    /* a group: one column, heading on top */
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp { grid-row: 1 / span 12; margin: 0; padding-left: 4px; border-left: 1px solid #eef2f7; }
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp:first-child { border-left: 0; padding-left: 0; }
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp > .ccrm-pop__grow {
        padding: 5px 10px 4px !important; min-height: 0; background: transparent !important; cursor: default; pointer-events: none;
        font-size: 9.5px !important; font-weight: 700 !important; letter-spacing: .1em; text-transform: uppercase; color: var(--br-accent) !important;
    }
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp > .ccrm-pop__grow > em,
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp > .ccrm-pop__grow > .ccrm-pop__chev,
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp > .ccrm-pop__grow > .ccrm-pop__gi { display: none !important; }
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp > .ccrm-pop--sub {
        display: block !important; position: static !important; width: auto !important; padding: 0 !important; margin: 0 !important;
    }
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card > .ccrm-pop__grp > .ccrm-pop--sub > .ccrm-pop__card {
        background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; animation: none !important;
    }
    /* compact rows */
    .ccrm-topnav .ccrm-pop__link, .ccrm-topnav .ccrm-pop__grp--nested > .ccrm-pop__grow { padding: 6px 10px !important; gap: 9px !important; font-size: 12px !important; border-radius: 9px !important; }
    .ccrm-topnav .ccrm-pop__link > i, .ccrm-topnav .ccrm-pop__grow > .ccrm-pop__gi { font-size: 11.5px !important; }
    .ccrm-topnav .ccrm-pop__grp--nested { margin-top: 0 !important; }
    /* a group inside a group keeps its fly-out, to the right of its row */
    .ccrm-topnav .ccrm-pop__grp--nested > .ccrm-pop--sub { top: -8px !important; left: 100% !important; width: 210px !important; }
}
/* pages outside any group get a "General" heading, so the first column lines up with the others */
@media (min-width: 992px) {
    .ccrm-topnav .ccrm-rail__item > .ccrm-pop > .ccrm-pop__card:has(> .ccrm-pop__link):has(> .ccrm-pop__grp)::before { content: "General"; grid-row: 1; padding: 5px 10px 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--br-accent); }
}
/* account tabs: title only, no description */
.ccrm-acctab__hint { display: none !important; }
/* page numbers on every printed / saved page (Chrome and Edge draw @page margin boxes) */
@page { @bottom-right { content: "Page " counter(page) " of " counter(pages); font-family: Poppins, Arial, sans-serif; font-size: 7.5pt; color: #64748b; } }

/* letterhead and address line on every printed page (js/ccrm-a4.js wraps the sheet in .ccrm-pf):
   on screen the wrapper is transparent, so the sheet lays out as before */
.ccrm-pf, .ccrm-pf > thead, .ccrm-pf > tbody, .ccrm-pf > thead > tr, .ccrm-pf > tbody > tr, .ccrm-pf > thead > tr > td, .ccrm-pf > tbody > tr > td { display: contents; }
.ccrm-pf > tfoot { display: none; }
@media print {
    .ccrm-pf { display: table !important; width: 100% !important; border-collapse: collapse !important; border: 0 !important; margin: 0 !important; table-layout: fixed !important; font-size: inherit !important; }
    .ccrm-pf > thead { display: table-header-group !important; }
    .ccrm-pf > tbody { display: table-row-group !important; }
    .ccrm-pf > tfoot { display: table-footer-group !important; }
    .ccrm-pf > thead > tr, .ccrm-pf > tbody > tr, .ccrm-pf > tfoot > tr { display: table-row !important; break-inside: auto !important; page-break-inside: auto !important; }
    .ccrm-pf > thead > tr > td, .ccrm-pf > tbody > tr > td, .ccrm-pf > tfoot > tr > td { display: table-cell !important; padding: 0 !important; border: 0 !important; background: none !important; vertical-align: top; }
    .ccrm-pf > thead > tr > td { padding-bottom: 4mm !important; }
    .ccrm-pf__space { height: 16mm; }
    .has-pf-foot > .ccrm-lh__foot { position: fixed !important; left: 0; right: 0; bottom: 0; margin: 0 !important; background: #fff; }
    body.ccrm-rpt .ccrm-qd { min-height: 0 !important; display: block !important; }
}
/* vector PDF export (js/ccrm-docpdf.js): the sheet is laid out as one plain column, the letterhead and the address line are drawn per page */
body.is-vexport .ccrm-qd { min-height: 0 !important; display: block !important; }
body.is-vexport .ccrm-lh__foot { margin-top: 0 !important; }
body.is-vexport .ccrm-rpt__paper, body.is-vexport .ccrm-pl__paper { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; max-width: none !important; box-sizing: border-box; }
/* a report as an A4 document (reports/view.php #rpxSheet): off screen, drawn into the PDF / print preview */
.ccrm-rpxsheet { position: absolute !important; left: -20000px !important; top: 0 !important; width: 703px; background: #fff; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; display: block !important; min-height: 0 !important; font-size: 10px; }
.ccrm-rpxsheet.is-wide { width: 1031px; }
@media print { .ccrm-rpxsheet { display: none !important; } }
.ccrm-rpxsheet__meta { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 7px 11px; }
.ccrm-rpxsheet__meta > div { display: flex; gap: 6px; font-size: 10px; line-height: 1.4; }
.ccrm-rpxsheet__meta dt { font-weight: 600; color: var(--br-on-surface-variant); }
.ccrm-rpxsheet__meta dd { margin: 0; font-weight: 700; color: var(--br-on-surface); }
.ccrm-rpxsheet__kpis { display: flex; gap: 8px; margin-top: 10px; }
.ccrm-rpxsheet__kpis > div { flex: 1 1 0; min-width: 0; padding: 7px 10px; border: 1px solid #c9d1dc; border-radius: 10px !important; background: #f8fafc; }
.ccrm-rpxsheet__kpis b { display: block; font-size: 15px; font-weight: 800; color: var(--br-navy); line-height: 1.2; }
.ccrm-rpxsheet__kpis span { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--br-on-surface-variant); }
.ccrm-rpxsheet__table { table-layout: auto !important; font-size: 9px !important; margin-top: 10px; }
.ccrm-rpxsheet__table th, .ccrm-rpxsheet__table td { padding: 4px 6px !important; vertical-align: top; }
.ccrm-rpxsheet__table td.is-num, .ccrm-rpxsheet__table td.is-money, .ccrm-rpxsheet__table td.is-pct, .ccrm-rpxsheet__table th.is-num, .ccrm-rpxsheet__table th.is-money, .ccrm-rpxsheet__table th.is-pct { text-align: right; white-space: nowrap; }
.ccrm-rpxsheet__table td.is-date { white-space: nowrap; }
.ccrm-rpxsheet__table tfoot td { font-weight: 800; background: #eef1f5; border-top: 1px solid #c9d1dc; }

/* ==========================================================================
   Main menu, computers: modules in the header, the module's groups in a white
   bar under it (#ccrmSubnav, built by includes/sidebar.php). Hover a module to
   see its bar, hover a group to open its pages.
   ========================================================================== */
@media (min-width: 992px) {
    :root { --br-subnav-h: 44px; }
    body.has-subnav.page-header-fixed { padding-top: calc(var(--br-header-h) + var(--br-subnav-h)) !important; }
    /* the header modules no longer drop their own menus */
    body.has-subnav .ccrm-topnav .ccrm-rail__item > .ccrm-pop { display: none !important; }
    body.has-subnav .ccrm-topnav button.ccrm-rail__btn::after { display: none; }
    body.has-subnav .ccrm-topnav .ccrm-rail__item.is-shown > .ccrm-rail__btn { background: rgba(255, 255, 255, .16); color: #fff; }
    .ccrm-subnav {
        position: fixed; top: var(--br-header-h); left: 0; right: 0; z-index: 9990; height: var(--br-subnav-h);
        display: flex; align-items: center; gap: 2px; padding: 0 32px;
        background: #fff; border-bottom: 1px solid var(--br-hairline); box-shadow: 0 6px 16px -14px rgba(0, 32, 58, .55);
        font-size: 12.5px;
    }
    .ccrm-subnav__sep { width: 1px; height: 18px; background: var(--br-hairline); margin: 0 6px; }
    .ccrm-subnav__grp { position: relative; height: 100%; display: flex; align-items: center; }
    .ccrm-subnav__btn, .ccrm-subnav__link {
        height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent;
        border-radius: 10px !important; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--br-on-surface-variant);
        cursor: pointer; text-decoration: none !important; white-space: nowrap;
    }
    .ccrm-subnav__btn > .fa { font-size: 11px; opacity: .6; transition: transform .15s; }
    .ccrm-subnav__link > .fa { font-size: 12px; color: var(--br-on-surface-variant); }
    .ccrm-subnav__btn:hover, .ccrm-subnav__grp.is-open > .ccrm-subnav__btn, .ccrm-subnav__link:hover { background: var(--br-surface-low); color: var(--br-navy); }
    .ccrm-subnav__grp.is-open > .ccrm-subnav__btn > .fa { transform: rotate(180deg); }
    /* the group you are in, and the page you are on, underlined in navy */
    .ccrm-subnav__grp.is-current > .ccrm-subnav__btn, .ccrm-subnav__link.is-current { color: var(--br-navy); box-shadow: inset 0 -2px 0 var(--br-navy); border-radius: 0 !important; }
    .ccrm-subnav__drop { display: none; position: absolute; top: calc(100% - 4px); left: 0; padding-top: 6px; z-index: 5; min-width: 230px; }
    .ccrm-subnav__grp.is-open > .ccrm-subnav__drop { display: block; }
    .ccrm-subnav__drop > .ccrm-pop__card { animation: ccrmPopIn .12s ease-out; padding: 6px !important; }
    .ccrm-subnav .ccrm-pop__link, .ccrm-subnav .ccrm-pop__grp--nested > .ccrm-pop__grow { padding: 7px 10px !important; gap: 9px !important; font-size: 12px !important; border-radius: 9px !important; }
    .ccrm-subnav .ccrm-pop__grp--nested { position: relative; }
    .ccrm-subnav .ccrm-pop__grp--nested > .ccrm-pop--sub { display: none; position: absolute; top: -8px; left: 100%; padding-left: 6px; width: 240px; }
    .ccrm-subnav .ccrm-pop__grp--nested:hover > .ccrm-pop--sub { display: block; }
    .ccrm-subnav__crumb { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; color: var(--br-on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
    .ccrm-subnav__crumb .fa { font-size: 10px; opacity: .55; }
    /* sticky bits of pages sit under the bar */
    body.has-subnav .ccrm-set__nav, body.has-subnav .ccrm-pt__side { top: calc(var(--br-header-h) + var(--br-subnav-h) + 16px); }
}
