/* Shared layout for CcOverlayCard (full-viewport modal-style blanket). */
.cc-ui-overlay-blanket {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: auto;
}

    /* CcPopup (UseModalTopLayer=false): fixed overlay below global #loadingContainer (~50010) */
    .cc-ui-overlay-blanket.cc-popup-fixed-layer {
        z-index: 45000;
    }

/* RHS explicit-null toggle (paired with CcExplicitNullRail): title on container, “NULL” as sub-caption */
.cc-explicit-null-rail {
    min-width: 2.5rem;
    max-width: 3.25rem;
}

.cc-explicit-null-caption {
    font-size: 0.68rem;
    line-height: 1.05;
    margin-top: 0.08rem;
    text-align: center;
}

.cc-make-null-ban {
    color: #f15635;
    line-height: 1;
}

    .cc-make-null-ban.active {
        opacity: 0.55;
    }

.cc-make-null-muted-input::placeholder {
    color: #9ca3af !important;
}

/* CcPopup: native dialog uses the top layer when opened with showModal() */
dialog.cc-ui-overlay-blanket {
    border: none;
    margin: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.45);
}

    /* Dialog box fills the viewport; dimming is on the dialog surface (avoid stacking rgba on ::backdrop). */
    dialog.cc-ui-overlay-blanket::backdrop {
        background-color: transparent;
    }

.cc-ui-overlay-dialog {
    max-width: 800px;
    width: 100%;
}

/* CcPopup: flex column shell so header / scrollable body / footer stay inside one panel (card-header is not a flex row like .modal-header). */
.cc-popup-dialog {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    max-width: min(96vw, 100%);
    max-height: min(90vh, calc(100vh - 2rem));
    margin: auto;
    box-sizing: border-box;
    background-color: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.22);
    border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.175));
    overflow: hidden;
    outline: none;
}

    /*popup-header cc-popup-header-row"><div class="cc-popup-header-inner*/

    .cc-popup-dialog .cc-popup-header-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 0 0 auto;
        gap: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        padding-top: 10px;
        padding-bottom: 5px;
        padding-left: 15px;
        padding-right: 12px;
        font-size: 18px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 0px;
        cursor: grab;
        touch-action: none;
    }

    /* Custom HeaderTemplate: put data-cc-popup-drag-handle on a bar element to enable dragging. */
    .cc-popup-dialog [data-cc-popup-drag-handle] {
        cursor: grab;
        touch-action: none;
    }

        .cc-popup-dialog .cc-popup-header-row.cc-popup-dragging,
        .cc-popup-dialog [data-cc-popup-drag-handle].cc-popup-dragging {
            cursor: grabbing;
            user-select: none;
        }

    /* CcPopup shell: header/body/footer when host site.scss is not loaded. */
    .cc-popup-dialog .cc-popup-header-row {
        background-color: #4fd431ce;
        color: #484748;
        border-bottom-color: rgba(72, 71, 72, 0.22);
    }

    .cc-popup-dialog .cc-popup-body-wrap {
        background-color: #76c3b766;
    }

    .cc-popup-dialog .cc-popup-footer {
        background-color: #65b2a6;
    }


    /* Host site.scss fixes all .card-header.cc-popup-header-row to 50px — allow title + close to fit. */
    .cc-popup-dialog .cc-popup-header-row.card-header {
        height: auto;
        min-height: 50px;
    }

    .cc-popup-dialog .cc-popup-header-inner {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cc-popup-dialog .cc-popup-close {
        flex: 0 0 auto;
        margin-inline-start: auto;
        margin-inline-end: 0;
    }

    .cc-popup-dialog .cc-popup-body-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .cc-popup-dialog .cc-popup-footer {
        flex: 0 0 auto;
        border-top: 1px solid var(--bs-border-color, #dee2e6);
        padding: 0.75rem 1rem;
        box-sizing: border-box;
    }

/* ——— CcAppNavMenu (ChatterCat main / admin nav) ——— */
/* Do not set display on .cc-app-nav alone — site.scss uses .app-nav-menu / .app-nav-menu-collapsed
   and a generic display:inline-block here can override .app-nav-menu-collapsed { display: none }. */
.cc-app-nav {
    background-color: transparent;
    vertical-align: middle;
}

/* Desktop: match legacy Dx horizontal bar; ensure list is visibly laid out */
nav.app-nav-menu.cc-app-nav.cc-nav-horizontal .cc-desktop-nav-root {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

nav.app-nav-menu.cc-app-nav.cc-nav-horizontal .cc-desktop-nav-li {
    display: inline-flex !important;
}

/* Mobile-only slot for burger (see __UserMenu wrapper) — kill duplicate user header on desktop */
@media (min-width: 901px) {
    .cc-mobile-nav-slot {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 900px) {
    .cc-mobile-nav-slot {
        display: inline-block !important;
        vertical-align: middle;
    }
}

.cc-nav-burger-btn {
    background: transparent;
    border: none;
    color: #fefefe;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    font-size: 24px;
}

.cc-app-nav-mobile {
    position: relative;
    display: inline-block;
}

.cc-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 6990;
    background: rgba(0, 0, 0, 0.2);
}

.cc-nav-mobile-panel {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 7010;
    min-width: min(401px, calc(100vw - 16px));
    max-height: min(80vh, 640px);
    overflow-y: auto;
    margin-top: 6px;
    padding: 10px 12px 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.35);
    text-align: left;
    text-transform: uppercase;
    /* Break out of div.page div.top-row { color: #FEFEFE } so children inherit dark text */
    color: #1a1a1a;
}

.cc-mobile-nav-userhdr {
    font-size: 15px;
    padding: 6px 4px 10px;
    color: #333;
    border-bottom: 1px solid #ddd;
    margin-bottom: 8px;
}

.cc-mobile-nav-heading {
    font-size: 18px;
    padding: 8px 4px 4px;
    color: #333;
}

.cc-mobile-expand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: #e8e8e8;
    color: #1a1a1a !important;
    text-transform: uppercase;
    font-size: 18px;
    padding: 10px 8px;
    margin-top: 4px;
    cursor: pointer;
    text-align: left;
}

    .cc-mobile-expand-row.is-open {
        background: #d8d8d8;
    }

    .cc-mobile-expand-row .cc-mobile-expand-label {
        color: #1a1a1a !important;
    }

    .cc-mobile-expand-row i.fas {
        color: #333 !important;
        opacity: 1;
    }

.cc-mobile-expand-label {
    flex: 1;
}

.cc-mobile-nav-link {
    display: block;
    padding: 8px 6px;
    color: #1a1a1a !important;
    text-decoration: none;
    font-size: 18px;
}

    .cc-mobile-nav-link:hover {
        background: #e8f6f6;
        color: #111 !important;
    }

.cc-mobile-subtext {
    display: block;
    font-size: 11px;
    text-transform: none;
    color: #555;
    margin-top: 2px;
}

.cc-mobile-nav-nested {
    padding-left: 8px;
    border-left: 2px solid #e0e0e0;
    margin: 4px 0 8px 4px;
}

.cc-mobile-nav-group + .cc-mobile-nav-link,
.cc-mobile-nav-link + .cc-mobile-nav-group {
    margin-top: 4px;
}

.menu-item-divider-top.cc-mobile-nav-link,
.cc-mobile-nav-link.menu-item-divider-top {
    border-top: 1px solid #ccc;
    margin-top: 8px;
    padding-top: 12px;
}

.menu-item-divider-bottom.cc-mobile-nav-link,
.cc-mobile-nav-link.menu-item-divider-bottom {
    border-bottom: 1px solid #ccc;
    margin-bottom: 8px;
    padding-bottom: 12px;
}

/* Desktop horizontal */
.cc-desktop-nav-root {
    gap: 0;
}

.cc-desktop-nav-li {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    margin-right: 15px;
    list-style: none;
}

.cc-desktop-nav-topbtn,
.cc-desktop-nav-toplink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #fefefe !important;
    text-decoration: none !important;
    font-family: museo300, Roboto, "Helvetica Neue", sans-serif;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: -2px;
    padding: 4px 6px;
    cursor: pointer;
    white-space: nowrap;
}

    .cc-desktop-nav-toplink:hover,
    .cc-desktop-nav-topbtn:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 4px;
    }

.cc-desktop-nav-icon {
    font-size: 0.85em;
    opacity: 0.95;
}

/* Hover only on real pointers: clicks leave :focus on buttons; :focus-within kept whole trees open after mouse left. */
.cc-nav-has-dropdown:hover > .cc-desktop-dropdown {
    display: block;
}

.cc-desktop-nav-root-force-close .cc-desktop-dropdown,
.cc-desktop-nav-root-force-close .cc-nav-flyout {
    display: none !important;
}

/* Touch / no-hover: keep keyboard/tap expansion via focus */
@media (hover: none) {
    .cc-nav-has-dropdown:focus-within > .cc-desktop-dropdown {
        display: block;
    }
}

.cc-desktop-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 240px;
    margin: 0;
    padding: 6px 0;
    background: #eaeaea;
    color: #222;
    box-shadow: 0 0 4px #2e3339;
    z-index: 7020;
}

/*
 * site.scss applies to ALL li/button under .app-nav-menu.cc-nav-horizontal:
 *   li { display: inline-block; }
 *   button { font-size: 26px !important; }
 * Do NOT set display on ul.cc-desktop-dropdown / ul.cc-nav-flyout here — that would
 * override display:none and leave every submenu open. Only fix li + button.
 */
nav.app-nav-menu.cc-app-nav ul.cc-desktop-dropdown > li.cc-nav-dd-li,
nav.app-nav-menu.cc-app-nav ul.cc-nav-flyout > li.cc-nav-dd-li {
    display: block !important;
    width: 100%;
    margin-right: 0 !important;
}

nav.app-nav-menu.cc-app-nav ul.cc-desktop-dropdown button,
nav.app-nav-menu.cc-app-nav ul.cc-nav-flyout button {
    font-size: 16px !important;
    letter-spacing: normal !important;
}

nav.app-nav-menu.cc-app-nav ul.cc-desktop-dropdown a,
nav.app-nav-menu.cc-app-nav ul.cc-nav-flyout a {
    letter-spacing: normal !important;
}

.cc-nav-dd-li {
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}

    .cc-nav-dd-li > a {
        display: block;
        padding: 8px 14px;
        color: #222;
        text-decoration: none;
        font-family: museo300, Roboto, "Helvetica Neue", sans-serif;
        text-transform: uppercase;
        font-size: 16px;
        font-stretch: semi-condensed;
    }

        .cc-nav-dd-li > a:hover {
            background: #d8d8d8;
            color: #111;
        }

.cc-nav-dd-flyout-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-family: museo300, Roboto, "Helvetica Neue", sans-serif;
    text-transform: uppercase;
    font-size: 16px;
    color: #222;
    cursor: pointer;
    text-align: left;
}

    .cc-nav-dd-flyout-trigger:hover {
        background: #d8d8d8;
    }

.cc-nav-flyout-cue {
    margin-left: 8px;
    opacity: 0.65;
}

.cc-nav-flyout {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin: 0;
    /* Overlap parent slightly — margin-left: 2px left a dead zone where :hover dropped and menus closed. */
    margin-left: -5px;
    min-width: 260px;
    padding: 6px 0;
    padding-left: 5px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
    z-index: 7030;
}

.cc-nav-has-flyout:hover > .cc-nav-flyout {
    display: block;
}

@media (hover: none) {
    .cc-nav-has-flyout:focus-within > .cc-nav-flyout {
        display: block;
    }
}

.cc-nav-dd-li.menu-item-divider-top {
    border-top: 1px solid #bbb;
    margin-top: 6px;
    padding-top: 6px;
}

/* Desktop user icon dropdown (replaces DxMenu in header)
   Opens on hover / focus-within like CcAppNavMenu (no Bootstrap Dropdown JS). */
.cc-user-dd {
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.cc-user-dd-btn {
    background: transparent !important;
    border: none !important;
    color: #fefefe !important;
    box-shadow: none !important;
    padding: 4px 6px !important;
    font-size: inherit;
}

    .cc-user-dd-btn:focus,
    .cc-user-dd-btn:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }

.cc-user-dd-menu {
    min-width: 220px;
    text-transform: uppercase;
    font-family: museo300, Roboto, "Helvetica Neue", sans-serif;
    font-size: 16px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
    z-index: 7040;
    top: 100%;
    right: 0;
    left: auto;
    transform: none;
    margin-top: 0;
}

/* Hover only on real pointers; touch / no-hover uses :focus-within (same pattern as .cc-nav-has-dropdown). */
.only-show-in-desktop-size.cc-user-dd:hover > .dropdown-menu.cc-user-dd-menu {
    display: block;
}

@media (hover: none) {
    .only-show-in-desktop-size.cc-user-dd:focus-within > .dropdown-menu.cc-user-dd-menu {
        display: block;
    }
}

.cc-user-dd-item {
    color: #222 !important;
}

    .cc-user-dd-item:hover {
        background-color: #e8f6f6 !important;
        color: #111 !important;
    }

.cc-user-dd-org .org-menu-item-current-org {
    font-size: 10px;
    text-transform: none;
    color: #555;
}

/* CcDropDownButton: room for sort icon + chevron (avoids clipped / overflow border) */
button.cc-ddbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.28em;
    min-width: 3.35rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    box-sizing: border-box;
    line-height: 1.2;
}

    button.cc-ddbtn > i {
        flex-shrink: 0;
    }

/* explicit chevron (replaces Bootstrap .dropdown-toggle ::after for icon-only / outline buttons) */
.cc-ddbtn .cc-ddbtn-caret {
    font-size: 0.7em;
    margin-left: 0;
    opacity: 0.9;
    vertical-align: middle;
}

/* CcButton: space between leading icon and label (DxButton parity) */
.cc-btn-icon-leading {
    margin-right: 0.4em;
}

/* All CcButton roots: remove UA button chrome (thick black borders on Windows) */
button.cc-btn,
a.cc-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box;
    font: inherit;
    line-height: 1.4;
    vertical-align: middle;
}

    /* CcButtons without Bootstrap .btn (toolbar "New…", bare clicks): sensible default face */
    button.cc-btn:not([class~="btn"]):not(.btn-grid-cmd),
    a.cc-btn:not([class~="btn"]):not(.btn-grid-cmd) {
        border: 1px solid #b8b8b8;
        background-color: #fff;
        color: #222;
        padding: 0.375rem 0.75rem;
        border-radius: 0.25rem;
        cursor: pointer;
        text-decoration: none;
    }

        button.cc-btn:not([class~="btn"]):not(.btn-grid-cmd):disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }

        a.cc-btn:not([class~="btn"]):not(.btn-grid-cmd):hover {
            text-decoration: none;
            color: #222;
            background-color: #f5f5f5;
        }

/* Icon-only "+" above grids (right-floated narrow control) */
.grid-new-record-btn > button.cc-btn:not([class~="btn"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.125rem;
    min-height: 2.125rem;
    padding: 0.25rem 0.35rem;
}

/* Toolbar row above DxGrid: keep controls off the grid header border */
.grid-new-record-btn,
.grid-new-record-btn-left {
    margin-bottom: 6px;
}

.export-btn-outer {
    margin-bottom: 6px !important;
}


/* CcButton inside DxGrid: native <button> UA chrome (thick borders) + vertical alignment in cells */
button.btn-grid-cmd {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
    margin: 0 4px 0 0;
    border-radius: 3px;
    border: 1px solid transparent;
}

button.btn-grid-cmd,
a.btn-grid-cmd,
button.cmd-btn.btn-sm,
a.cmd-btn.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cc-cmd-icon-btn-width, 34px);
    height: var(--cc-cmd-icon-btn-height, 28px);
    min-width: var(--cc-cmd-icon-btn-width, 34px);
    min-height: var(--cc-cmd-icon-btn-height, 28px);
    padding: 0 !important;
}

    button.btn-grid-cmd > i:only-child,
    a.btn-grid-cmd > i:only-child,
    button.cmd-btn.btn-sm > i:only-child,
    a.cmd-btn.btn-sm > i:only-child {
        margin: 0;
        line-height: 1;
    }

    button.btn-grid-cmd:last-of-type {
        margin-right: 0;
    }

    button.btn-grid-cmd:focus {
        outline: none;
    }

    button.btn-grid-cmd:focus-visible {
        outline: 2px solid rgba(13, 110, 253, 0.45);
        outline-offset: 1px;
    }

    /* Edit / primary-ish; trash / save keep light face */
    button.btn-grid-cmd.btn-linky {
        border-color: transparent;
    }

    button.btn-grid-cmd:not(.btn-linky) {
        background-color: #fff;
        border: 1px solid #b8b8b8;
        color: #333;
    }

        button.btn-grid-cmd:not(.btn-linky):hover {
            background-color: #f2f2f2;
            border-color: #999;
        }

button.chatter-sort-btn {
    min-width: 48px;
}

    button.chatter-sort-btn i.fa-arrow-down-short-wide {
        position: absolute;
        left: 8px;
        top: 12px;
    }

    button.chatter-sort-btn i.fa-chevron-down {
        position: absolute;
        font-size: 13px;
        left: 28px;
        top: 13px;
    }

/* Center command controls in the row (UA table defaults often align to top) */
.cc-grid-table td.cc-grid-command-cell,
.cc-grid-table th.cc-grid-command-cell {
    vertical-align: middle !important;
}

/* --- CcTabs (Bootstrap nav-tabs; replaces prior tabs headers) --- */
/* Rail: caret buttons flank the scrollport so the native scrollbar sits between them. */
.cc-tabs-scroll-rail {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    gap: 0;
    box-sizing: border-box;
}

.cc-tabs-scroll-rail--bar-top {
    align-items: flex-start;
}

.cc-tabs-scroll-rail--bar-bottom {
    align-items: flex-end;
}

.cc-tabs-scroll-rail .cc-tabs-scroll {
    flex: 1 1 0;
    min-width: 0;
}

.cc-tabs-scroll-btn {
    flex: 0 0 18px;
    width: 28px;
    min-width: 28px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    background-color: rgba(0, 0, 0, 0.05);
    color: #555;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 3px;
    box-sizing: border-box;
}

    .cc-tabs-scroll-btn:hover:not(.disabled):not(:disabled) {
        background-color: rgba(0, 0, 0, 0.12);
        color: #222;
    }

    .cc-tabs-scroll-btn.disabled,
    .cc-tabs-scroll-btn:disabled {
        cursor: default;
        pointer-events: none;
    }

    .cc-tabs-scroll-btn i {
        font-size: 14px;
        pointer-events: none;
    }

/* Horizontal scroll when many tabs (no second-row wrap) */
.cc-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

    /* Native scrollbar is drawn at the bottom of the scrollport; flip Y so it sits above the tab row. */
    .cc-tabs-scroll.cc-tabs-scroll--bar-top {
        transform: scaleY(-1);
    }

        .cc-tabs-scroll.cc-tabs-scroll--bar-top > ul.nav.nav-tabs.cc-tabs {
            transform: scaleY(-1);
        }

    .cc-tabs-scroll::-webkit-scrollbar {
        height: 8px;
    }

    .cc-tabs-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 4px;
    }

/* .edit-body uses margin-top: -70px; keep tab strip above the teal header paint order */
.edit-body .cc-tabs-scroll-rail {
    position: relative;
    z-index: 550;
}

.edit-body ul.nav.nav-tabs.cc-tabs {
    align-items: flex-end;
}

/* site.scss sets li.nav-item { margin-right: 15px } globally (main nav); remove for tab strip */
ul.nav.nav-tabs.cc-tabs > li.nav-item {
    margin-right: 0 !important;
    margin-left: 0;
    flex-shrink: 0;
    width: auto;
}

/* site.scss fixes li at 40px; that leaves empty band under shorter inactive buttons */
.edit-body ul.nav.nav-tabs.cc-tabs > li.nav-item {
    height: auto !important;
}

/* Share one vertical border between neighbours (avoids double 1px “gutter”) */
ul.nav.nav-tabs.cc-tabs.chatter-tabs > li.nav-item:not(:first-child) .nav-link {
    margin-left: -1px;
}

/* <button class="nav-link"> needs resets; site.scss .edit-body ul.nav-tabs only styled <a> before */
ul.nav.nav-tabs.cc-tabs button.nav-link {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: auto;
    max-width: none;
    white-space: nowrap;
    text-align: center;
}

.edit-body ul.nav-tabs.cc-tabs li.nav-item button.nav-link {
    border-top: 1px solid #777;
    border-left: 1px solid #777;
    border-right: 1px solid #777;
    border-bottom: 1px solid #777 !important;
    position: relative;
}

    .edit-body ul.nav-tabs.cc-tabs li.nav-item button.nav-link:not(.active) {
        top: 0;
        border-bottom-color: transparent !important;
    }

    /* top: -8px (legacy anchor tabs) drew the active tab up and left a sliver above the panel */
    .edit-body ul.nav-tabs.cc-tabs li.nav-item button.nav-link.active {
        position: relative !important;
        top: 0;
        height: auto !important;
        padding: 12px 25px 8px 25px;
        border-bottom: none !important;
        font-weight: bold;
    }

ul.nav.nav-tabs.cc-tabs {
    background-color: transparent;
    border-bottom: 1px solid #777;
    flex-wrap: nowrap;
    gap: 0;
    column-gap: 0;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
}


    ul.nav.nav-tabs.cc-tabs .nav-item {
        margin-bottom: -1px;
    }

    ul.nav.nav-tabs.cc-tabs.chatter-tabs .nav-link {
        background-color: #d3d3d3;
        border: 1px solid gray;
        border-bottom-color: transparent;
        position: relative;
        top: 0;
        font-size: 11px;
        padding-top: 7px;
        padding-bottom: 3px;
        line-height: 14px;
        color: #333;
        white-space: nowrap;
    }

        ul.nav.nav-tabs.cc-tabs.chatter-tabs .nav-link:hover {
            color: #111;
        }

        ul.nav.nav-tabs.cc-tabs.chatter-tabs .nav-link.active {
            background-color: #fee !important;
            border-bottom-color: transparent !important;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            top: 0;
            font-size: 13px;
            font-weight: bold;
            padding: 9px 25px;
            z-index: 600;
            color: #000 !important;
            line-height: 16px;
            white-space: nowrap;
        }

ul.cc-tabs.cc-tabs-lg button.nav-link.active {
    font-size: 16px !important;
}

/* Tab strip above panel; active ear overlaps top border */
.tabs-outer .cc-tabs-scroll-rail {
    position: relative;
    z-index: 2;
}

    .tabs-outer .cc-tabs-scroll-rail .cc-tabs-scroll {
        overflow: visible;
    }

ul.nav.nav-tabs.cc-tabs.tabs-inner {
    background-color: transparent;
    border: none;
    padding-left: 10px;
}

    ul.nav.nav-tabs.cc-tabs.tabs-inner .nav-link {
        margin-left: 1px;
        border: 1px solid #484748 !important;
        border-radius: 0;
        position: relative;
        top: 12px;
        color: #777 !important;
        background-color: transparent;
        white-space: nowrap;
        overflow: hidden;
        z-index: 1;
        border-bottom: 0 !important;
        height: 32px;
        padding-top: 6px;
        font-size: 13px;
    }

        ul.nav.nav-tabs.cc-tabs.tabs-inner .nav-link:hover {
            color: #484748 !important;
        }

        ul.nav.nav-tabs.cc-tabs.tabs-inner .nav-link.active {
            background-color: #f7f7f8 !important;
            top: -1px !important;
            height: 46px;
            color: #484748 !important;
            font-size: 16px;
            padding-left: 24px;
            padding-right: 24px;
            position: relative;
            z-index: 20;
            /* Cover the panel’s 1px top border only under the active ear (full border stays on .tabs-context) */
            border-bottom: 1px solid #f7f7f8 !important;
            margin-bottom: -1px;
            padding-bottom: 1px;
            box-sizing: border-box;
        }

ul.nav.nav-tabs.cc-tabs.cc-tabs-lg .nav-link {
    font-size: inherit;
}

/* CcQuickSearchCombo: overlay list under input (site.scss still styles .quick-search-results-dropdown) */
.cc-quick-search-combo {
    overflow: visible;
}

    /* Panel chrome: also match when the list is reparented to <dialog> (CcPopup) — it is no longer under .cc-quick-search-combo. */
    .cc-quick-search-combo .cc-quick-search-dd,
    dialog .cc-quick-search-dd {
        /* position/left/top often overridden by chatter-controls.js (fixed) so Dx form overflow cannot clip */
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 31050;
        margin-top: 2px;
        min-width: 200px;
        max-height: min(320px, 70vh);
        overflow-y: auto;
        background: #fff;
        border: 1px solid #ccc;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

.cc-quick-search-dd-item {
    cursor: pointer;
}

    .cc-quick-search-dd-item.cc-quick-search-dd-item-highlighted {
        background: rgba(13, 110, 253, 0.12);
        outline: 1px solid rgba(13, 110, 253, 0.35);
    }

.cc-grid-toolbar-slot {
    flex: 1 1 0;
    min-width: 200px;
}

/* CcGrid AllowNew: bar above toolbar/table; center when empty, left when rows exist */
.cc-grid-outer.cc-grid-allow-new .cc-grid-new-row-bar {
    width: 100%;
    margin-bottom: 6px;
}

.cc-grid-outer.cc-grid-allow-new.cc-grid-has-data .cc-grid-new-row-bar {
    display: flex;
    justify-content: flex-start;
}

.cc-grid-outer.cc-grid-allow-new.cc-grid-empty .cc-grid-new-row-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cc-grid-outer .cc-grid-empty-message {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.cc-grid-outer.cc-grid-allow-new .cc-grid-empty-message {
    margin: 2px 0 10px 0;
}

.cc-grid-outer .cc-grid-empty-message-cell {
    padding: 1rem;
}

/* Empty + AllowNew: hide grid chrome (Bootstrap .d-flex on toolbar needs !important) */
.cc-grid-outer.cc-grid-allow-new.cc-grid-empty .cc-grid-toolbar,
.cc-grid-outer.cc-grid-allow-new.cc-grid-empty .cc-grid-grouping-panel,
.cc-grid-outer.cc-grid-allow-new.cc-grid-empty .cc-grid-scroll,
.cc-grid-outer.cc-grid-allow-new.cc-grid-empty .cc-grid-bottom-pager {
    display: none !important;
}

.cc-grid-page-size-label {
    white-space: nowrap;
}

.cc-grid-page-select {
    width: auto;
    min-width: 3.25rem;
    max-width: 5rem;
}

.cc-grid-page-count {
    white-space: nowrap;
}

.cc-quick-search-x-dd {
    position: absolute;
    left: 0;
    top: 100%;
    width: 400px;
    max-width: 100%;
    z-index: 31050;
    margin-top: 2px;
}

ul.cc-tabs.cc-tabs-lg li.nav-item button {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
    padding-top: 8px !important;
    font-size: 12px !important;
}


.quick-search-results-dropdown .cc-quick-search-dd-item {
    font-size: 13px;
}
/* ——— CcComboBox + CcTextBox (and related inputs): shared field chrome ———
   Combo font is 2px smaller than Bootstrap’s default rem; text inputs match. */
:root {
    --cc-control-font-size: calc(var(--bs-body-font-size, 1rem) - 2px);
    --cc-control-border-color: var(--bs-border-color, #dee2e6);
    --cc-control-border-radius: var(--bs-border-radius, 0.375rem);
    /* CcDateEdit compact shell (override per page: .cc-page--foo { --cc-date-compact-outer-w: ... }); matches dollar / compact number shells at 140px */
    --cc-date-compact-outer-w: 140px;
    --cc-date-compact-trigger-w: 30px;
    --cc-date-compact-bg: #fff;
    --cc-date-trigger-hover-bg: rgba(0, 0, 0, 0.07);
    --cc-date-trigger-active-bg: rgba(0, 0, 0, 0.11);
    --cc-date-trigger-color: inherit;
    --cc-date-glyph-size: 1rem;
    --cc-cmd-icon-btn-width: 34px;
    --cc-cmd-icon-btn-height: 28px;
}

select.form-select.cc-select {
    font-size: var(--cc-control-font-size);
    line-height: 1.5;
}

    select.form-select.cc-select option {
        font-size: var(--cc-control-font-size);
    }

input.cc-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]),
textarea.cc-input {
    font-size: var(--cc-control-font-size);
    line-height: 1.5;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--cc-control-border-color);
    border-radius: var(--cc-control-border-radius);
    box-sizing: border-box;
}

/* site.scss sets input.form-control { line-height: 24px }; keep cc fields aligned with selects */
input.cc-input.form-control {
    line-height: 1.5;
}

input.cc-input:focus,
textarea.cc-input:focus,
select.form-select.cc-select:focus {
    border-color: var(--bs-primary, #86b7fe);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- CcGrid (legacy-style header / bordered body) --- */
/* Floated .export-btn-outer / .page-size-dropdown-outer sit in site layouts; clear so the table is not beside them. */
.cc-grid-outer {
    clear: both;
    width: 100%;
}

/* Horizontal scroll applies only to the table so toolbar, grouping panel, and bottom pager stay viewport-aligned. */
.cc-grid-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Group panel: flush above the table (not legacy .grouping-panel position:absolute) */
.cc-grid-grouping-panel {
    width: 100%;
    margin-bottom: 0;
    border: 1px dashed #adb5bd;
    border-bottom: none;
    background-color: #f1f3f5;
    border-radius: 0.25rem 0.25rem 0 0;
    min-height: 2.5rem;
    box-sizing: border-box;
}

.cc-grid-grouping-panel-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.45rem 0.65rem;
}

.cc-grid-grouping-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    user-select: none;
}

    .cc-grid-grouping-hint .field-grouping-info {
        opacity: 0.75;
    }

.cc-grid-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.35rem 0.15rem 0.5rem;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.cc-grid-group-pill-label {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-grid-group-pill-remove {
    border: none;
    background: transparent;
    color: #6c757d;
    line-height: 1;
    padding: 0 0.2rem;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 0.15rem;
}

    .cc-grid-group-pill-remove:hover {
        background: #e9ecef;
        color: #212529;
    }

/* Insert positions between pills + trailing area; highlight shows drop target (headers & pill reorder) */
.cc-grid-group-drop-slot {
    box-sizing: border-box;
    flex: 0 0 6px;
    min-width: 4px;
    min-height: 1.65rem;
    align-self: stretch;
    border-radius: 4px;
    transition: flex-basis 0.1s ease, min-width 0.1s ease, background-color 0.1s ease, box-shadow 0.1s ease;
}

.cc-grid-group-drop-slot--trailing {
    flex: 1 1 20px;
    min-width: 10px;
}

.cc-grid-group-drop-slot--active {
    flex: 0 0 12px;
    min-width: 10px;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.45));
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.65);
}

.cc-grid-group-pill[draggable="true"] {
    cursor: grab;
    user-select: none;
}

    .cc-grid-group-pill[draggable="true"]:active {
        cursor: grabbing;
    }

.cc-grid-group-pill.cc-grid-group-pill--dragging {
    opacity: 0.5;
}

.cc-grid-table thead th.cc-grid-th-group-draggable {
    cursor: grab;
    user-select: none;
}

    .cc-grid-table thead th.cc-grid-th-group-draggable:active {
        cursor: grabbing;
    }

    .cc-grid-table thead th.cc-grid-th-group-draggable .cc-grid-header-inner {
        cursor: inherit;
        user-select: none;
    }

.cc-grid-table {
    --cc-grid-header-bg: #333;
    --cc-grid-header-fg: #fff;
    --cc-grid-cell-border: #dee2e6;
}

    .cc-grid-table thead th {
        background-color: var(--cc-grid-header-bg) !important;
        color: var(--cc-grid-header-fg);
        font-weight: 600;
        font-size: 0.8125rem;
        border-color: rgba(255, 255, 255, 0.28) !important;
        vertical-align: middle;
        padding: 0.5rem 0.65rem;
    }

        .cc-grid-table thead th.cc-grid-th-sortable {
            cursor: pointer;
            user-select: none;
        }

            .cc-grid-table thead th.cc-grid-th-sortable:hover {
                filter: brightness(1.08);
            }

        .cc-grid-table thead th .cc-grid-header-inner {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex-wrap: wrap;
            width: 100%;
        }

        .cc-grid-table thead th.text-start .cc-grid-header-inner {
            justify-content: flex-start;
        }

        .cc-grid-table thead th.text-center .cc-grid-header-inner {
            justify-content: center;
        }

        .cc-grid-table thead th.text-end .cc-grid-header-inner {
            justify-content: flex-end;
        }

        .cc-grid-table thead th .cc-grid-header-caption {
            color: inherit;
            font-weight: inherit;
            pointer-events: none;
        }

        .cc-grid-table thead th .cc-grid-sort-glyph {
            flex-shrink: 0;
            font-size: 0.95em;
            opacity: 0.92;
            line-height: 1;
        }

        /* Fixed width from --cc-grid-group-expand-w (set on table when grouped) so nested chevrons do not reflow unrelated rows */
        .cc-grid-table thead th.cc-grid-group-expand-col,
        .cc-grid-table td.cc-grid-group-expand-cell {
            box-sizing: border-box;
            width: var(--cc-grid-group-expand-w, 2rem);
            min-width: var(--cc-grid-group-expand-w, 2rem);
            max-width: var(--cc-grid-group-expand-w, 2rem);
            padding-left: 0 !important;
            padding-right: 0 !important;
            vertical-align: middle;
        }

    /* Master / group band: solid grey; thick top edge only on root-level headers (separates major groups, not parent→child nesting) */
    .cc-grid-table tbody tr.cc-grid-group-header-row td {
        background-color: #dee2e6 !important;
        border: none !important;
        box-shadow: none !important;
        vertical-align: middle;
    }

    .cc-grid-table tbody tr.cc-grid-group-header-row.cc-grid-group-depth-0 td {
        border-top: 2px solid #495057 !important;
    }

    .cc-grid-table tbody tr.cc-grid-group-header-row:not(.cc-grid-group-depth-0) td {
        border-top: none !important;
    }

    .cc-grid-table tbody tr.cc-grid-group-header-row td.cc-grid-expand-col {
        background-color: #dee2e6 !important;
    }

    .cc-grid-table tbody tr.cc-grid-group-header-row td.cc-grid-group-header-cell {
        background-color: transparent !important;
    }

    /* Full-cell hit target: single button absolute-fills td; nested indent is padding-left on the button (border-box), not a padded wrapper */
    .cc-grid-table tbody tr.cc-grid-group-header-row td.cc-grid-group-expand-cell {
        position: relative;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 2rem;
    }

    .cc-grid-table .cc-grid-group-toggle {
        color: #212529 !important;
        text-decoration: none !important;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cc-grid-table tbody tr.cc-grid-group-header-row .cc-grid-group-toggle.cc-grid-group-toggle-fill-cell {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box !important;
        padding-top: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        border: none;
        border-radius: 0;
        z-index: 1;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    /* FA chevron draws on ::before on <i>; without this, hit-testing/hover can flicker between icon and button and LMC misses the handler. */
    .cc-grid-table tbody tr.cc-grid-group-header-row .cc-grid-group-toggle i {
        font-size: 1.05rem;
        pointer-events: none;
    }

    .cc-grid-table .cc-grid-group-toggle:hover {
        color: #000 !important;
        background-color: rgba(0, 0, 0, 0.06) !important;
    }

    .cc-grid-table .cc-grid-group-toggle:focus {
        box-shadow: none;
    }

    /* Full-cell hit target for detail row +/- (tr also has .ccgrid-row-has-detailrow when expander is shown) */
    .cc-grid-table tbody tr.ccgrid-row-has-detailrow td.cc-grid-detail-expand-cell {
        position: relative;
        padding: 0 !important;
        width: 2.5rem;
        min-width: 2.5rem;
        max-width: 2.5rem;
        vertical-align: middle;
    }

    .cc-grid-table tbody tr.ccgrid-row-has-detailrow .cc-grid-detail-toggle {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 0;
        line-height: 1;
        padding: 0 !important;
        box-shadow: none;
        text-decoration: none !important;
    }

        /* Same chevron treatment as Payruns group expander (cc-grid-group-toggle i on group header rows). */
        .cc-grid-table tbody tr.ccgrid-row-has-detailrow .cc-grid-detail-toggle i {
            font-size: 1.05rem;
            pointer-events: none;
        }

    /* Data rows: .cc-grid-data-row on every body data tr; .ccgrid-row-has-detailrow when a detail expander is shown.
   .cc-grid-alt-data-row on even visible indices when alternate striping is enabled. */
    .cc-grid-table tbody tr.cc-grid-data-row td {
        background-color: #fff !important;
        border: 1px solid #dee2e6 !important;
    }

        /* Command cells (e.g. icon buttons): tbody defaults to vertical-align:top — center actions with row checkboxes */
        .cc-grid-table tbody tr.cc-grid-data-row td.cc-grid-command-cell {
            vertical-align: middle;
        }

            .cc-grid-table tbody tr.cc-grid-data-row td.cc-grid-command-cell .btn-grid-cmd {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                line-height: 1;
            }

    .cc-grid-table tbody tr.cc-grid-data-row.cc-grid-alt-data-row td {
        /*background-color: rgba(224, 224, 224, 0.55) !important;*/
        background-color: rgba(255, 255, 255, 0.75) !important;
        border: 1px solid #dee2e6 !important;
    }

    /* Per-group and grand-total aggregates: horizontal rules only (no vertical cell borders) */
    .cc-grid-table tbody tr.cc-grid-group-aggregate-row td {
        background-color: #fff !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #dee2e6 !important;
        border-bottom: 1px solid #dee2e6 !important;
    }

    .cc-grid-table .cc-grid-aggregate-cell {
        font-size: 0.76rem;
    }

    .cc-grid-table tbody td {
        background-color: #fff;
        color: #212529;
        border-color: var(--cc-grid-cell-border);
        font-size: 0.8125rem;
        vertical-align: middle;
        padding: 0.5rem 0.65rem;
    }

    .cc-grid-table tfoot td {
        background-color: #f8f9fa;
        color: #212529;
        font-weight: 600;
        border-color: var(--cc-grid-cell-border);
        font-size: 0.8125rem;
        padding: 0.5rem 0.65rem;
    }

    .cc-grid-table tfoot tr.cc-grid-total-summary-row td {
        background-color: #fff !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid #dee2e6 !important;
        border-bottom: 1px solid #dee2e6 !important;
        font-weight: normal;
    }

    /* Group chevron column: no top/bottom borders (visual spacer before command column); skip group header row (keeps band top edge) */
    .cc-grid-table thead th.cc-grid-group-expand-col,
    .cc-grid-table tbody tr:not(.cc-grid-group-header-row) td.cc-grid-group-expand-cell,
    .cc-grid-table tfoot td.cc-grid-group-expand-cell {
        border-top: none !important;
        border-bottom: none !important;
    }

/* --- CcLoadingPanel (replaces prior loading panel) --- */
.cc-loading-panel-root {
    position: relative;
    min-width: 0;
}

.cc-loading-panel-overlay {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    pointer-events: none;
}

.cc-loading-panel-overlay--shade {
    background: rgba(255, 255, 255, 0.72);
}

.cc-loading-panel-overlay--block {
    pointer-events: auto;
}

.cc-loading-panel-children {
    position: relative;
    z-index: 0;
}

.cc-loading-panel-children--inert {
    pointer-events: none;
    user-select: none;
}

.cc-loading-panel-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.cc-loading-panel-spinner-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.cc-loading-panel-spinner-svg {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.cc-loading-panel-text {
    font-size: 0.875rem;
    color: #333;
}

/* ——— CcHtmlEditor (Phase 1 EditContext-backed WYSIWYG + HTML source toggle) ——— */
.cc-html-editor-shell {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cc-control-border-color, #dee2e6);
    border-radius: var(--cc-control-border-radius, 0.375rem);
    background-color: #fff;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.cc-html-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-bottom: 1px solid var(--cc-control-border-color, #dee2e6);
    background-color: #f6f7f9;
    flex: 0 0 auto;
}

.cc-html-editor-toolbar__btn {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
    color: #212529;
    min-width: 28px;
    min-height: 26px;
}

    .cc-html-editor-toolbar__btn:hover:not(:disabled) {
        background-color: #e9ecef;
        border-color: #dee2e6;
    }

    .cc-html-editor-toolbar__btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .cc-html-editor-toolbar__btn.is-active {
        background-color: #e2e6ea;
        border-color: #adb5bd;
    }

.cc-html-editor-toolbar__btn--bold strong {
    font-weight: 700;
}

.cc-html-editor-toolbar__btn--toggle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: auto;
}

.cc-html-editor-toolbar__sep {
    display: inline-block;
    width: 1px;
    height: 18px;
    background-color: #dee2e6;
    margin: 0 4px;
}

.cc-html-editor-toolbar__font {
    appearance: auto;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 2px 22px 2px 6px;
    font-size: 0.8125rem;
    line-height: 1.4;
    min-height: 26px;
    max-width: 160px;
    cursor: pointer;
    color: #212529;
}

    .cc-html-editor-toolbar__font:hover:not(:disabled) {
        background-color: #f6f7f9;
    }

    .cc-html-editor-toolbar__font:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .cc-html-editor-toolbar__font:focus {
        outline: 2px solid var(--bs-primary, #86b7fe);
        outline-offset: 1px;
    }

.cc-html-editor-toolbar__vars {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cc-html-editor-toolbar__btn--vars {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    padding-left: 8px;
    padding-right: 8px;
}

.cc-html-editor-vars-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    z-index: 1200;
    min-width: 220px;
    max-width: 320px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--cc-control-border-color, #dee2e6);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cc-html-editor-vars-panel__chip {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    margin: 2px 0;
    border-radius: 6px;
    border: 1px solid #e2e6ea;
    background: #f8f9fa;
    cursor: grab;
    user-select: none;
    font-size: 0.8125rem;
}

    .cc-html-editor-vars-panel__chip:hover {
        background: #eef2f6;
        border-color: #ced4da;
    }

    .cc-html-editor-vars-panel__chip:active {
        cursor: grabbing;
    }

.cc-html-editor-vars-panel__chip-label {
    font-weight: 500;
    color: #212529;
}

.cc-html-editor-vars-panel__chip-token {
    font-size: 0.72rem;
    color: #6c757d;
    white-space: nowrap;
}

/* CcTextBox / CcMemo — RHS variable insert rail (plain {{NAME}} tokens) */
.cc-input-vars-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.cc-input-vars-shell__field {
    flex: 1 1 auto;
    min-width: 0;
}

    .cc-input-vars-shell__field > .cc-input,
    .cc-input-vars-shell__field input.cc-input,
    .cc-input-vars-shell__field textarea.cc-input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .cc-input-vars-shell__field > div > .cc-input,
    .cc-input-vars-shell__field > div > input.cc-input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

.cc-vars-insert-rail {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--cc-control-border-color, #dee2e6);
    border-left: 0;
    border-radius: 0 var(--cc-control-border-radius, 0.375rem) var(--cc-control-border-radius, 0.375rem) 0;
    background-color: #f6f7f9;
}

.cc-vars-insert-rail__btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #495057;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-width: 28px;
}

    .cc-vars-insert-rail__btn:hover:not(:disabled) {
        background-color: #e9ecef;
        color: #212529;
    }

    .cc-vars-insert-rail__btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .cc-vars-insert-rail__btn.is-active {
        background-color: #e2e6ea;
        color: #212529;
    }

.cc-vars-insert-rail__panel {
    position: absolute;
    right: calc(100% + 4px);
    top: 0;
    left: auto;
    z-index: 1200;
}

/* Merge-field pill inside the design surface */
.cc-html-editor-var {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 2px 1px 8px;
    margin: 0 1px;
    border-radius: 999px;
    border: 1px solid #a8c7fa;
    background: #e8f0fe;
    vertical-align: baseline;
    white-space: nowrap;
    font-size: 0.85em;
    line-height: 1.35;
    user-select: none;
    cursor: default;
}

.cc-html-editor-var__text::after {
    content: attr(data-cc-var-label);
    color: #1a56db;
}

.cc-html-editor-var__remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: #5f6368;
    font-size: 1rem;
    line-height: 1;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
}

    .cc-html-editor-var__remove:hover {
        background: rgba(0, 0, 0, 0.08);
        color: #212529;
    }

.cc-html-editor-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.cc-html-editor-host {
    display: block;
    width: 100%;
    min-height: 4em;
    padding: 8px 10px;
    box-sizing: border-box;
    outline: none;
    overflow-y: auto;
    /* Default to Times New Roman so authored content matches the typical email/body context. */
    font-family: "Times New Roman", Times, serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #212529;
    /* pre-wrap preserves typed whitespace (incl. trailing spaces, so the caret advances on space)
       while still allowing word-wrap. */
    white-space: pre-wrap;
}

    .cc-html-editor-host[hidden] {
        display: none;
    }

    .cc-html-editor-host:focus {
        background-color: #fcfcfd;
    }

    /* Force bold to 700; Bootstrap reboot ships `b, strong { font-weight: bolder }`, where `bolder`
       is relative to inherited weight and can resolve to weights that don't visibly differ from
       regular for some system fonts. !important locks the editor result regardless of host context. */
    .cc-html-editor-host strong,
    .cc-html-editor-host b {
        font-weight: 700 !important;
    }

textarea.cc-html-editor-source {
    display: block;
    width: 100%;
    min-height: 4em;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 0;
    outline: none;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8125rem;
    line-height: 1.4;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    background-color: #fcfcfd;
    color: #212529;
}

    textarea.cc-html-editor-source[hidden] {
        display: none;
    }

/* Editing surface fills the body via flex; works with both auto-height shells (content
   sizing kicks in via min-height) and fixed-height shells (flex distributes the rest). */
.cc-html-editor-shell .cc-html-editor-host,
.cc-html-editor-shell textarea.cc-html-editor-source {
    flex: 1 1 auto;
    min-height: 0;
}

/* ——— CcAccordion: custom markup + jQuery slide (see CcAccordion.razor / chatter-controls.js) ——— */

/* =============================================================================
   CcDateEdit / CcDateInput, CcCheckbox, CcGrid row selection
   Permanent defaults for ChatterControls. Host apps (e.g. ChatterCatWeb) may
   override via :root { --cc-* } or scoped parents (.cc-page--payruns, etc.).
   CcDateEdit / CcDateInput always render .cc-date-edit--compact (outer width
   --cc-date-compact-outer-w, default 140px); host may override via :root or a scoped parent.
   Input is full width inside the shell with padding-right = trigger strip; glyph in CcDateEdit.razor.
   tick/dash on checkboxes: CSS background from --cc-chk-tick-svg / --cc-chk-dash-svg
   (data-URI SVG, not a font or ASCII character).
   ============================================================================= */

/* Optional layout hooks for host pages/sections — e.g. class="cc-page cc-page--payruns" on a root wrapper. */

/* --- CcDateEdit / CcDateInput ---------------------------------------------- */
.edit-item-form .edit-field-div .cc-date-edit-shell input.cc-date-edit-input[type="date"],
.edit-item-form .edit-field-div .cc-date-edit-shell input.cc-date-edit-input[type="datetime-local"],
.edit-item-form .edit-field-div .cc-date-edit-shell input.cc-date-edit-input[type="text"],
.edit-item-form .edit-field-div-secondary .cc-date-edit-shell input.cc-date-edit-input[type="date"],
.edit-item-form .edit-field-div-secondary .cc-date-edit-shell input.cc-date-edit-input[type="datetime-local"],
.edit-item-form .edit-field-div-secondary .cc-date-edit-shell input.cc-date-edit-input[type="text"] {
    height: auto;
    min-height: 38px;
}

div.edit-field-div:has(> .cc-date-edit-shell),
div.edit-field-div-secondary:has(> .cc-date-edit-shell) {
    height: auto;
    min-height: 44px;
}

.cc-date-edit-shell {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

    .cc-date-edit-shell input.cc-date-edit-input[type="date"],
    .cc-date-edit-shell input.cc-date-edit-input[type="datetime-local"],
    .cc-date-edit-shell input.cc-date-edit-input[type="text"] {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        vertical-align: middle;
        padding-right: 2.75rem;
    }

    /* Compact: one outer border on the shell; input is full width + right padding; trigger sits inside. */
    .cc-date-edit-shell.cc-date-edit--compact {
        width: var(--cc-date-compact-outer-w);
        max-width: var(--cc-date-compact-outer-w);
        min-height: 2.125rem;
        box-sizing: border-box;
        border: 1px solid var(--cc-control-border-color, #dee2e6);
        border-radius: var(--cc-control-border-radius, 0.375rem);
        background-color: var(--cc-date-compact-bg);
        overflow: visible;
    }

        .cc-date-edit-shell.cc-date-edit--compact:focus-within {
            border-color: var(--bs-primary, #86b7fe);
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

        .cc-date-edit-shell.cc-date-edit--compact input.cc-date-edit-input[type="date"],
        .cc-date-edit-shell.cc-date-edit--compact input.cc-date-edit-input[type="datetime-local"],
        .cc-date-edit-shell.cc-date-edit--compact input.cc-date-edit-input[type="text"] {
            display: block;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            min-height: 2.125rem;
            height: 2.125rem;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            background-color: transparent !important;
            line-height: 1.2 !important;
            padding-top: 0.25rem;
            padding-bottom: 0.25rem;
            padding-left: 0.375rem;
            padding-right: var(--cc-date-compact-trigger-w) !important;
        }

            .cc-date-edit-shell.cc-date-edit--compact input.cc-date-edit-input[type="date"]:focus,
            .cc-date-edit-shell.cc-date-edit--compact input.cc-date-edit-input[type="datetime-local"]:focus,
            .cc-date-edit-shell.cc-date-edit--compact input.cc-date-edit-input[type="text"]:focus {
                outline: none !important;
                box-shadow: none !important;
                border: none !important;
            }

    .cc-date-edit-shell input.cc-date-edit-input[type="date"]::-webkit-calendar-picker-indicator,
    .cc-date-edit-shell input.cc-date-edit-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
        display: none;
    }

    .cc-date-edit-shell input.cc-date-edit-input[type="date"]::-moz-calendar-picker-indicator,
    .cc-date-edit-shell input.cc-date-edit-input[type="datetime-local"]::-moz-calendar-picker-indicator {
        display: none;
    }

.cc-date-edit-trigger {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2.75rem;
    margin: 0;
    padding: 0;
    border: none;
    border-left: 1px solid var(--cc-control-border-color, #dee2e6);
    border-radius: 0 var(--cc-control-border-radius, 0.375rem) var(--cc-control-border-radius, 0.375rem) 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: var(--cc-date-trigger-color, inherit);
}

.cc-date-edit-shell.cc-date-edit--compact .cc-date-edit-trigger {
    width: var(--cc-date-compact-trigger-w);
    min-width: var(--cc-date-compact-trigger-w);
    border-radius: 0;
    border-left: 1px solid var(--cc-control-border-color, #dee2e6);
}

.cc-date-edit-trigger:hover:not(:disabled) {
    background-color: var(--cc-date-trigger-hover-bg);
}

.cc-date-edit-trigger:active:not(:disabled) {
    background-color: var(--cc-date-trigger-active-bg);
}

.cc-date-edit-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.cc-date-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 7040;
    background: transparent;
}

.cc-date-picker-popup {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 7041;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--cc-control-border-color, #dee2e6);
    border-radius: 0.375rem;
    box-shadow: 0 0.35rem 0.95rem rgba(0, 0, 0, 0.18);
    padding: 0.55rem;
}

.cc-date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.cc-date-picker-title {
    font-weight: 600;
    font-size: 0.92rem;
}

.cc-date-picker-nav-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--cc-control-border-color, #dee2e6);
    background: #fff;
    border-radius: 0.3rem;
    width: 1.9rem !important;
    min-width: 1.9rem !important;
    max-width: 1.9rem !important;
    height: 1.9rem !important;
    min-height: 1.9rem !important;
    max-height: 1.9rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0;
    line-height: 1;
    font-size: 1.15rem;
    font-weight: 700;
    color: #495057;
    box-sizing: border-box;
    flex: 0 0 auto;
    text-indent: 0;
}

.cc-date-picker-weekdays,
.cc-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.cc-date-picker-weekdays {
    margin-bottom: 0.2rem;
}

.cc-date-picker-weekday {
    text-align: center;
    font-size: 0.7rem;
    color: #6c757d;
}

.cc-date-picker-day {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid transparent;
    background: #fff;
    border-radius: 0.28rem;
    height: 1.9rem;
    min-width: 1.9rem;
    text-align: center;
    font-size: 0.82rem;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
}

    .cc-date-picker-day:hover:not(:disabled) {
        background: #eef6ff;
        border-color: #b8d6ff;
    }

    .cc-date-picker-day.is-selected {
        background: #4fd431ce;
        color: #484748;
        border-color: #484748;
        border-width: 1px;
    }

        .cc-date-picker-day.is-selected:hover:not(:disabled) {
            background: #5eb301;
            color: #fff;
            border-color: #484748;
        }

    .cc-date-picker-day.is-today {
        border-color: #ddd;
        border-width: 1px;
        padding-top: 1px;
    }

    .cc-date-picker-day.is-selected.is-today {
        /*box-shadow: inset 0 0 0 1px var(--cc-success-darker, #2f8f2f);*/
    }

    .cc-date-picker-day.is-outside-month {
        color: #adb5bd;
    }

    .cc-date-picker-day:disabled {
        color: #ced4da;
        cursor: not-allowed;
    }

.cc-date-edit-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--cc-date-glyph-size);
    height: var(--cc-date-glyph-size);
    pointer-events: none;
}

    .cc-date-edit-glyph svg {
        display: block;
        width: 100%;
        height: 100%;
    }

.cal-today-text {
    font-size: 7px;
}
/* --- CcNumberInput (IsPercentage, IsDollars) / CcSpinEdit (NumberType Percent/Dollars/Days) --- */
/* Matches CcDateEdit compact chrome: outer border, borderless field, decorative strip with glyph
   (RHS % or LHS $). Strips are not interactive; override: --cc-number-percent-max-w / --cc-number-percent-suffix-w.
   Inner inputs use cc-number-input-percent-field / cc-number-input-dollar-field so shell chrome does not
   collide with plain cc-number-input-field (numeric inputs without %/$ chrome). */
.cc-number-input-shell.cc-number-input--percentage,
.cc-number-input-shell.cc-number-input--dollars,
.cc-number-input-shell.cc-number-input--days {
    --cc-number-percent-max-w: 110px;
    --cc-number-percent-suffix-w: 30px;
    --cc-number-percent-glyph-size: 16px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: var(--cc-number-percent-max-w);
    box-sizing: border-box;
    border: 1px solid var(--cc-control-border-color, #dee2e6);
    border-radius: var(--cc-control-border-radius, 0.375rem);
    background-color: var(--cc-date-compact-bg, #fff);
    overflow: hidden;
}

.cc-number-input-shell.cc-number-input--dollars {
    --cc-number-percent-max-w: 140px;
}

    .cc-number-input-shell.cc-number-input--percentage:focus-within,
    .cc-number-input-shell.cc-number-input--dollars:focus-within,
    .cc-number-input-shell.cc-number-input--days:focus-within {
        border-color: var(--bs-primary, #86b7fe);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    .cc-number-input-shell.cc-number-input--percentage .cc-number-input-percent-field,
    .cc-number-input-shell.cc-number-input--days .cc-number-input-percent-field,
    .cc-number-input-shell.cc-number-input--dollars .cc-number-input-dollar-field {
        flex: 1 1 0;
        min-width: 0;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: transparent !important;
        padding-top: 0.375rem;
        padding-bottom: 0.375rem;
    }

.cc-number-input-shell.cc-number-input--percentage .cc-number-input-percent-field,
.cc-number-input-shell.cc-number-input--days .cc-number-input-percent-field {
    padding-left: 0.375rem;
    padding-right: 0.25rem;
}

.cc-number-input-shell.cc-number-input--dollars .cc-number-input-dollar-field {
    padding-left: 0.25rem;
    padding-right: 0.375rem;
}

    .cc-number-input-shell.cc-number-input--percentage .cc-number-input-percent-field:focus,
    .cc-number-input-shell.cc-number-input--days .cc-number-input-percent-field:focus,
    .cc-number-input-shell.cc-number-input--dollars .cc-number-input-dollar-field:focus {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }

.cc-number-input-shell.cc-number-input--percentage input.cc-number-input-percent-field::-webkit-outer-spin-button,
.cc-number-input-shell.cc-number-input--percentage input.cc-number-input-percent-field::-webkit-inner-spin-button,
.cc-number-input-shell.cc-number-input--days input.cc-number-input-percent-field::-webkit-outer-spin-button,
.cc-number-input-shell.cc-number-input--days input.cc-number-input-percent-field::-webkit-inner-spin-button,
.cc-number-input-shell.cc-number-input--dollars input.cc-number-input-dollar-field::-webkit-outer-spin-button,
.cc-number-input-shell.cc-number-input--dollars input.cc-number-input-dollar-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cc-number-input-shell.cc-number-input--percentage input.cc-number-input-percent-field[type="number"],
.cc-number-input-shell.cc-number-input--days input.cc-number-input-percent-field[type="number"],
.cc-number-input-shell.cc-number-input--dollars input.cc-number-input-dollar-field[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* CcSpinEdit: default width for plain numeric (Default/Decimal/Integer) matches compact %/$ chrome */
input.cc-input.cc-number-input-field.cc-spin-edit--compact,
input.cc-input.cc-number-input-field.cc-spin-edit--compact[type="text"] {
    max-width: var(--cc-number-percent-max-w, 110px);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cc-number-input-percent-suffix {
    flex: 0 0 var(--cc-number-percent-suffix-w);
    width: var(--cc-number-percent-suffix-w);
    min-width: var(--cc-number-percent-suffix-w);
    max-width: var(--cc-number-percent-suffix-w);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--cc-control-border-color, #dee2e6);
    color: var(--cc-date-trigger-color, inherit);
    user-select: none;
    cursor: default;
    pointer-events: none;
}

.cc-number-input-dollar-prefix {
    flex: 0 0 var(--cc-number-percent-suffix-w);
    width: var(--cc-number-percent-suffix-w);
    min-width: var(--cc-number-percent-suffix-w);
    max-width: var(--cc-number-percent-suffix-w);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--cc-control-border-color, #dee2e6);
    color: var(--cc-date-trigger-color, inherit);
    user-select: none;
    cursor: default;
    pointer-events: none;
}

.cc-number-input-percent-glyph {
    display: block;
    width: var(--cc-number-percent-glyph-size);
    height: var(--cc-number-percent-glyph-size);
    flex-shrink: 0;
}

.cc-number-input-days-suffix {
    padding: 0 1px;
}

.cc-number-input-days-glyph {
    display: block;
    width: 100%;
    max-width: 28px;
    height: 11px;
    flex-shrink: 0;
}

.cc-number-input-dollar-glyph {
    display: block;
    width: var(--cc-number-percent-glyph-size);
    height: var(--cc-number-percent-glyph-size);
    flex-shrink: 0;
}

/* --- CcColorEdit ------------------------------------------------------------- */
.cc-color-edit-root {
    display: block;
    width: fit-content;
    max-width: 100%;
}

.cc-color-edit-anchor {
    position: relative;
    display: block;
    vertical-align: top;
    box-sizing: border-box;
}

.cc-color-edit-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    min-width: 100%;
    min-height: 2.125rem;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--cc-control-border-color, #dee2e6);
    border-radius: 0.375rem;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

    .cc-color-edit-shell.cc-color-edit--dual {
        min-height: 3.5rem;
    }

    .cc-color-edit-shell:focus-within {
        border-color: var(--bs-primary, #86b7fe);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

.cc-color-edit-fields.cc-color-edit-fields--single {
    display: block;
}

.cc-color-edit-fields {
    flex: 170px;
    width: 170px;
    max-width: 170px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.cc-color-edit-preview {
    flex: 1 1 0;
    min-width: var(--cc-color-edit-preview-extra-w, 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    margin: 0;
    padding: 0.35rem;
    border: none;
    background: #fff;
    box-sizing: border-box;
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

.cc-color-edit-preview:hover:not(:disabled) {
    background-color: #f8f9fa;
}

.cc-color-edit-preview:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.cc-color-edit-example {
    margin: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 95%;
    min-height: 2.35rem;
    border: 2px solid var(--cc-control-border-color, #dee2e6);
    border-radius: 0.2rem;
    background-color: #fff;
    color: #212529;
    font-family: Tahoma, sans-serif;
    font-weight: 900;
    font-size: 0.72rem;
    line-height: 1.2;
    padding: 0.45rem 0.7rem;
    box-sizing: border-box;
    user-select: none;
}

.cc-color-edit-row {
    display: flex;
    align-items: stretch;
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
}

    .cc-color-edit-row + .cc-color-edit-row {
        border-top: 1px solid var(--cc-control-border-color, #dee2e6);
    }

.cc-color-edit-row-prefix {
    flex: 0 0 var(--cc-color-edit-row-prefix-w, 1.75rem);
    width: var(--cc-color-edit-row-prefix-w, 1.75rem);
    min-width: var(--cc-color-edit-row-prefix-w, 1.75rem);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #6c757d;
    border-right: 1px solid var(--cc-control-border-color, #dee2e6);
    background: #f8f9fa;
    user-select: none;
    pointer-events: none;
}

.cc-color-edit-shell.cc-color-edit--dual .cc-color-edit-input {
    padding: 0.2rem 1px 0.2rem 0.3rem;
    font-size: 0.75rem;
    line-height: 1.25;
}

.cc-color-edit-input {
    flex: 1 1 0;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent;
    padding: 8px 0.35rem;
    font-size: 0.875rem;
    line-height: 1.4;
    height: 100%;
    margin: 0;
}

    .cc-color-edit-input:focus {
        outline: none !important;
        box-shadow: none !important;
        border: none !important;
    }

.cc-color-edit-trigger {
    position: relative;
    flex: 0 0 var(--cc-color-edit-trigger-w, 2rem);
    width: var(--cc-color-edit-trigger-w, 2rem);
    min-width: var(--cc-color-edit-trigger-w, 2rem);
    align-self: stretch;
    border: none;
    border-right: 1px solid var(--cc-control-border-color, #dee2e6);
    background: #f8f9fa;
    border-radius: 0.375rem 0 0 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    color: #495057;
    font-size: 0.8rem;
    line-height: 1;
}

    .cc-color-edit-trigger:hover:not(:disabled):not(.cc-color-edit-trigger--filled) {
        background-color: var(--cc-date-trigger-hover-bg, #e9ecef);
    }

.cc-color-edit-trigger--filled {
    color: #fff;
}

    .cc-color-edit-trigger--filled i {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    }

    .cc-color-edit-trigger--filled:hover:not(:disabled) {
        filter: brightness(0.9);
    }

.cc-color-edit-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.cc-color-picker-eyedropper i {
    font-size: 1.05rem;
    line-height: 1;
}

.cc-color-edit-validation {
    flex: 1 1 100%;
    font-size: 0.78rem;
    color: var(--bs-danger, #dc3545);
    margin-top: 0.15rem;
}

.cc-color-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 7040;
    background: transparent;
}

.cc-color-picker-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    z-index: 7041;
    width: min(292px, 92vw);
    background: #eef2f6;
    border: 1px solid var(--cc-control-border-color, #c8d0da);
    border-radius: 0.5rem;
    box-shadow: 0 0 5px black;
    padding: 0.55rem;
}

.cc-color-picker-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.cc-color-picker-presets {
    display: grid;
    grid-template-columns: repeat(4, 1.35rem);
    gap: 0.28rem;
}

.cc-color-picker-preset {
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.28rem;
    padding: 0;
    cursor: pointer;
    box-sizing: border-box;
}

.cc-color-picker-preset--transparent {
    background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 50% / 8px 8px !important;
}

.cc-color-picker-eyedropper {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--cc-control-border-color, #c8d0da);
    border-radius: 0.35rem;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    color: #495057;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cc-color-picker-body {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.cc-color-picker-sb-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.cc-color-picker-sb {
    position: relative;
    width: 100%;
    height: 9.5rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: crosshair;
    touch-action: none;
}

.cc-color-picker-thumb {
    position: absolute;
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cc-color-picker-hue-wrap {
    flex: 0 0 1.1rem;
}

.cc-color-picker-hue {
    position: relative;
    width: 100%;
    height: 9.5rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: ns-resize;
    touch-action: none;
}

.cc-color-picker-hue-thumb {
    position: absolute;
    left: 50%;
    width: calc(100% + 6px);
    height: 0.45rem;
    margin-left: calc(-50% - 3px);
    border: 2px solid #fff;
    border-radius: 0.2rem;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
    pointer-events: none;
}

.cc-color-picker-inputs {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.cc-color-picker-mode-btn {
    appearance: none;
    border: 1px solid var(--cc-control-border-color, #c8d0da);
    background: #fff;
    border-radius: 0.3rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
    color: #495057;
}

.cc-color-picker-field {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: #495057;
    margin: 0;
}

    .cc-color-picker-field input {
        width: 46px;
        border: 1px solid var(--cc-control-border-color, #c8d0da);
        border-radius: 0.28rem;
        font-size: 0.78rem;
        padding: 0.12rem 0.2rem;
        background: #fff;
    }

.cc-color-picker-field--hex input {
    width: 5.6rem;
}

.cc-color-picker-draft-swatch {
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.28rem;
    margin-left: auto;
}

.cc-color-picker-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
}

.cc-color-picker-action {
    min-width: 3.1rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.3;
}

/* --- CcCheckbox (standalone; replaces prior checkbox) ----------------------- */
.cc-checkbox {
    --cc-chk-checked-bg: #6fc412;
    --cc-chk-checked-bg-hover: #3ca100;
    --cc-chk-checked-border: var(--cc-chk-checked-bg);
    --cc-chk-checked-border-hover: var(--cc-chk-checked-bg-hover);
    --cc-chk-indeterminate-bg: #4189e6;
    --cc-chk-indeterminate-bg-hover: #0060de;
    --cc-chk-indeterminate-border: #2f7ad4;
    --cc-chk-indeterminate-border-hover: #0050c2;
    --cc-chk-border: #9aa0a6;
    --cc-chk-border-width: 1px;
    --cc-chk-focus: rgba(0, 160, 220, 0.45);
    --cc-chk-unchecked-hover-border: #4a9eff;
    --cc-chk-unchecked-hover-shadow: 0 0 0 1px rgba(0, 96, 222, 0.22);
    --cc-chk-tick-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.25 8.35L6.65 12.75L13.75 3.25' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --cc-chk-dash-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='6.75' width='12' height='2.5' rx='0.5' fill='white'/%3E%3C/svg%3E");
    --cc-chk-mark-pct: 88%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
}

.cc-checkbox--label-start {
    flex-direction: row;
}

/* Switch: allow oversized ::after knob to extend past the track vertically. */
.cc-checkbox.cc-checkbox--switch {
    overflow: visible;
    align-items: center;
}

.cc-checkbox__input {
    flex-shrink: 0;
    margin: 0;
    cursor: inherit;
}

.cc-checkbox__label {
    color: #333;
    font-size: inherit;
    line-height: 1.25;
}

.cc-checkbox--box .cc-checkbox__input {
    appearance: none;
    box-sizing: border-box;
    width: 1.5rem;
    height: 1.5rem;
    border: var(--cc-chk-border-width) solid var(--cc-chk-border);
    border-radius: 5px;
    background-color: #fff;
    background-image: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .cc-checkbox--box .cc-checkbox__input:hover:not(:disabled):not(:checked):not(:indeterminate) {
        border-color: var(--cc-chk-unchecked-hover-border);
        box-shadow: var(--cc-chk-unchecked-hover-shadow);
    }

.cc-checkbox--box.cc-checkbox--sm .cc-checkbox__input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 4px;
}

.cc-checkbox--box.cc-checkbox--lg .cc-checkbox__input {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 5px;
}

.cc-checkbox--box.cc-checkbox--chunky .cc-checkbox__input {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
}

.cc-checkbox--box .cc-checkbox__input:checked {
    background-color: var(--cc-chk-checked-bg);
    border-color: var(--cc-chk-checked-border);
    background-image: var(--cc-chk-tick-svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--cc-chk-mark-pct);
}

    .cc-checkbox--box .cc-checkbox__input:checked:hover:not(:disabled),
    .cc-checkbox--box .cc-checkbox__input:checked:focus-visible:not(:disabled) {
        background-color: var(--cc-chk-checked-bg-hover) !important;
        border-color: var(--cc-chk-checked-border-hover) !important;
        background-image: var(--cc-chk-tick-svg) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: var(--cc-chk-mark-pct) !important;
        box-shadow: none;
    }

.cc-checkbox--box .cc-checkbox__input:indeterminate {
    background-color: var(--cc-chk-indeterminate-bg);
    border-color: var(--cc-chk-indeterminate-border);
    background-image: var(--cc-chk-dash-svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--cc-chk-mark-pct);
}

    .cc-checkbox--box .cc-checkbox__input:indeterminate:hover:not(:disabled),
    .cc-checkbox--box .cc-checkbox__input:indeterminate:focus-visible:not(:disabled) {
        background-color: var(--cc-chk-indeterminate-bg-hover) !important;
        border-color: var(--cc-chk-indeterminate-border-hover) !important;
        background-image: var(--cc-chk-dash-svg) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: var(--cc-chk-mark-pct) !important;
        box-shadow: none;
    }

.cc-checkbox--box .cc-checkbox__input:focus-visible {
    outline: none;
}

    .cc-checkbox--box .cc-checkbox__input:focus-visible:not(:checked):not(:indeterminate) {
        box-shadow: 0 0 0 2px var(--cc-chk-focus);
    }

.cc-checkbox--box .cc-checkbox__input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cc-checkbox--switch .cc-checkbox__input {
    --cc-switch-knob-shift: 1.5rem;
    appearance: none;
    width: 2.5rem;
    height: 1.375rem;
    border-radius: 999px;
    border: var(--cc-chk-border-width) solid var(--cc-chk-border);
    background: #e9ecef;
    position: relative;
    overflow: visible;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    /* Knob larger than track height (analogue / iOS-style). Track size unchanged above. */
    .cc-checkbox--switch .cc-checkbox__input::after {
        content: "";
        position: absolute;
        top: 50%;
        left: -4px;
        width: 1.50rem;
        height: 1.50rem;
        border-radius: 50%;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.12);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
        transform: translate(0, -50%);
        z-index: 1;
        transition: transform 0.15s ease;
    }

    .cc-checkbox--switch .cc-checkbox__input:checked {
        background: var(--cc-chk-checked-bg);
        border-color: var(--cc-chk-checked-border);
    }

        .cc-checkbox--switch .cc-checkbox__input:checked::after {
            transform: translate(var(--cc-switch-knob-shift), -50%);
            border-color: rgba(255, 255, 255, 0.65);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(80, 160, 80, 0.35);
        }

        .cc-checkbox--switch .cc-checkbox__input:checked:hover:not(:disabled),
        .cc-checkbox--switch .cc-checkbox__input:checked:focus-visible:not(:disabled) {
            background: var(--cc-chk-checked-bg-hover) !important;
            border-color: var(--cc-chk-checked-border-hover) !important;
        }

    .cc-checkbox--switch .cc-checkbox__input:hover:not(:disabled):not(:checked) {
        border-color: var(--cc-chk-unchecked-hover-border);
        box-shadow: var(--cc-chk-unchecked-hover-shadow);
    }

    .cc-checkbox--switch .cc-checkbox__input:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px var(--cc-chk-focus);
    }

    .cc-checkbox--switch .cc-checkbox__input:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.cc-checkbox--switch.cc-checkbox--sm .cc-checkbox__input {
    --cc-switch-knob-shift: 0.475rem;
    width: 2.125rem;
    height: 1.2rem;
}

    .cc-checkbox--switch.cc-checkbox--sm .cc-checkbox__input::after {
        width: 1.4rem;
        height: 1.4rem;
        left: 2px;
    }

    .cc-checkbox--switch.cc-checkbox--sm .cc-checkbox__input:checked::after {
        transform: translate(var(--cc-switch-knob-shift), -50%);
    }

.cc-checkbox--switch.cc-checkbox--lg .cc-checkbox__input {
    --cc-switch-knob-shift: 0.905rem;
    width: 2.875rem;
    height: 1.5rem;
}

    .cc-checkbox--switch.cc-checkbox--lg .cc-checkbox__input::after {
        width: 1.72rem;
        height: 1.72rem;
        left: 2px;
    }

    .cc-checkbox--switch.cc-checkbox--lg .cc-checkbox__input:checked::after {
        transform: translate(var(--cc-switch-knob-shift), -50%);
    }

.cc-checkbox--switch.cc-checkbox--chunky .cc-checkbox__input {
    --cc-switch-knob-shift: 0.87rem;
    width: 3rem;
    height: 1.625rem;
}

    .cc-checkbox--switch.cc-checkbox--chunky .cc-checkbox__input::after {
        width: 1.88rem;
        height: 1.88rem;
        left: 2px;
    }

    .cc-checkbox--switch.cc-checkbox--chunky .cc-checkbox__input:checked::after {
        transform: translate(var(--cc-switch-knob-shift), -50%);
    }

.cc-checkbox--center-ctrl {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Aggregate / grid toolbar row: align label with chunky box (host can override per .cc-section--*) */
.group-aggregate-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.5rem;
}

    .group-aggregate-options .cc-checkbox {
        display: inline-flex;
        color: #484748;
        margin-right: 0;
    }

    .group-aggregate-options .cc-checkbox__label {
        position: static;
        top: auto;
    }

/* --- CcGrid selection checkboxes (native + shell; same tick SVG story as .cc-checkbox) */
.cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.ccat-checkbox {
    --cc-chk-on: #6fc412;
    --cc-chk-border-width: 1px;
    --cc-chk-tick-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.25 8.35L6.65 12.75L13.75 3.25' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --cc-chk-dash-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='6.75' width='12' height='2.5' rx='0.5' fill='white'/%3E%3C/svg%3E");
    --cc-chk-mark-pct: 88%;
    --cc-grid-chk-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.cc-grid-outer.cc-grid-selection-size-sm .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.ccat-checkbox {
    --cc-grid-chk-size: 1.25rem;
}

.cc-grid-outer.cc-grid-selection-size-chunky .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.ccat-checkbox {
    --cc-grid-chk-size: 1.875rem;
}

.cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native .cc-grid-chk-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--cc-grid-chk-size);
    height: var(--cc-grid-chk-size);
    border: var(--cc-chk-border-width, 1px) solid #9aa0a6;
    border-radius: 4px;
    background-color: #fff;
}

    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native .cc-grid-chk-shell input[type="checkbox"] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 1;
    }

.cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--checked .cc-grid-chk-shell {
    background-color: var(--cc-chk-on);
    border-color: var(--cc-chk-on);
    background-image: var(--cc-chk-tick-svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--cc-chk-mark-pct);
}

    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--checked .cc-grid-chk-shell::after {
        content: none;
    }

    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--checked .cc-grid-chk-shell:hover,
    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--checked .cc-grid-chk-shell:focus-within {
        background-color: var(--cc-chk-on) !important;
        background-image: var(--cc-chk-tick-svg) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: var(--cc-chk-mark-pct) !important;
        border-color: #9ad94a !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    }

.cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--indeterminate .cc-grid-chk-shell {
    background-color: #adb5bd;
    border-color: #868e96;
    background-image: var(--cc-chk-dash-svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--cc-chk-mark-pct);
}

    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--indeterminate .cc-grid-chk-shell::after {
        content: none;
    }

    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--indeterminate .cc-grid-chk-shell:hover,
    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--indeterminate .cc-grid-chk-shell:focus-within {
        background-color: #adb5bd !important;
        background-image: var(--cc-chk-dash-svg) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: var(--cc-chk-mark-pct) !important;
        border-color: #c5ccd4 !important;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
    }

.cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--unchecked .cc-grid-chk-shell:hover,
.cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-sel--unchecked .cc-grid-chk-shell:focus-within {
    border-color: #4a9eff !important;
    box-shadow: 0 0 0 1px rgba(0, 96, 222, 0.22);
}

.cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-select-all--no-visible-rows {
    opacity: 0.45;
    pointer-events: none;
}

    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-select-all--no-visible-rows .cc-grid-chk-shell {
        background-color: #e9ecef !important;
        border-color: #ced4da !important;
        background-image: none !important;
    }

    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-select-all--no-visible-rows.cc-grid-sel--checked .cc-grid-chk-shell,
    .cc-grid-table .cc-grid-sel-checkbox.cc-grid-selection-native.cc-grid-select-all--no-visible-rows.cc-grid-sel--indeterminate .cc-grid-chk-shell {
        background-image: none !important;
        background-color: #e9ecef !important;
        border-color: #ced4da !important;
    }

/* --- CcAccordion (full-width header rows; toggle in chatter-controls.js) -------- */
.cc-accordion {
    --cc-acc-border: var(--bs-accordion-border-color, #dee2e6);
    --cc-acc-bg: var(--bs-accordion-bg, #fff);
    --cc-acc-active-bg: var(--bs-accordion-active-bg, #e7f1ff);
    --cc-acc-active-color: var(--bs-accordion-active-color, #052c65);
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--cc-acc-border);
    border-radius: var(--bs-accordion-border-radius, 0.375rem);
    background-color: var(--cc-acc-bg);
    overflow: hidden;
}

.cc-accordion__item {
    border-top: 1px solid var(--cc-acc-border);
}

.cc-accordion__item:first-child {
    border-top: none;
}

.cc-accordion__header {
    margin: 0;
    padding: 0;
}

.cc-accordion__toggle {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 0;
    background-color: var(--cc-acc-bg);
    color: var(--bs-accordion-btn-color, #212529);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cc-accordion__toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.cc-accordion__toggle:focus {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, 0.35);
}

.cc-accordion__chevron {
    flex: 0 0 auto;
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-top: -0.15rem;
    transition: transform 0.22s ease;
}

.cc-accordion__toggle[aria-expanded="true"] .cc-accordion__chevron {
    transform: rotate(45deg);
    margin-top: 0.1rem;
}

.cc-accordion__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.35;
    font-weight: 600;
    user-select: none;
}

.cc-accordion__item--open .cc-accordion__toggle {
    color: var(--cc-acc-active-color);
    background-color: var(--cc-acc-active-bg);
}

.cc-accordion__item--open .cc-accordion__header {
    box-shadow: inset 0 -1px 0 var(--cc-acc-border);
}

.cc-accordion__body {
    padding: var(--bs-accordion-body-padding-y, 1rem) var(--bs-accordion-body-padding-x, 1.25rem);
    background-color: var(--cc-acc-bg);
    overflow: visible;
}

.cc-accordion__panel {
    overflow: hidden;
}

.preferences-theme-accordion.cc-accordion {
    width: 100%;
    max-width: 100%;
}
