body, .sideNav, .stepMenu, .stepMenu * {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
}

.PaneContent
{
    background-color: #E9ECEA !important;
    border: 1px solid #E3E6E4 !important;
}

.IFrame
{
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Sidebar ---- */
.sideNav {
    padding: 14px 6px 14px 6px;
}

.sideNavHeader {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7A807C;
    padding: 0 8px 12px 8px;
}

/* ---- Menu container: remove the DevExpress theme look ---- */
.stepMenu,
.stepMenu ul {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

    .stepMenu .dxm-separator {
        display: none !important;
    }

    /* ---- Step row (the whole menu item, so the icon is inside the highlight) ---- */
    .stepMenu .dxm-item {
        background: transparent !important;
        border: 1px solid #E3E6E4 !important;
        border-radius: 6px !important;
        padding: 0 !important;
        margin: 0 0 4px 0 !important;
        box-shadow: none !important;
        cursor: pointer;
        transition: background-color .12s ease;
    }

        .stepMenu .dxm-item.dxm-hovered {
            background-color: #F0F2F1 !important;
        }

        .stepMenu .dxm-item.dxm-selected,
        .stepMenu .dxm-item.MenuItemSelected {
            background-color: #D9EAE9 !important;
            border-color: #8EC3C0 !important;
        }

    /* Icon + template side by side */
    .stepMenu .dxm-content {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 7px 10px !important;
    }

    .stepMenu .dxm-image {
        flex: 0 0 auto;
        margin: 0 !important;
    }

/* ---- Template content ---- */
.step {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Number circle ---- */
.stepNum {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #C9CDCA;
    background-color: #FFFFFF;
    color: #6F7571;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

.stepDone .stepNum {
    background-color: #DCEBD9;
    border-color: #9CC49A;
    color: #3F6B3D;
}

/* Selected item: plain number circle, same as a not-done step (e.g. Start) */
.stepMenu .dxm-item.dxm-selected .stepNum,
.stepMenu .dxm-item.MenuItemSelected .stepNum {
    background-color: #FFFFFF;
    border-color: #C9CDCA;
    color: #6F7571;
}

.MenuItemText
{
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.MenuItemTitle
{
    font-size: 14px;
    font-weight: 600;
    color: #3A403C;
    line-height: 18px;
}

.stepSub {
    font-size: 11px;
    color: #858B87;
    line-height: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stepMenu .dxm-selected .MenuItemTitle,
.stepMenu .MenuItemSelected .stepTitle {
    color: #1F3533;
}

/* =========================================================
   Side navigation (ASPxNavBar, frmClientData)
   Top-level rows are group headers; a group's items show
   underneath as indented sub-rows. Same look as .stepMenu.
   ========================================================= */

/* background-color only (not the background shorthand): the icons are
   drawn as background images on dxnb elements and must survive. */
.navMenu,
.navMenu [class*="dxnb"],
.navMenu table,
.navMenu td {
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.navMenu,
.navMenu * {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
}

/* ---- Top-level row ----
   No display rule here: DevExpress renders an expanded group's header
   twice (open and closed states) and hides one of them, so overriding
   display would show both. Icon and text line up with vertical-align. */
.navMenu .navHead {
    min-height: 32px;
    box-sizing: border-box;
    padding: 7px 10px !important;
    margin: 0 0 4px 0 !important;
    border: 1px solid #E3E6E4 !important;
    border-radius: 6px !important;
    background-color: transparent !important;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .navMenu .navHead,
    .navMenu .navHead * {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 18px;
        color: #3A403C !important;
        text-decoration: none !important;
    }

    .navMenu .navHead img {
        vertical-align: middle;
        margin: 0 10px 0 0 !important;
    }

    .navMenu .navHead span {
        vertical-align: middle;
    }

    .navMenu .navHead:hover {
        background-color: #F0F2F1 !important;
    }

    /* The page that is open */
    .navMenu .navHead.navHeadSelected {
        background-color: #D9EAE9 !important;
        border-color: #8EC3C0 !important;
    }

        .navMenu .navHead.navHeadSelected,
        .navMenu .navHead.navHeadSelected * {
            color: #1F3533 !important;
        }

    /* Parent of the open sub-row */
    .navMenu .navHead.navHeadActive {
        border-color: #8EC3C0 !important;
    }

/* ---- Sub-rows ---- */
.navMenu .navSub {
    margin: -2px 0 6px 26px !important;
    padding: 2px 0 2px 8px !important;
    border-left: 2px solid #E3E6E4 !important;
}

.navMenu .navItem {
    display: block;
    padding: 6px 10px !important;
    margin: 0 0 2px 0 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .navMenu .navItem .MenuItemTitle {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #4A504C !important;
    }

    .navMenu .navItem:hover {
        background-color: #F0F2F1 !important;
    }

    .navMenu .navItem.navItemSelected {
        background-color: #D9EAE9 !important;
    }

        .navMenu .navItem.navItemSelected .MenuItemTitle {
            font-weight: 600 !important;
            color: #1F3533 !important;
        }

/* ---- Job site rows: remove button and the "Add job site location" row ---- */
.navMenu .navRow {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .navMenu .navRow .MenuItemText {
        flex: 1 1 auto;
    }

.navMenu .navItemDel {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    color: #858B87 !important;
    opacity: 1;
    transition: opacity .12s ease, background-color .12s ease, color .12s ease;
}

    .navMenu .navItemDel:hover {
        background-color: #F6E3E1 !important;
        color: #B3261E !important;
    }

    .navMenu .navItemDel svg {
        display: block;
    }

.navMenu .navRow.navAdd .MenuItemTitle {
    color: #5E9E97 !important;
    font-weight: 600 !important;
}

    .navMenu .navRow.navAdd .MenuItemTitle::before {
        content: "+";
        display: inline-block;
        width: 14px;
        margin-right: 4px;
        font-size: 15px;
        font-weight: 700;
    }

    .navMenu .navRow.navAdd .stepSub {
        display: none;
    }

/* Touch screens: a bigger target for the remove button. */
@media (hover: none) and (pointer: coarse) {

    .navMenu .navItemDel {
        width: 32px;
        height: 32px;
    }
}

/* ---- Phone menu button (hidden on desktop) ---- */
.navToggle {
    display: none;
    position: fixed;
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 12000;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid #8EC3C0;
    border-radius: 22px;
    background-color: #FFFFFF;
    color: #1F3533;
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    cursor: pointer;
}

    .navToggle:active {
        background-color: #D9EAE9;
    }

@media (max-width: 899px) {

    .navToggle {
        display: inline-flex;
    }

    /* Room so the last row isn't hidden behind the button */
    .navMenu {
        padding-bottom: 64px;
    }
}

@media (hover: none) and (pointer: coarse) {

    .navMenu .navHead {
        min-height: 44px;
    }

    .navMenu .navItem {
        padding: 12px 10px !important;
    }

    /* No sticky hover color after a tap */
    .navMenu .navHead:hover:not(.navHeadSelected),
    .navMenu .navItem:hover:not(.navItemSelected) {
        background-color: transparent !important;
    }
}

/* =========================================================
   Main menu (ASPxMenu, frmMain)
   Same look as the side navigation (.navMenu): bordered
   rounded rows, grey on hover, teal on the open page.
   background-color only, so any sprite icons survive.
   ========================================================= */

.topMenu,
.topMenu ul,
.topMenu .dxm-main {
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.topMenu,
.topMenu *,
.topMenuSub,
.topMenuSub * {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
}

/* Spacing comes from the item margin instead */
.topMenu .dxm-separator,
.topMenu .dxm-spacing {
    display: none !important;
}

/* ---- Top-level item: same as .navHead ---- */
.topMenu .dxm-item {
    min-height: 32px;
    box-sizing: border-box;
    margin: 6px 6px 6px 0 !important;
    border: 1px solid #E3E6E4 !important;
    border-radius: 6px !important;
    background-color: transparent !important;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .topMenu .dxm-item .dxm-content {
        display: flex !important;
        align-items: center;
        padding: 7px 10px !important;
    }

    .topMenu .dxm-item,
    .topMenu .dxm-item * {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 18px;
        color: #3A403C !important;
        text-decoration: none !important;
    }

    .topMenu .dxm-item .dxm-image {
        margin: 0 10px 0 0 !important;
        vertical-align: middle;
    }

    .topMenu .dxm-item.dxm-hovered,
    .topMenu .dxm-item:hover {
        background-color: #F0F2F1 !important;
    }

    /* The page that is open */
    .topMenu .dxm-item.dxm-selected {
        background-color: #D9EAE9 !important;
        border-color: #8EC3C0 !important;
    }

        .topMenu .dxm-item.dxm-selected,
        .topMenu .dxm-item.dxm-selected * {
            color: #1F3533 !important;
        }

/* ---- Drop-down submenus: same as .navSub / .navItem ---- */
.topMenuSub,
.topMenuSub ul {
    background-color: #FFFFFF !important;
    border: 1px solid #D9DEDA !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08) !important;
    padding: 4px !important;
}

    .topMenuSub ul {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .topMenuSub .dxm-separator,
    .topMenuSub .dxm-gutter {
        display: none !important;
    }

.topMenuSubItem {
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 6px !important;
    margin: 0 0 2px 0 !important;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .topMenuSubItem .dxm-content {
        padding: 6px 10px !important;
    }

    .topMenuSubItem,
    .topMenuSubItem * {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #4A504C !important;
    }

    .topMenuSubItem.dxm-hovered,
    .topMenuSubItem:hover {
        background-color: #F0F2F1 !important;
    }

    .topMenuSubItem.dxm-selected {
        background-color: #D9EAE9 !important;
    }

        .topMenuSubItem.dxm-selected,
        .topMenuSubItem.dxm-selected * {
            font-weight: 600 !important;
            color: #1F3533 !important;
        }

/* ---- Touch: same hit sizes as the side navigation ---- */
@media (hover: none) and (pointer: coarse) {

    .topMenu .dxm-item {
        min-height: 44px;
    }

    .topMenuSubItem .dxm-content {
        padding: 12px 10px !important;
    }

    .topMenu .dxm-item:hover:not(.dxm-selected),
    .topMenuSubItem:hover:not(.dxm-selected) {
        background-color: transparent !important;
    }
}

/* ---- Vertical menus (frmSettings) ----
   Add menuVertical next to topMenu: same rows, stacked full width
   like the side navigation instead of side by side. */
.topMenu.menuVertical .dxm-item {
    width: 100%;
    margin: 0 0 4px 0 !important;
}

/* Filter box above a vertical menu (fldEdit does the box itself) */
.menuFilter {
    margin-bottom: 12px;
}

/* =========================================================
   Form pages (e.g. frmPropertyDetails)
   ========================================================= */

.pageForm {
    background-color: #E9ECEA;
    color: #3A403C;
}

.pageWrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 36px 32px 36px;
}

/* ---- Page header ---- */
.pageHead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.stepLabel {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #4A504C;
}

/* !important on all of it: when the title is an ASPxLabel, the theme's
   label class would otherwise override size, weight and color. */
.PageTitle {
    font-family: 'Aptos', 'Segoe UI', 'IBM Plex Sans', Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #1F2522 !important;
    margin: 4px 0 6px 0;
}

.pageIntro {
    font-size: 13px;
    line-height: 19px;
    color: #5A605C;
    max-width: 470px;
    margin: 0;
}

/* ---- Small toggle button (e.g. Zip lookup) ---- */
.pillToggle {
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 4px 8px;
    border: 1px solid #D3D8D4;
    border-radius: 4px;
    background-color: transparent;
    color: #8A908C;
    cursor: pointer;
}

    .pillToggle.on {
        background-color: #F4F6F5;
        border-color: #C9CFCB;
        color: #3A403C;
    }

/* ---- Card ---- */
.CardPage
{
    background-color: #FFFFFF;
    border: 1px solid #D9DEDA;
    border-radius: 8px;
}

.CardHead {
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #3A403C;
    border-bottom: 1px solid #E3E6E4;
}

.CardBody
{
    padding: 12px 14px 14px 14px;
}

/* ---- ASPxFormLayout fields ---- */
.flFields {
    background: transparent !important;
}

    /* Item captions: small, uppercase. Only the caption text: the
       caption cell shares the dxflCaption prefix, and turning the cell
       into a flex box breaks the caption column. */
    .flFields [class*="dxflCaption"]:not([class*="CaptionCell"]) {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 1.1px;
        text-transform: uppercase;
        color: #6A706C !important;
        padding-bottom: 5px !important;
    }

/* =========================================================
   Two-column form (frmGrid)
   Captions in the left column, fields in the right. The caption
   column is as wide as the longest caption, so every field starts
   at the same left edge and no caption wraps. Plain markup, so it
   does not depend on how ASPxFormLayout renders its captions:

   <div class="frmWrap">
     <div class="frmGrid">
       <div class="frmCap">Caption</div>
       <div class="frmFld">editor</div>
       ...
     </div>
   </div>
   ========================================================= */

.frmWrap {
    padding: 22px 28px 6px 28px;
}

.frmGrid {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 14px;
    align-items: start;
}

/* Same caption look as the form layout and the last-updated footer.
   Padding centres the caption on the first line of its field. */
.frmCap {
    padding-top: 9px;
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #6A706C;
}

/* "Status Name (Required):" - the colon comes from here, not the
   markup, so every frmGrid form gets it. */
.frmCap::after {
    content: ':';
}

/* A set of rows that shows and hides together (e.g. the custom
   server fields). display: contents keeps its rows in the grid;
   hide it with style.display = 'none', show it with ''. */
.frmRows {
    display: contents;
}

.frmFld {
    min-width: 0;
}

    /* Checkbox / radio fields: the first item sits level with the caption. */
    .frmFld > .chkCol,
    .frmFld > .chkRow {
        padding-top: 6px;
    }

    .frmFld > .fldRadio {
        margin-top: 2px;
    }

/* Phone only. Not the usual 899px breakpoint: a details popup is an
   iframe only ~700px wide, which would trip it on a desktop. */
@media (max-width: 520px) {

    .frmWrap {
        padding: 14px 14px 4px 14px;
    }

    /* Phone: caption above its field. */
    .frmGrid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    .frmCap {
        padding-top: 0;
        padding-bottom: 5px;
        white-space: normal;
    }

    .frmFld {
        margin-bottom: 14px;
    }

        .frmFld > .chkCol,
        .frmFld > .chkRow {
            padding-top: 0;
        }
}

/* =========================================================
   Two-column form layout (frmLayout)
   CssClass="frmLayout" on an ASPxFormLayout inside .frmWrap.
   Same look as frmGrid: the theme's own padding is removed so
   captions start at the left edge of the wrap (lined up with
   the last-updated footer) and fields end at its right edge.
   ========================================================= */

/* Only the layout's own elements (dxfl...), never "table": the
   editors inside render as tables too, and clearing every table
   took the border off fldEdit boxes. */
.frmLayout,
.frmLayout [class*="dxfl"] {
    background: transparent !important;
    border: 0 !important;
}

    /* The theme pads the root group and every item; the spacing
       below replaces all of it. */
    .frmLayout [class*="dxfl"] {
        padding: 0 !important;
        margin: 0 !important;
    }

    .frmLayout table[class*="dxfl"] {
        border-collapse: collapse !important;
        border-spacing: 0 !important;
    }

    /* Caption column: as wide as the longest caption, 28px gap
       to the fields, 14px between rows (frmGrid's gaps). */
    .frmLayout td[class*="dxflCaptionCell"],
    .frmLayout [class*="dxflCaptionCell"] {
        width: 1% !important;
        white-space: nowrap;
        vertical-align: middle !important;
        padding: 0 28px 14px 0 !important;
    }

    .frmLayout td[class*="dxflNestedControlCell"],
    .frmLayout [class*="dxflNestedControlCell"] {
        width: auto !important;
        vertical-align: middle !important;
        padding: 0 0 14px 0 !important;
    }

    /* Caption text: same as frmCap and luCaption. Only the text,
       not the caption cell (same reason as .flFields). */
    .frmLayout [class*="dxflCaption"]:not([class*="CaptionCell"]),
    .frmLayout .flCap {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 14px !important;
        letter-spacing: 1.1px;
        text-transform: uppercase;
        white-space: nowrap;
        color: #6A706C !important;
        padding: 0 !important;
    }

/* Section heading inside a frmLayout (frmOfficeDetails): a caption-less
   LayoutItem holding <div class="frmSection">Phones</div>. Same look as
   .CardHead. Add frmSectionFirst on the first one so it has no gap above. */
.frmSection {
    margin-top: 10px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #E3E6E4;
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #3A403C;
}

    .frmSection.frmSectionFirst {
        margin-top: 0;
    }

/* The last row's 14px plus the footer's 14px margin would
   double the gap above the divider. */
.frmWrap > .frmLayout {
    margin-bottom: -14px !important;
}

@media (max-width: 520px) {

    /* Phone: caption above its field, like frmGrid. */
    .frmLayout [class*="dxflCaptionCell"],
    .frmLayout [class*="dxflNestedControlCell"] {
        display: block !important;
        width: 100% !important;
    }

    .frmLayout [class*="dxflCaptionCell"] {
        padding: 0 0 5px 0 !important;
        white-space: normal;
    }

    .frmLayout [class*="dxflCaption"]:not([class*="CaptionCell"]) {
        white-space: normal;
    }
}

/* ---- Last updated footer (wucLastUpdated) ----
   Caption on the left, value on the right, same caption
   treatment as the form layout items. */
.luTable {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
}

    .luTable hr {
        height: 0;
        margin: 0 0 10px 0;
        border: 0;
        border-top: 1px solid #E3E6E4;
    }

    .luTable td {
        padding: 2px 0;
        vertical-align: middle;
    }

    /* Caption against the left edge, value against the right edge. */
    .luTable .luCapCell {
        text-align: left;
        white-space: nowrap;
        padding-right: 24px;
    }

    .luTable .luValCell {
        width: 1%;
        text-align: right;
        white-space: nowrap;
    }

.luCaption {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #6A706C !important;
}

.luValue {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    font-size: 13px !important;
    color: #3A403C !important;
}

/* ---- Inline grids (wucPhones, wucEmails) ----
   Same border, radius and caption treatment as the card fields,
   replacing the theme's grey header and default fonts. */
.fldGrid {
    border: 1px solid #D9DEDA !important;
    border-radius: 6px !important;
    overflow: hidden;
    background-color: #FFFFFF !important;
}

    .fldGrid [class*="dxgvTable"] {
        border: 0 !important;
    }

    /* Header: small uppercase captions on a light band */
    .fldGrid [class*="dxgvHeader"] {
        background: #F4F6F5 !important;
        border: 0 !important;
        border-bottom: 1px solid #E3E6E4 !important;
        padding: 8px 8px !important;
    }

        .fldGrid [class*="dxgvHeader"],
        .fldGrid [class*="dxgvHeader"] td {
            font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
            font-size: 10px !important;
            font-weight: 600 !important;
            letter-spacing: 1.1px;
            text-transform: uppercase;
            color: #6A706C !important;
        }

    /* Rows */
    .fldGrid td.dxgv {
        padding: 6px 8px !important;
        border-bottom: 1px solid #EEF0EF !important;
        vertical-align: middle;
    }

    .fldGrid [class*="dxgvDataRowHover"] td.dxgv {
        background-color: #F7F9F8 !important;
    }

    .fldGrid [class*="dxgvFocusedRow"],
    .fldGrid [class*="dxgvFocusedRow"] td.dxgv {
        background-color: #EEF4F0 !important;
        color: inherit !important;
    }

    /* Editors fill their cell. */
    .fldGrid td.dxgv .fldEdit,
    .fldGrid td.dxgv .fldEdit table,
    .fldGrid td.dxgv .fldEdit input,
    .fldGrid td.dxgv .fldToken {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Phone box: fixed width. The masked editor does not fill its
       cell from a percentage, so it gets an explicit size instead. */
    .fldGrid td.dxgv .fldEdit.fldPhone {
        width: 150px !important;
        min-width: 150px !important;
    }

        .fldGrid td.dxgv .fldEdit.fldPhone table,
        .fldGrid td.dxgv .fldEdit.fldPhone td,
        .fldGrid td.dxgv .fldEdit.fldPhone input {
            width: 100% !important;
            min-width: 0 !important;
        }

    /* Empty message */
    .fldGrid [class*="dxgvEmptyDataRow"] td {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 13px !important;
        color: #8A908C !important;
        padding: 18px 8px !important;
        border: 0 !important;
    }

/* ---- List grids (wucGrid) ----
   The card border and radius sit on .listGridWrap rather than the grid,
   so the toolbar's Export submenu isn't clipped by overflow. */
.listGridWrap {
    background-color: #FFFFFF;
    border: 1px solid #D9DEDA;
    border-radius: 8px;
}

/* A page that holds a list gets more room than a form page */
.pageWrap:has(.listGridWrap),
.pageWrap.pageWide {
    max-width: 1600px;
}

/* Grid already inside a .card: the card is the frame, no second border */
.CardPage .listGridWrap
{
    border: 0;
    border-radius: 0;
}

.CardBody:has(> .listGridWrap) {
    padding: 0;
}

.listGrid,
.listGrid [class*="dxgvTable"],
.listGrid [class*="dxgvControl"] {
    border: 0 !important;
    background-color: transparent !important;
}

    .listGrid,
    .listGrid * {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    }

    /* Color on the table, not the cells, so a row's Color value still wins */
    .listGrid [class*="dxgvTable"] {
        font-size: 13px !important;
        color: #3A403C !important;
    }

    /* ---- Toolbar: one row of quiet buttons, count on the right ---- */
    .listGrid [class*="dxgvToolbar"],
    .listGrid [class*="dxgvTitlePanel"],
    .listGrid .dxm-main,
    .listGrid .dxm-main ul {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .listGrid [class*="dxgvToolbar"] {
        padding: 10px 12px !important;
        border-bottom: 1px solid #E3E6E4 !important;
    }

    .listGrid .dxm-item {
        background: transparent !important;
        border: 1px solid transparent !important;
        border-radius: 6px !important;
        margin: 0 4px 0 0 !important;
        transition: background-color .12s ease;
    }

        .listGrid .dxm-item .dxm-content {
            display: flex !important;
            align-items: center;
            gap: 6px;
            padding: 6px 10px !important;
        }

        .listGrid .dxm-item .dxm-image {
            margin: 0 !important;
        }

        .listGrid .dxm-item,
        .listGrid .dxm-item * {
            font-size: 13px !important;
            font-weight: 500;
            color: #3A403C !important;
        }

        .listGrid .dxm-item.dxm-hovered {
            background-color: #F0F2F1 !important;
            border-color: #E3E6E4 !important;
        }

        .listGrid .dxm-item.dxm-disabled {
            opacity: .45;
        }

        .listGrid .dxm-separator {
            display: none !important;
        }

        /* A little extra space after Refresh, before the search item */
        .listGrid .dxm-item.lgLastCmd {
            margin-right: 10px !important;
        }

        /* "Total Job Site Locations: 2" */
        .listGrid .dxm-item.lgTotal,
        .listGrid .dxm-item.lgTotal.dxm-disabled {
            opacity: 1 !important;
            border: 0 !important;
            background: transparent !important;
        }

            .listGrid .dxm-item.lgTotal,
            .listGrid .dxm-item.lgTotal * {
                font-size: 10px !important;
                font-weight: 600 !important;
                letter-spacing: 1.1px;
                text-transform: uppercase;
                color: #6A706C !important;
            }

    /* ---- Search (built-in search panel and the toolbar search) ---- */
    .listGrid [class*="dxgvSearchPanel"] {
        padding: 10px 12px !important;
        background: #FAFBFA !important;
        border: 0 !important;
        border-bottom: 1px solid #E3E6E4 !important;
    }

    .listGrid [class*="dxgvSearchPanel"] [class*="dxeButtonEdit"],
    .listGrid [class*="dxgvSearchPanel"] [class*="dxeTextBox"],
    .listGrid .lgSearch {
        height: 32px !important;
        min-width: 280px;
        box-sizing: border-box;
        border: 1px solid #CFD5D1 !important;
        border-radius: 6px !important;
        background-color: #FFFFFF !important;
        overflow: hidden;
    }

        .listGrid [class*="dxgvSearchPanel"] [class*="dxeButtonEdit"]:focus-within,
        .listGrid [class*="dxgvSearchPanel"] [class*="dxeTextBox"]:focus-within,
        .listGrid .lgSearch:focus-within {
            border-color: #5E9E97 !important;
            box-shadow: 0 0 0 2px rgba(94, 158, 151, .18);
        }

        .listGrid [class*="dxgvSearchPanel"] [class*="dxeButtonEdit"] td,
        .listGrid [class*="dxgvSearchPanel"] [class*="dxeTextBox"] td,
        .listGrid .lgSearch td {
            border: 0 !important;
            background: transparent !important;
        }

        .listGrid [class*="dxgvSearchPanel"] [class*="dxeButtonEdit"] td:first-child,
        .listGrid [class*="dxgvSearchPanel"] [class*="dxeTextBox"] td:first-child,
        .listGrid .lgSearch td:first-child {
            width: 100% !important;
        }

        .listGrid [class*="dxgvSearchPanel"] input,
        .listGrid .lgSearch input {
            width: 100% !important;
            box-sizing: border-box;
            height: 30px !important;
            padding: 0 10px !important;
            font-size: 14px !important;
            font-weight: 400 !important;
            color: #2F3531 !important;
            background: transparent !important;
            border: 0 !important;
        }

    /* ---- Toolbar search (wucGrid tiSearch) ----
       The text box renders as a table, and a table treats height as a
       minimum, so the theme's cell padding was stretching it past 32px.
       The item itself gets no hover box, only its parts do. */
    .listGrid .dxm-item.lgSearchItem,
    .listGrid .dxm-item.lgSearchItem.dxm-hovered {
        background-color: transparent !important;
        border-color: transparent !important;
        cursor: default;
    }

        .listGrid .dxm-item.lgSearchItem .dxm-content {
            padding: 0 !important;
        }

    .listGrid .lgSearchTable {
        border-collapse: collapse;
    }

        .listGrid .lgSearchTable > tbody > tr > td {
            padding: 0 !important;
            vertical-align: middle;
        }

            .listGrid .lgSearchTable > tbody > tr > td + td {
                padding-left: 6px !important;
            }

    .listGrid .lgSearch td,
    .listGrid .lgSearch .dxic {
        padding: 0 !important;
        height: 30px !important;
    }

    .listGrid .lgSearch input {
        margin: 0 !important;
        line-height: 30px !important;
    }

    /* Search / clear icons: outlined square buttons, same as the box */
    .listGrid .lgSearchBtn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        box-sizing: border-box;
        padding: 0 !important;
        border: 1px solid #CFD5D1 !important;
        border-radius: 6px !important;
        background-color: #FFFFFF !important;
        cursor: pointer;
        transition: background-color .12s ease;
    }

        .listGrid .lgSearchBtn:hover {
            background-color: #F0F2F1 !important;
        }

        .listGrid .lgSearchBtn img {
            margin: 0 !important;
        }

    /* Search / Clear: small outlined buttons instead of underlined links */
    .listGrid [class*="dxgvSearchPanel"] a,
    .listGrid [class*="dxgvSearchPanel"] [class*="dxbButton"] {
        display: inline-flex !important;
        align-items: center;
        height: 32px;
        box-sizing: border-box;
        padding: 0 12px !important;
        margin-left: 6px !important;
        border: 1px solid #CFD5D1 !important;
        border-radius: 6px !important;
        background: #FFFFFF !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #3A403C !important;
        text-decoration: none !important;
        cursor: pointer;
    }

        .listGrid [class*="dxgvSearchPanel"] a *,
        .listGrid [class*="dxgvSearchPanel"] [class*="dxbButton"] * {
            text-decoration: none !important;
            color: inherit !important;
            font: inherit !important;
        }

        .listGrid [class*="dxgvSearchPanel"] a:hover,
        .listGrid [class*="dxgvSearchPanel"] [class*="dxbButton"]:hover {
            background: #F0F2F1 !important;
        }

    /* ---- Header: small uppercase captions on a light band ---- */
    .listGrid [class*="dxgvHeader"] {
        background: #F4F6F5 !important;
        border: 0 !important;
        border-bottom: 1px solid #E3E6E4 !important;
        padding: 9px 12px !important;
    }

        .listGrid [class*="dxgvHeader"],
        .listGrid [class*="dxgvHeader"] td {
            font-size: 10px !important;
            font-weight: 600 !important;
            letter-spacing: 1.1px;
            text-transform: uppercase;
            color: #6A706C !important;
        }

    /* ---- Rows ---- */
    .listGrid td.dxgv {
        padding: 11px 12px !important;
        border: 0 !important;
        border-bottom: 1px solid #EEF0EF !important;
        vertical-align: middle;
    }

    .listGrid [class*="dxgvDataRowHover"] td.dxgv {
        background-color: #F5F7F6 !important;
    }

    /* Selected row: same teal as the selected menu entry, a bar on the
       left, and dark text (the theme turns it white). */
    .listGrid [class*="dxgvFocusedRow"],
    .listGrid [class*="dxgvFocusedRow"] td.dxgv {
        background-color: #D9EAE9 !important;
    }

        .listGrid [class*="dxgvFocusedRow"] td.dxgv,
        .listGrid [class*="dxgvFocusedRow"] td.dxgv *,
        .listGrid [class*="dxgvFocusedRow"] td.dxgv a {
            color: #1F3533 !important;
        }

        .listGrid [class*="dxgvFocusedRow"] td.dxgv:first-child {
            box-shadow: inset 3px 0 0 #5E9E97;
        }

        .listGrid [class*="dxgvFocusedRow"] td.dxgv {
            border-bottom-color: #C6DEDC !important;
        }

    /* First column link (opens the record): always underlined, so it
       reads as a link before the mouse is over it. */
    .listGrid td.dxgv a[class*="dxeHyperlink"] {
        font-weight: 600 !important;
        text-decoration: underline !important;
        text-underline-offset: 2px;
        cursor: pointer;
    }

        .listGrid td.dxgv a[class*="dxeHyperlink"]:hover {
            text-decoration-thickness: 2px;
        }

    /* Note column "more / less" */
    .listGrid td.dxgv a[id^="lnk_"] {
        font-size: 12px !important;
        font-weight: 600;
        color: #3F7A4A !important;
        text-decoration: none;
    }

    /* ---- Empty message ---- */
    .listGrid [class*="dxgvEmptyDataRow"] td {
        font-size: 13px !important;
        color: #8A908C !important;
        padding: 22px 12px !important;
        border: 0 !important;
    }

    /* ---- Detail rows (client job sites) ---- */
    .listGrid [class*="dxgvDetailCell"] {
        padding: 10px 14px 14px 40px !important;
        background-color: #FAFBFA !important;
        border: 0 !important;
        border-bottom: 1px solid #E3E6E4 !important;
    }

.listGridDetail {
    background-color: #FFFFFF !important;
    border: 1px solid #D9DEDA !important;
    border-radius: 6px !important;
    overflow: hidden;
}

@media (max-width: 899px) {

    .listGrid [class*="dxgvSearchPanel"] [class*="dxeButtonEdit"],
    .listGrid [class*="dxgvSearchPanel"] [class*="dxeTextBox"],
    .listGrid .lgSearch {
        min-width: 0;
        width: 100% !important;
    }
}

@media (hover: none) and (pointer: coarse) {

    .listGrid td.dxgv {
        padding-top: 13px !important;
        padding-bottom: 13px !important;
    }

    .listGrid [class*="dxgvDataRowHover"]:not([class*="dxgvFocusedRow"]) td.dxgv {
        background-color: transparent !important;
    }
}

/* Token box (Use For): boxed like .fldEdit, but grows with tokens */
.fldToken {
    width: 100% !important;
    min-height: 30px;
    box-sizing: border-box;
    border: 1px solid #CFD5D1 !important;
    border-radius: 6px !important;
    background-color: #FFFFFF !important;
}

    .fldToken:focus-within {
        border-color: #5E9E97 !important;
        box-shadow: 0 0 0 2px rgba(94, 158, 151, .18);
    }

    .fldToken td {
        background: transparent !important;
        border: 0 !important;
    }

    .fldToken input {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 14px !important;
        color: #2F3531 !important;
        border: 0 !important;
        background: transparent !important;
    }

    /* Tokens: soft pills instead of the theme's boxed chips.
       Matches any token span regardless of theme suffix, but not the
       box itself, its input, or the token's own text/remove parts. */
    .fldToken [class*="dxeToken"]:not(input):not([class*="TokenBox"]):not([class*="TokenText"]):not([class*="RemoveButton"]) {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px;
        height: 22px !important;
        box-sizing: border-box;
        margin: 3px 0 3px 4px !important;
        padding: 0 6px 0 9px !important;
        border: 1px solid #CFE0D3 !important;
        border-radius: 11px !important;
        background: #EEF4F0 !important;
        background-image: none !important;
        vertical-align: middle;
        float: none !important;
    }

    .fldToken [class*="TokenText"] {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        line-height: 20px !important;
        color: #2F5A37 !important;
        padding: 0 !important;
    }

    .fldToken [class*="RemoveButton"] {
        opacity: .55;
        margin: 0 !important;
        cursor: pointer;
    }

        .fldToken [class*="RemoveButton"]:hover {
            opacity: 1;
        }

/* "Add New ..." link under the grids */
.addLink,
.addLink span {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600;
    color: #3F7A4A !important;
    text-decoration: none !important;
}

    .addLink:hover span {
        text-decoration: underline !important;
    }

/* Caption markers (set per item with <CaptionStyle CssClass="..." />) */
.capDot::before,
.capSquare::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    vertical-align: middle;
}

.capDot::before {
    border-radius: 50%;
    background-color: #3F7A4A;
}

.capSquare::before {
    background-color: #9A7A2C;
}

/* ---- DevExpress editors inside the form layout ----
   The editor renders an inner table, so the container is clipped
   to its own radius; otherwise the table's square corners sit on
   top of the rounding and the edges look flat. */
.fldEdit {
    width: 100% !important;
    height: 30px !important;
    box-sizing: border-box;
    border: 1px solid #CFD5D1 !important;
    border-radius: 6px !important;
    background-color: #FFFFFF !important;
    overflow: hidden;
}

    .fldEdit table,
    .fldEdit input,
    .fldEdit textarea {
        border-radius: 6px !important;
    }

    .fldEdit:focus-within {
        border-color: #5E9E97 !important;
        box-shadow: 0 0 0 2px rgba(94, 158, 151, .18);
    }

    .fldEdit td,
    .fldEdit input,
    .fldEdit textarea {
        background-color: transparent !important;
        border: 0 !important;
    }

    .fldEdit input,
    .fldEdit textarea {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 14px !important;
        color: #2F3531 !important;
        padding-left: 4px !important;
    }

        .fldEdit input[class*="dxeNullText"],
        .fldEdit textarea[class*="dxeNullText"],
        .fldEdit[class*="dxeNullText"] input,
        .fldEdit input::placeholder,
        .fldEdit textarea::placeholder {
            color: #9AA09C !important;
        }

    .fldEdit [class*="dxeButton"] {
        background: transparent !important;
        border: 0 !important;
    }

/* ---- Button inside a box (ASPxButtonEdit "Browse") ----
   <ButtonStyle CssClass="fldEditBtn" /> on the ButtonEdit. A tinted
   segment at the right end of the box, icon and text on one line.
   td.fldEditBtn: beats the ".fldEdit td" and ".fldEdit [class*=dxeButton]"
   rules above, which make every cell transparent. */
.fldEdit td.fldEditBtn,
.fldEdit .fldEditBtn {
    padding: 0 10px !important;
    border: 0 !important;
    border-left: 1px solid #E3E6E4 !important;
    background-color: #F4F6F5 !important;
    vertical-align: middle !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .fldEdit td.fldEditBtn:hover,
    .fldEdit .fldEditBtn:hover {
        background-color: #E9ECEA !important;
    }

    .fldEdit .fldEditBtn,
    .fldEdit .fldEditBtn * {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #3A403C !important;
        line-height: 16px !important;
        text-decoration: none !important;
    }

    .fldEdit .fldEditBtn img {
        vertical-align: middle !important;
        margin: 0 6px 0 0 !important;
    }

/* =========================================================
   Drop zone (ASPxUploadControl with drag and drop)
   A dashed frame around the upload control. Set the upload's
   ExternalDropZoneID to the frame's id, and its DropZoneEnter /
   DropZoneLeave events to SetDropZoneActive(), which adds
   dzActive while files are dragged over it.

   <div id="..." class="dropZone">
     <div class="dzHint" onclick="...open the file picker...">
       <svg class="dzIcon">...</svg>
       <div>
         <div class="dzTitle">Drag & drop documents here</div>
         <div class="dzSub">or click to browse</div>
       </div>
     </div>
     upload control (CssClass="fldUpload")
   </div>
   ========================================================= */

.dropZone {
    box-sizing: border-box;
    padding: 8px 12px 10px 12px;
    border: 2px dashed #CFD5D1;
    border-radius: 8px;
    background-color: #FAFBFA;
    transition: border-color .12s ease, background-color .12s ease;
}

    .dropZone:hover {
        border-color: #A9B2AC;
    }

    /* Files dragged over it: same teal as the selected menu entry */
    .dropZone.dzActive {
        border-color: #5E9E97;
        border-style: solid;
        background-color: #D9EAE9;
    }

.dzHint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 2px 0 8px 0;
    text-align: left;
    cursor: pointer;
}

.dzIcon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: #8EC3C0;
    transition: color .12s ease;
}

.dzTitle {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 17px;
    color: #3A403C;
}

.dzSub {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    line-height: 14px;
    color: #6A706C;
}

    .dzHint:hover .dzTitle {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

.dropZone.dzActive .dzIcon {
    color: #5E9E97;
}

.dropZone.dzActive .dzTitle {
    color: #1F3533;
}

/* Upload control (CssClass="fldUpload"): text box framed like
   fldEdit, Browse like btnAction */
.fldUpload,
.fldUpload table,
.fldUpload td {
    background: transparent !important;
    border: 0 !important;
}

.fldUpload .uplText {
    height: 30px !important;
    box-sizing: border-box;
    border: 1px solid #CFD5D1 !important;
    border-radius: 6px !important;
    background-color: #FFFFFF !important;
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    color: #2F3531 !important;
}

    .fldUpload .uplText input {
        border: 0 !important;
        background: transparent !important;
        font: inherit !important;
        color: inherit !important;
    }

.fldUpload .uplBrowseBtn {
    padding: 6px 14px !important;
    border: 1px solid #CFD5D1 !important;
    border-radius: 6px !important;
    background: #FFFFFF none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .12s ease;
}

    .fldUpload .uplBrowseBtn:hover {
        background-color: #F0F2F1 !important;
    }

    .fldUpload .uplBrowseBtn,
    .fldUpload .uplBrowseBtn * {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #3A403C !important;
        text-decoration: none !important;
    }

    .fldUpload .uplBrowseBtn img {
        margin-right: 8px !important;
        vertical-align: middle;
    }

/* Touch: no sticky hover after a tap */
@media (hover: none) and (pointer: coarse) {

    .dropZone:hover {
        border-color: #CFD5D1;
    }

    .dzHint:hover .dzTitle {
        text-decoration: none;
    }
}

@media (max-width: 520px) {

    .dropZone {
        padding: 6px 10px 8px 10px;
    }

    .dzHint {
        padding: 2px 0 6px 0;
    }
}

/* ---- Logo buttons (frmOfficeDetails): Change / Delete under the logo ----
   btnAction buttons stacked at the logo's width, centred like loginBtn. */
.logoBtns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 117px;
    margin: 12px auto 0 auto;
}

.btnAction.logoBtn {
    width: 100% !important;
    justify-content: center;
}

    .btnAction.logoBtn .dxb {
        width: 100%;
        justify-content: center;
    }

/* =========================================================
   Drop-downs: combo box lists and date picker calendars
   DevExpress renders these in their own window outside the
   editor, so .fldEdit never reaches them. Matched by the
   theme's class prefixes instead, which covers every combo
   box, token box and date edit in the app. Same palette as
   the fields: hairline border, grey hover, teal selection.
   ========================================================= */

/* ---- The drop-down window ---- */
[class*="dxpcDropDown"] {
    margin-top: 2px;
    background-color: #FFFFFF !important;
    border: 1px solid #D9DEDA !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
    overflow: hidden;
}

    [class*="dxpcDropDown"] [class*="dxpc-mainDiv"],
    [class*="dxpcDropDown"] [class*="dxpc-contentWrapper"],
    [class*="dxpcDropDown"] [class*="dxpc-content"] {
        background-color: #FFFFFF !important;
        border: 0 !important;
        box-shadow: none !important;
    }

/* ---- List (combo box, token box) ---- */
[class*="dxpcDropDown"] [class*="dxeListBox"],
[class*="dxpcDropDown"] [class*="dxeListBox"] table {
    background-color: #FFFFFF !important;
    border: 0 !important;
}

    [class*="dxpcDropDown"] [class*="dxeListBoxItem"],
    [class*="dxpcDropDown"] [class*="dxeListBoxItem"] td {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 18px !important;
        color: #3A403C !important;
        background-color: transparent !important;
        border: 0 !important;
        cursor: pointer;
    }

    [class*="dxpcDropDown"] td[class*="dxeListBoxItem"],
    [class*="dxpcDropDown"] [class*="dxeListBoxItem"] > td {
        padding: 7px 12px !important;
    }

    [class*="dxpcDropDown"] [class*="dxeListBoxItemHover"],
    [class*="dxpcDropDown"] [class*="dxeListBoxItemHover"] td,
    [class*="dxpcDropDown"] [class*="dxeListBoxItem"]:hover,
    [class*="dxpcDropDown"] [class*="dxeListBoxItem"]:hover td {
        background-color: #F0F2F1 !important;
    }

    [class*="dxpcDropDown"] [class*="dxeListBoxItemSelected"],
    [class*="dxpcDropDown"] [class*="dxeListBoxItemSelected"] td {
        background-color: #D9EAE9 !important;
        color: #1F3533 !important;
        font-weight: 500 !important;
    }

/* ---- Calendar (date edit) ---- */
[class*="dxpcDropDown"] [class*="dxeCalendar"],
[class*="dxpcDropDown"] [class*="dxeCalendar"] td,
[class*="dxpcDropDown"] [class*="dxeCalendar"] table {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border-color: transparent !important;
    color: #3A403C;
}

    /* Month and year bar */
    [class*="dxpcDropDown"] [class*="dxeCalendarHeader"],
    [class*="dxpcDropDown"] [class*="dxeCalendarHeader"] td {
        background-color: #F4F6F5 !important;
        border: 0 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #1F2522 !important;
    }

    /* Mo Tu We ... */
    [class*="dxpcDropDown"] [class*="dxeCalendarDayHeader"] {
        font-size: 10px !important;
        font-weight: 600 !important;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #6A706C !important;
        border: 0 !important;
    }

    /* Days */
    [class*="dxpcDropDown"] td[class*="dxeCalendarDay"]:not([class*="DayHeader"]) {
        font-size: 13px !important;
        border: 1px solid transparent !important;
        border-radius: 6px !important;
        cursor: pointer;
        transition: background-color .12s ease;
    }

        [class*="dxpcDropDown"] td[class*="dxeCalendarDay"]:not([class*="DayHeader"]):hover,
        [class*="dxpcDropDown"] td[class*="dxeCalendarDayHover"],
        [class*="dxpcDropDown"] td[class*="dxeCalendarHover"] {
            background-color: #F0F2F1 !important;
        }

    [class*="dxpcDropDown"] td[class*="dxeCalendarWeekend"] {
        color: #8A6A3C !important;
    }

    [class*="dxpcDropDown"] td[class*="dxeCalendarOtherMonth"] {
        color: #A9B2AC !important;
    }

    [class*="dxpcDropDown"] td[class*="dxeCalendarToday"] {
        border-color: #8EC3C0 !important;
        font-weight: 600 !important;
    }

    [class*="dxpcDropDown"] td[class*="dxeCalendarSelected"] {
        background-color: #D9EAE9 !important;
        border-color: #8EC3C0 !important;
        color: #1F3533 !important;
        font-weight: 600 !important;
    }

    /* Footer (Today / Clear) */
    [class*="dxpcDropDown"] [class*="dxeCalendarFooter"] {
        background-color: #FFFFFF !important;
        border: 0 !important;
        border-top: 1px solid #E3E6E4 !important;
        padding: 8px !important;
    }

    [class*="dxpcDropDown"] [class*="dxeCalendarButton"] {
        padding: 5px 12px !important;
        border: 1px solid #CFD5D1 !important;
        border-radius: 6px !important;
        background-color: #FFFFFF !important;
        background-image: none !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #3A403C !important;
        cursor: pointer;
    }

        [class*="dxpcDropDown"] [class*="dxeCalendarButton"]:hover {
            background-color: #F0F2F1 !important;
        }

/* Short numeric fields (load order, quantity): fixed width instead
   of filling the column. Add next to fldEdit. */
.fldEdit.fldNarrow,
.flFields .fldEdit.fldNarrow {
    width: 120px !important;
    max-width: 120px !important;
}

/* Multi-line box (ASPxMemo): same frame as fldEdit, but it keeps its own
   height (Rows) instead of the 30px single-line height. */
.fldMemo {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #CFD5D1 !important;
    border-radius: 6px !important;
    background-color: #FFFFFF !important;
    overflow: hidden;
}

    .fldMemo:focus-within {
        border-color: #5E9E97 !important;
        box-shadow: 0 0 0 2px rgba(94, 158, 151, .18);
    }

    .fldMemo td,
    .fldMemo textarea {
        background-color: transparent !important;
        border: 0 !important;
    }

    .fldMemo textarea {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 20px !important;
        color: #2F3531 !important;
        padding: 6px 8px !important;
        resize: vertical;
    }

        .fldMemo textarea::placeholder,
        .fldMemo textarea[class*="dxeNullText"],
        .fldMemo[class*="dxeNullText"] textarea {
            color: #9AA09C !important;
        }

/* Date range: two date boxes with "to" between them (frmJobSiteLocationDetails).
   <div class="dateRange"> date edit <span class="dateRangeSep">to</span> date edit </div> */
.dateRange {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dateRange > table,
    .dateRange > div {
        flex: 1 1 0;
        min-width: 0;
    }

.dateRangeSep {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #6A706C;
}

@media (max-width: 520px) {

    .dateRange {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .dateRangeSep {
        align-self: center;
    }

    .fldMemo textarea {
        font-size: 16px !important;
    }
}

.toggleAlign {
    display: flex !important;
    align-items: center !important;
    padding-top: 6px;
    gap: 8px;
}

    .toggleAlign .dxSwitch,
    .toggleAlign .dxICheckBox_Switch {
        flex-shrink: 0;
    }

    .toggleAlign label {
        flex: 1;
        display: block;
        line-height: 1.4;
    }

.chkAlign {
    display: flex !important;
    align-items: center !important;
    padding-top: 6px;
}

    .chkAlign input[type="checkbox"] {
        width: 16px;
        height: 16px;
        transform: scale(1.3);
        margin-right: 8px;
        flex-shrink: 0;
    }

    .chkAlign label {
        flex: 1;
        display: block;
        line-height: 1.4;
    }

.fldWithHelpBtn {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 6px;
    width: 100%;
}

    .fldWithHelpBtn table {
        width: 100% !important;
        flex: 1 1 auto;
        min-width: 0; /* critical: tables don't shrink in flex without this */
    }

.fldHelpBtn {
    flex: 0 0 auto;
    flex-shrink: 0;
}


/* =========================================================
   Checkboxes (ASPxCheckBox, ASPxCheckBoxList)
   CssClass="fldCheck" on a single checkbox, "fldCheckList" on a
   list. Not fldEdit: a checkbox has no input to frame, so the
   boxed 30px field styling would just draw an empty rounded
   rectangle around it.

   Two classes because the roots differ — a list is a table, a
   single checkbox is an inline item — but everything from the
   box down is shared, so the two render identically.

   The theme paints the box as a sprite background on an empty
   span, so the sprite is cleared and the box redrawn here. That
   leaves ::after free for the tick.
   ========================================================= */

/* ---- Single checkbox ---- */
.fldCheck {
    display: inline-flex !important;
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer;
}

    /* Older builds lay the box and the text out in a table. */
    .fldCheck table,
    .fldCheck tbody,
    .fldCheck tr,
    .fldCheck td {
        background: transparent !important;
        border: 0 !important;
        vertical-align: middle !important;
    }

/* ---- List ----
   One cell per item, and each item is a small table of its own,
   so the gap between items goes on the outer cell only; left on
   every cell it would also sit between the box and its label. */
.fldCheckList,
.fldCheckList table,
.fldCheckList tbody,
.fldCheckList tr,
.fldCheckList td {
    background: transparent !important;
    border: 0 !important;
}

.fldCheckList {
    width: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

    .fldCheckList td {
        padding: 3px 20px 3px 0 !important;
        vertical-align: middle !important;
    }

        .fldCheckList td td,
        .fldCheckList td table {
            padding: 0 !important;
            border-spacing: 0 !important;
            vertical-align: middle !important;
        }

    /* One item: matched as the cell's own child, so it works whether
   the item renders as a span or as an inner table. */
    .fldCheckList > tbody > tr > td > * {
        background: transparent !important;
        border: 0 !important;
        cursor: pointer;
    }

    .fldCheckList > tbody > tr > td > span {
        display: inline-flex !important;
        align-items: center;
    }

    /* ---- The box ---- */
    .fldCheck [class*="dxichCheckBox"],
    .fldCheckList [class*="dxichCheckBox"],
    .fldCheck [class*="edtCheckBox"],
    .fldCheckList [class*="edtCheckBox"] {
        position: relative;
        display: inline-block;
        flex: 0 0 auto;
        width: 18px !important;
        height: 18px !important;
        box-sizing: border-box;
        background: #FFFFFF none !important;
        border: 1px solid #CFD5D1 !important;
        border-radius: 4px !important;
        transition: background-color .12s ease, border-color .12s ease;
    }

    /* Hover is scoped to the unchecked box: it is written after the
   checked rule below, so an unscoped hover would win on specificity
   and grey out the border of a box that is actually ticked. In a
   list it goes on the cell, or hovering anywhere would light up
   every item at once. */
    .fldCheck:hover [class*="edtCheckBoxUnchecked"],
    .fldCheckList td:hover [class*="edtCheckBoxUnchecked"] {
        border-color: #A9B2AC !important;
    }

    /* ---- Checked ----
   Tinted the same way as a selected step in the sidebar rather
   than solid-filled, so the state reads as part of the palette.
   For a heavier state, use background-color and border-color
   #5E9E97 here and a #FFFFFF tick below. */
    .fldCheck [class*="edtCheckBoxChecked"],
    .fldCheck [class*="edtCheckBoxGrayed"],
    .fldCheck [class*="edtCheckBoxIndeterminate"],
    .fldCheckList [class*="edtCheckBoxChecked"],
    .fldCheckList [class*="edtCheckBoxGrayed"],
    .fldCheckList [class*="edtCheckBoxIndeterminate"] {
        background-color: #D9EAE9 !important;
        border-color: #8EC3C0 !important;
    }

        /* The tick is two borders of a rotated box. */
        .fldCheck [class*="edtCheckBoxChecked"]::after,
        .fldCheckList [class*="edtCheckBoxChecked"]::after {
            content: '';
            position: absolute;
            left: 6px;
            top: 2px;
            width: 4px;
            height: 9px;
            border: solid #2F6663;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        /* Grayed / indeterminate: a bar instead of a tick. */
        .fldCheck [class*="edtCheckBoxGrayed"]::after,
        .fldCheck [class*="edtCheckBoxIndeterminate"]::after,
        .fldCheckList [class*="edtCheckBoxGrayed"]::after,
        .fldCheckList [class*="edtCheckBoxIndeterminate"]::after {
            content: '';
            position: absolute;
            left: 3px;
            top: 7px;
            width: 10px;
            height: 2px;
            border-radius: 1px;
            background-color: #2F6663;
        }

    /* Keyboard focus. The tab stop is on the control root (single) or
   the item (list), so the ring goes on the box; the root's own
   outline is dropped to avoid two rings around the same control. */
    .fldCheck:focus,
    .fldCheck:focus-visible,
    .fldCheckList :focus,
    .fldCheckList :focus-visible {
        outline: none;
    }

        .fldCheck:focus-within [class*="edtCheckBox"],
        .fldCheckList td:focus-within [class*="edtCheckBox"],
        .fldCheck:focus [class*="dxichCheckBox"],
        .fldCheck:focus-visible [class*="dxichCheckBox"],
        .fldCheck:focus-within [class*="dxichCheckBox"],
        .fldCheck[class*="Focused"] [class*="dxichCheckBox"],
        .fldCheckList td:focus-within [class*="dxichCheckBox"],
        .fldCheckList [class*="Focused"] [class*="dxichCheckBox"] {
            border-color: #5E9E97 !important;
            box-shadow: 0 0 0 2px rgba(94, 158, 151, .18);
        }

    /* ---- Label ---- */
    .fldCheck [class*="dxichTextCell"],
    .fldCheckList [class*="dxichTextCell"] {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 18px;
        color: #3A403C !important;
        padding: 0 0 0 9px !important;
        white-space: normal;
    }

    /* ---- Disabled ---- */
    .fldCheck[class*="Disabled"],
    .fldCheckList[class*="Disabled"],
    .fldCheckList [class*="Disabled"] {
        cursor: default;
    }

        .fldCheck[class*="Disabled"] [class*="edtCheckBox"],
        .fldCheckList [class*="Disabled"] [class*="edtCheckBox"],
        .fldCheck[class*="Disabled"] [class*="dxichCheckBox"],
        .fldCheckList[class*="Disabled"] [class*="dxichCheckBox"],
        .fldCheckList [class*="Disabled"] [class*="dxichCheckBox"] {
            background-color: #F4F6F5 !important;
            border-color: #DDE1DE !important;
        }

        .fldCheck[class*="Disabled"] [class*="edtCheckBoxChecked"]::after,
        .fldCheckList[class*="Disabled"] [class*="edtCheckBoxChecked"]::after,
        .fldCheckList [class*="Disabled"] [class*="edtCheckBoxChecked"]::after {
            border-color: #9AA09C;
        }

        .fldCheck[class*="Disabled"] [class*="dxichTextCell"],
        .fldCheckList[class*="Disabled"] [class*="dxichTextCell"],
        .fldCheckList [class*="Disabled"] [class*="dxichTextCell"] {
            color: #9AA09C !important;
        }

/* Wrapper for a stack of separate checkboxes in one field. A
   CheckBoxList does its own stacking with RepeatDirection. */
.chkCol {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* =========================================================
   Built-in toggle switch (ToggleSwitchDisplayMode="Always")
   Use CssClass="fldSwitch" here, not fldCheck: the checkbox
   rules redraw [class*="dxichCheckBox"] as an 18px square and
   would squash the switch's track.

   DevExpress paints the switch itself and its state class name
   differs between builds, so the on state is carried by an isOn
   class that the control's own client events put on the root.
   Nothing below depends on the theme's internal markup, and the
   row background is left untouched in both states.
   ========================================================= */

.fldSwitch {
    display: inline-flex !important;
    align-items: center;
    padding: 4px 11px 4px 7px;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    background: transparent !important;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

    .fldSwitch table,
    .fldSwitch tbody,
    .fldSwitch tr,
    .fldSwitch td {
        background: transparent !important;
        border: 0 !important;
        vertical-align: middle !important;
    }

    .fldSwitch:focus,
    .fldSwitch:focus-visible {
        outline: none;
    }

    .fldSwitch:focus-within {
        border-color: #5E9E97 !important;
        box-shadow: 0 0 0 2px rgba(94, 158, 151, .18);
    }

    /* ---- Label ----
   The row keeps its own background in both states, so the label
   carries the on state on its own: grey when off, dark when on.
   Weight stays the same either way, so the text does not shift
   as it changes state. */
    .fldSwitch [class*="dxichTextCell"] {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 18px;
        color: #6A706C !important;
        padding: 0 0 0 10px !important;
        white-space: normal;
        transition: color .12s ease;
    }

    .fldSwitch.isOn [class*="dxichTextCell"] {
        color: #1F3533 !important;
    }

    .fldSwitch[class*="Disabled"] {
        cursor: default;
        opacity: .6;
    }

/* =========================================================
   Radio buttons (ASPxRadioButtonList, ASPxRadioButton)
   CssClass="fldRadio" works for both: the list renders a table
   of items and each item has the same internals as a checkbox,
   so the root selectors below match either the table (list) or
   the item span itself (single radio).

   Same treatment as the checkbox, with the box drawn round and
   a dot on ::after instead of a tick.
   ========================================================= */

.fldRadio,
.fldRadio table,
.fldRadio tbody,
.fldRadio tr,
.fldRadio td {
    background: transparent !important;
    border: 0 !important;
}

.fldRadio {
    width: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

    /* The gap between items lives here rather than on ItemSpacing,
   which renders into the markup and has to be set per control. */
    .fldRadio td {
        padding: 3px 20px 3px 0 !important;
        vertical-align: middle !important;
    }

        /* Each item is a small table of its own inside the list cell, so
   the rule above lands on the cell holding the circle too and
   pushes the label away from it. Inner cells carry no spacing. */
        .fldRadio td td,
        .fldRadio td table {
            padding: 0 !important;
            border-spacing: 0 !important;
            vertical-align: middle !important;
        }

        /* ---- One item ----
   Three selectors for the same thing: a list item, a single
   ASPxRadioButton carrying the class itself, and a build whose
   item span is named something other than dxichBase. */
        .fldRadio [class*="dxichBase"],
        .fldRadio[class*="dxichBase"],
        .fldRadio td > span {
            display: inline-flex !important;
            align-items: center;
            background: transparent !important;
            border: 0 !important;
            cursor: pointer;
        }

    /* ---- The circle ---- */
    .fldRadio [class*="dxichCheckBox"],
    .fldRadio [class*="edtRadioButton"] {
        position: relative;
        display: inline-block;
        flex: 0 0 auto;
        width: 18px !important;
        height: 18px !important;
        box-sizing: border-box;
        background: #FFFFFF none !important;
        border: 1px solid #CFD5D1 !important;
        border-radius: 50% !important;
        transition: background-color .12s ease, border-color .12s ease;
    }

    /* Hover on the cell, not on the control: hovering anywhere in a
   list would otherwise light up every item at once. Scoped to the
   unchecked circle so it cannot grey out the selected one. */
    .fldRadio td:hover [class*="edtRadioButtonUnchecked"],
    .fldRadio[class*="dxichBase"]:hover [class*="edtRadioButtonUnchecked"] {
        border-color: #A9B2AC !important;
    }

    /* ---- Selected ---- */
    .fldRadio [class*="edtRadioButtonChecked"] {
        background-color: #D9EAE9 !important;
        border-color: #8EC3C0 !important;
    }

        .fldRadio [class*="edtRadioButtonChecked"]::after {
            content: '';
            position: absolute;
            left: 4px;
            top: 4px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #2F6663;
        }

    /* Keyboard focus: the tab stop is the item, so the ring goes on
   its circle. */
    .fldRadio:focus,
    .fldRadio :focus,
    .fldRadio :focus-visible {
        outline: none;
    }

    .fldRadio td:focus-within [class*="edtRadioButton"],
    .fldRadio [class*="dxichBase"]:focus [class*="edtRadioButton"],
    .fldRadio[class*="dxichBase"]:focus [class*="edtRadioButton"],
    .fldRadio [class*="Focused"] [class*="edtRadioButton"],
    .fldRadio[class*="Focused"] [class*="edtRadioButton"] {
        border-color: #5E9E97 !important;
        box-shadow: 0 0 0 2px rgba(94, 158, 151, .18);
    }

    /* ---- Label ---- */
    .fldRadio [class*="dxichTextCell"] {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 14px !important;
        line-height: 18px;
        color: #3A403C !important;
        padding: 0 0 0 9px !important;
        white-space: normal;
    }

    /* ---- Disabled ---- */
    .fldRadio[class*="Disabled"],
    .fldRadio [class*="Disabled"] {
        cursor: default;
    }

        .fldRadio[class*="Disabled"] [class*="edtRadioButton"],
        .fldRadio [class*="Disabled"] [class*="edtRadioButton"] {
            background-color: #F4F6F5 !important;
            border-color: #DDE1DE !important;
        }

        .fldRadio[class*="Disabled"] [class*="edtRadioButtonChecked"]::after,
        .fldRadio [class*="Disabled"] [class*="edtRadioButtonChecked"]::after {
            background-color: #9AA09C;
        }

        .fldRadio[class*="Disabled"] [class*="dxichTextCell"],
        .fldRadio [class*="Disabled"] [class*="dxichTextCell"] {
            color: #9AA09C !important;
        }

/* ---- Box and circle size guard ----
   The theme pads its checkbox/radio sprite element, and some builds
   render it as a table cell, which stretched the 18px box into a
   tall oval. Sizes still come from the rules above (and the 20px
   mobile ones below). */
.fldCheck [class*="dxichCheckBox"],
.fldCheckList [class*="dxichCheckBox"],
.fldCheck [class*="edtCheckBox"],
.fldCheckList [class*="edtCheckBox"],
.fldRadio [class*="dxichCheckBox"],
.fldRadio [class*="edtRadioButton"] {
    display: inline-block !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    line-height: 0 !important;
    align-self: center;
    vertical-align: middle !important;
}

/* Separate checkboxes side by side in one field; wraps when narrow.
   chkCol stacks them instead. */
.chkRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 24px;
    row-gap: 4px;
}

/* ---- Full width ----
   Add fldRadioFull next to fldRadio to stretch the list across the
   field, with each choice taking an equal share. Plain fldRadio
   stays as wide as its items. */
.fldRadio.fldRadioFull {
    width: 100% !important;
    table-layout: fixed;
}

    .fldRadio.fldRadioFull > tbody > tr > td {
        padding-right: 0 !important;
    }

/* ---- Optional: one bordered row per choice ----
   Add fldRadioCards next to fldRadio for a set of choices that
   carry weight (a closing type, a fee basis) rather than a plain
   yes/no. The selected row is tinted with :has(); a browser
   without :has() support just shows plain rows, and the dot still
   says which one is selected. */
.fldRadioCards {
    width: 100% !important;
}

    .fldRadioCards > tbody > tr > td {
        width: 100%;
        padding: 0 0 6px 0 !important;
    }

        /* The card chrome goes on whatever the item renders as — span or
   inner table — so it is matched as the cell's own child rather
   than by class. */
        .fldRadioCards > tbody > tr > td > * {
            width: 100%;
            box-sizing: border-box;
            padding: 9px 11px;
            border: 1px solid #DDE1DE !important;
            border-radius: 6px !important;
            background-color: #FFFFFF !important;
            transition: background-color .12s ease, border-color .12s ease;
        }

        .fldRadioCards > tbody > tr > td:hover > * {
            border-color: #C9CFCB !important;
        }

        .fldRadioCards > tbody > tr > td:has([class*="edtRadioButtonChecked"]) > * {
            background-color: #D9EAE9 !important;
            border-color: #8EC3C0 !important;
        }

    /* Inside a card the circle sits on the tint, so it keeps a white
   centre and the dot alone carries the state. */
    .fldRadioCards [class*="edtRadioButtonChecked"] {
        background-color: #FFFFFF !important;
    }

/* =========================================================
   Action buttons (ASPxButton, wucToolBar: Cancel / Save)
   CssClass="btnAction" for a plain outlined button, plus
   btnPrimary for the main action. Same border, radius and
   teal as the fields and the selected menu entry, replacing
   the theme's grey gradient button.
   ========================================================= */

.btnAction {
    display: inline-flex !important;
    align-items: center;
    min-height: 34px;
    box-sizing: border-box;
    padding: 0 !important;
    border: 1px solid #CFD5D1 !important;
    border-radius: 6px !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease;
}

    .btnAction table,
    .btnAction td,
    .btnAction .dxb,
    .btnAction [class*="dxb-hb"] {
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .btnAction .dxb {
        display: inline-flex !important;
        align-items: center;
        gap: 7px;
        padding: 7px 16px !important;
    }

    .btnAction img {
        margin: 0 !important;
    }

    .btnAction,
    .btnAction * {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #3A403C !important;
        text-decoration: none !important;
    }

    .btnAction:hover,
    .btnAction[class*="Hover"] {
        background-color: #F0F2F1 !important;
        border-color: #C2C9C4 !important;
    }

    .btnAction:active,
    .btnAction[class*="Pressed"] {
        background-color: #E6E9E7 !important;
    }

    .btnAction:focus,
    .btnAction:focus-visible,
    .btnAction .dxb:focus {
        outline: none !important;
    }

    .btnAction:focus-within,
    .btnAction[class*="Focused"] {
        border-color: #5E9E97 !important;
        box-shadow: 0 0 0 2px rgba(94, 158, 151, .18) !important;
    }

    /* Hide the theme's dotted focus frame inside the button */
    .btnAction [class*="dxb-hbc"],
    .btnAction [class*="dxbf"] {
        display: none !important;
    }

    .btnAction[class*="Disabled"] {
        opacity: .5;
        cursor: default;
    }

/* ---- Button bar (wucToolBar) ----
   Cancel on the left, Save on the right; Restore Defaults, when
   shown, sits in the middle. */
.btnBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

/* ---- Primary (Save) ---- */
.btnAction.btnPrimary {
    background-color: #D9EAE9 !important;
    border-color: #8EC3C0 !important;
}

    .btnAction.btnPrimary,
    .btnAction.btnPrimary * {
        color: #1F3533 !important;
    }

    .btnAction.btnPrimary:hover,
    .btnAction.btnPrimary[class*="Hover"] {
        background-color: #CBE2E0 !important;
        border-color: #7DB7B3 !important;
    }

    .btnAction.btnPrimary:active,
    .btnAction.btnPrimary[class*="Pressed"] {
        background-color: #BFDAD7 !important;
    }

@media (max-width: 520px), (hover: none) and (pointer: coarse) {

    .btnAction {
        min-height: 44px;
    }


        .btnAction .dxb {
            padding: 11px 18px !important;
        }
}

/* =========================================================
   Message popup (ASPxPopupControl, wucMessage, frmDelete)
   CssClass="msgPopup" on the popup, HeaderStyle "msgHead",
   ContentStyle "msgBody". White rounded window, plain title
   bar with a hairline, message text, buttons at the bottom.
   Background-color only on the parts, so the close icon (a
   theme sprite) survives.

   Add msgPinned next to msgPopup on a popup with a fixed
   Height (frmDelete): the footer is pinned to the bottom of
   the window instead of following the text.
   ========================================================= */

.msgPopup {
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: 1px solid #D9DEDA !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18) !important;
    overflow: hidden;
}

    .msgPopup,
    .msgPopup * {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    }

    .msgPopup [class*="dxpc-contentWrapper"],
    .msgPopup [class*="dxpc-content"] {
        background-color: #FFFFFF !important;
        border: 0 !important;
    }

/* ---- Title bar ---- */
.msgHead {
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: 0 !important;
    border-bottom: 1px solid #E3E6E4 !important;
    padding: 12px 14px 12px 18px !important;
}

    .msgHead [class*="dxpc-headerText"],
    .msgHead [class*="dxpc-headerContent"] {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 20px !important;
        color: #1F2522 !important;
    }

    .msgHead [class*="dxpc-closeBtn"] {
        opacity: .5;
        cursor: pointer;
        border: 0 !important;
        background-color: transparent !important;
        transition: opacity .12s ease;
    }

        .msgHead [class*="dxpc-closeBtn"]:hover {
            opacity: 1;
        }

/* ---- Body ---- */
.msgBody {
    padding: 18px 18px 16px 18px !important;
    background-color: #FFFFFF !important;
}

.msgText,
.msgText * {
    font-size: 14px !important;
    line-height: 20px !important;
    color: #3A403C !important;
}

/* ---- Footer ---- */
.msgFooter {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

    /* Two buttons: Cancel on the left, the action on the right */
    .msgFooter .btnBar {
        width: 100%;
    }

/* ---- Pinned footer (fixed-height popups) ----
   The popup window is absolutely positioned, so it is the
   frame the footer is placed against. Same 18px sides and
   16px bottom as the body padding. The body keeps room at
   the bottom so long text never runs under the buttons. */
.msgPopup.msgPinned .msgBody {
    padding-bottom: 70px !important;
}

.msgPopup.msgPinned .msgFooter {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    margin-top: 0;
}

/* Taller buttons on phones and touch (btnAction goes to 44px) */
@media (max-width: 520px), (hover: none) and (pointer: coarse) {

    .msgPopup.msgPinned .msgBody {
        padding-bottom: 80px !important;
    }
}

/* ---- Details popups (frmDetails) ----
   Same window and title bar as the message popup (msgPopup +
   msgHead), but the body is a page in an iframe, so it gets no
   padding of its own: the page inside does its own spacing. */
.frameBody {
    padding: 0 !important;
    background-color: #FFFFFF !important;
}

    .frameBody iframe {
        display: block;
        border: 0;
    }

/* =========================================================
   Login (frmLoginFrame, frmLogin)
   frmLoginFrame: body "loginBack", the popup uses msgPopup,
   msgHead and frameBody like the details popups.
   frmLogin: body "loginPage", logo on the left and the
   fields (frmGrid) on the right; on phones the logo sits
   above the fields.
   ========================================================= */

.loginBack {
    margin: 0;
    background-color: #E9ECEA;
}

.loginPage {
    margin: 0;
    background-color: #FFFFFF;
}

.loginWrap {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 24px 28px 20px 28px;
}

.loginLogo {
    flex: 0 0 auto;
    padding-top: 2px;
}

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

/* Keeps its height when empty, so the button doesn't jump
   when a message appears. */
.loginError {
    min-height: 20px;
    margin: 10px 0 6px 0;
}

    .loginError,
    .loginError * {
        font-size: 13px !important;
        line-height: 20px !important;
        color: #B3412F !important;
    }

/* Full-width Login button, icon and text centred */
.btnAction.loginBtn {
    width: 100% !important;
    justify-content: center;
}

    .btnAction.loginBtn .dxb {
        width: 100%;
        justify-content: center;
    }

.loginLinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

    .loginLinks a,
    .loginLinks a span {
        font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600;
        color: #3F7A4A !important;
        text-decoration: none !important;
        cursor: pointer;
    }

        .loginLinks a:hover,
        .loginLinks a:hover span {
            text-decoration: underline !important;
        }

@media (max-width: 520px) {

    .loginWrap {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 16px 14px;
    }

    .loginForm {
        width: 100%;
    }
}

/* =========================================================
   Tabs (ASPxPageControl)
   Borderless rounded box: tinted tab strip on top, hairline,
   then the content area. The box is still clipped to its
   radius so the strip's corners follow it.
   ========================================================= */

.tabSet {
    margin-top: 16px;
    background-color: #FFFFFF !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
}

    /* Strip and its filler cells: strip the theme chrome */
    .tabSet [class*="dxtc-stripContainer"],
    .tabSet [class*="dxtc-strip"],
    .tabSet [class*="dxtc-spacer"],
    .tabSet [class*="dxtc-leftIndent"],
    .tabSet [class*="dxtc-rightIndent"] {
        background: transparent !important;
        background-image: none !important;
        border: 0 !important;
    }

    /* The tinted strip across the top of the box. Padding goes on the
   strip itself, never on its container, or the two wrappers this
   theme renders would each add their own. */
    .tabSet [class*="dxtc-stripContainer"] {
        background-color: #FBFBFA !important;
        padding: 0 !important;
    }

    .tabSet [class*="dxtc-strip"]:not([class*="Container"]) {
        background-color: #FBFBFA !important;
        padding: 8px 8px 0 8px !important;
    }

    /* ---- One tab ---- */
    .tabSet .tabItem,
    .tabSet [class*="dxtc-tab"] {
        background: transparent !important;
        background-image: none !important;
        border: 1px solid transparent !important;
        border-radius: 6px !important;
        padding: 0 !important;
        margin: 0 6px 8px 0 !important;
        box-shadow: none !important;
        transition: background-color .12s ease;
    }

        .tabSet .tabItem a,
        .tabSet [class*="dxtc-tab"] a,
        .tabSet [class*="dxtc-link"] {
            display: inline-block;
            padding: 7px 12px !important;
            font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            letter-spacing: 1.1px;
            text-transform: uppercase;
            color: #6A706C !important;
            text-decoration: none !important;
        }

        /* Hover is done with :hover and the theme's own hover class, because
   this DevExpress build has no TabHoverStyle property to hang a class on. */
        .tabSet .tabItem:hover,
        .tabSet [class*="dxtc-tab"]:hover,
        .tabSet [class*="dxtc-tabHover"],
        .tabSet [class*="dxtc-hover"] {
            background-color: #F0F2F1 !important;
        }

            .tabSet .tabItem:hover a,
            .tabSet [class*="dxtc-tab"]:hover a,
            .tabSet [class*="dxtc-tabHover"] a,
            .tabSet [class*="dxtc-hover"] a {
                color: #3A403C !important;
            }

    /* Active tab: tint only. The 1px border stays transparent so the
   chip keeps the same size as its neighbours. */
    .tabSet .tabItemOn,
    .tabSet [class*="dxtc-activeTab"] {
        background: #D9EAE9 !important;
        background-image: none !important;
        border-color: transparent !important;
    }

        .tabSet .tabItemOn a,
        .tabSet [class*="dxtc-activeTab"] a {
            color: #1F3533 !important;
        }

    .tabSet a:focus-visible {
        outline: 2px solid rgba(94, 158, 151, .45);
        outline-offset: 2px;
        border-radius: 6px;
    }

    /* ---- Tab content ---- */
    .tabSet .tabBody,
    .tabSet [class*="dxtc-content"] {
        background-color: #FFFFFF !important;
        border: 0 !important;
        border-top: 1px solid #E3E6E4 !important;
        border-radius: 0 !important;
        padding: 14px !important;
    }

/* ---- App footer (copyright strip at the bottom of frmMain) ---- */
.appFootPane {
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid #E3E6E4 !important;
    background-color: #F4F6F5 !important;
}

.appFoot {
    text-align: center;
    padding: 9px 16px 10px 16px;
}

.appFootText {
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 0.3px;
    color: #6A706C !important;
}

.appFootBrand {
    font-weight: 600;
    color: #1F3533;
}

.appFootSep {
    display: inline-block;
    margin: 0 8px;
    color: #8EC3C0;
}

@media (max-width: 520px) {

    .appFoot {
        padding: 7px 12px 8px 12px;
    }

    .appFootText {
        font-size: 10px !important;
    }

    .appFootSep {
        margin: 0 5px;
    }
}

/* =========================================================
   Mobile / narrow screens
   Everything above is the desktop layout; these overrides only
   apply below the breakpoints and leave the desktop untouched.
   ========================================================= */

/* ---- App header (logo strip above the splitter) ---- */
.appHead td {
    padding-top: 10px;
    padding-left: 10px;
}

/* Pane toggle buttons: narrow screens only. */
.paneToggle {
    display: none;
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 6px;
    padding: 8px 12px;
    border: 1px solid #C9CFCB;
    border-radius: 5px;
    background-color: #FFFFFF;
    color: #3A403C;
    cursor: pointer;
}

    .paneToggle:active {
        background-color: #F0F2F1;
    }

@media (max-width: 899px) {

    .appHead td {
        padding-top: 6px !important;
        padding-left: 10px !important;
    }

    .paneToggle {
        display: inline-block;
    }

    /* The splitter is FullscreenMode, so every pixel spent above it
       pushes the panes below the fold. */
    .appHead img {
        max-width: 110px;
        height: auto;
    }
}

/* Form content: phones only. Not 899px: details popups are iframes
   about 700px wide, and at 899px a desktop popup got the phone sizes
   (44px inputs, bigger boxes and buttons). */
@media (max-width: 520px) {

    /* ---- Form pages ---- */
    .pageWrap {
        padding: 12px 14px 24px 14px;
    }

    .pageHead {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }

    .PageTitle {
        font-size: 21px !important;
        margin: 2px 0 4px 0;
    }

    .pageIntro {
        max-width: none;
    }

    .CardBody
    {
        padding: 10px 10px 12px 10px;
    }

    .CardHead {
        padding: 10px 10px;
    }

    /* ---- Editors ----
       iOS Safari zooms the page whenever a focused input is under 16px,
       and it ignores maximum-scale, so the input must actually be 16px.
       44px height keeps the tap target usable. */
    .fldEdit {
        height: 44px;
    }

        .fldEdit input,
        .fldEdit textarea {
            font-size: 16px !important;
        }

        .fldEdit td {
            height: 42px;
        }

        /* Spin edits are given a fixed pixel Width in markup; let them fill. */
        .fldEdit[class*="dxeSpinEdit"],
        .flFields .fldEdit {
            width: 100% !important;
            max-width: none !important;
        }

    /* ---- Checkboxes ----
       The label is not an input, so it needs no 16px bump; the row
       just has to be tall enough to hit. */
    .fldCheck,
    .fldCheckList > tbody > tr > td > * {
        min-height: 44px;
    }

    .fldCheckList td {
        padding: 0 14px 0 0 !important;
    }

    .fldCheck [class*="dxichCheckBox"],
    .fldCheckList [class*="dxichCheckBox"],
    .fldCheck [class*="edtCheckBox"],
    .fldCheckList [class*="edtCheckBox"] {
        width: 20px !important;
        height: 20px !important;
    }

    .fldCheck [class*="edtCheckBoxChecked"]::after,
    .fldCheckList [class*="edtCheckBoxChecked"]::after {
        left: 7px;
        top: 3px;
    }

    .fldCheck [class*="edtCheckBoxGrayed"]::after,
    .fldCheck [class*="edtCheckBoxIndeterminate"]::after,
    .fldCheckList [class*="edtCheckBoxGrayed"]::after,
    .fldCheckList [class*="edtCheckBoxIndeterminate"]::after {
        left: 4px;
        top: 8px;
    }

    .fldCheck [class*="dxichTextCell"],
    .fldCheckList [class*="dxichTextCell"] {
        font-size: 15px !important;
        padding-left: 11px !important;
    }

    .chkCol {
        gap: 2px;
    }

    /* ---- Toggle switch ---- */
    .fldSwitch {
        min-height: 44px;
        padding: 4px 12px 4px 8px;
    }

        .fldSwitch [class*="dxichTextCell"] {
            font-size: 15px !important;
            padding-left: 12px !important;
        }

    /* ---- Radio buttons ---- */
    .fldRadio td {
        padding: 0 14px 0 0 !important;
    }

        .fldRadio [class*="dxichBase"],
        .fldRadio[class*="dxichBase"],
        .fldRadio td > span {
            min-height: 44px;
        }

    .fldRadio [class*="dxichCheckBox"],
    .fldRadio [class*="edtRadioButton"] {
        width: 20px !important;
        height: 20px !important;
    }

    .fldRadio [class*="edtRadioButtonChecked"]::after {
        left: 5px;
        top: 5px;
    }

    .fldRadio [class*="dxichTextCell"] {
        font-size: 15px !important;
        padding-left: 11px !important;
    }

    /* A horizontal list is a single row of table cells, which cannot
       wrap. Add fldRadioStack or fldCheckStack to break the cells
       onto their own lines here and leave the desktop row alone;
       RepeatDirection="Vertical" needs none of this. */
    .fldRadioStack > tbody > tr,
    .fldRadioStack > tbody > tr > td,
    .fldCheckStack > tbody > tr,
    .fldCheckStack > tbody > tr > td {
        display: block !important;
        width: auto !important;
        padding-right: 0 !important;
    }

    .fldRadioCards > tbody > tr > td {
        padding-bottom: 8px !important;
    }

    /* ---- Tabs ---- */
    .tabSet [class*="dxtc-strip"]:not([class*="Container"]) {
        padding: 6px 6px 0 6px !important;
    }

    .tabSet .tabItem,
    .tabSet [class*="dxtc-tab"] {
        margin: 0 6px 6px 0 !important;
    }

        .tabSet .tabItem a,
        .tabSet [class*="dxtc-tab"] a,
        .tabSet [class*="dxtc-link"] {
            padding: 11px 14px !important;
        }

    .tabSet .tabBody,
    .tabSet [class*="dxtc-content"] {
        padding: 12px 10px !important;
    }

    /* ---- Sidebar steps ---- */
    .sideNav {
        padding: 10px 6px;
    }

    .stepMenu .dxm-content {
        padding: 10px 10px !important;
    }

    /* ---- Summary pane ---- */
    .paneSummary .sumWrap {
        padding: 10px 14px 20px 14px;
    }

    .sumWrap .sumGrid {
        grid-template-columns: 1fr;
        row-gap: 2px;
    }

    .sumWrap .sumKey {
        margin-top: 6px;
    }

    .btnRounded,
    .btnRounded td,
    .btnRounded .dxbButton,
    .btnRounded .dxb {
        border-radius: 8px !important;
    }
}

/* Tablet: keep two columns of fields but tighten the gutters. */
@media (min-width: 768px) and (max-width: 1024px) {

    .pageWrap {
        padding: 14px 20px 28px 20px;
    }

    .fldEdit input,
    .fldEdit textarea {
        font-size: 16px !important;
    }
}

/* Touch devices of any width: bigger hit areas on the step menu. */
@media (hover: none) and (pointer: coarse) {

    .stepMenu .dxm-item {
        margin-bottom: 6px !important;
    }

    .pillToggle {
        padding: 7px 10px;
    }

    .fldCheck,
    .fldSwitch,
    .fldCheckList > tbody > tr > td > * {
        min-height: 44px;
    }

    .fldRadio [class*="dxichBase"],
    .fldRadio[class*="dxichBase"],
    .fldRadio td > span {
        min-height: 44px;
    }

    /* Hover only fires after a tap on touch, where it would look like
       the box changed state. */
    .fldCheck:hover [class*="edtCheckBoxUnchecked"],
    .fldCheckList td:hover [class*="edtCheckBoxUnchecked"] {
        border-color: #CFD5D1 !important;
    }

    .fldRadio td:hover [class*="edtRadioButtonUnchecked"],
    .fldRadio[class*="dxichBase"]:hover [class*="edtRadioButtonUnchecked"] {
        border-color: #CFD5D1 !important;
    }
}

/* =========================================================
   Password policy line (jsFunctions.js: RenderPasswordPolicy)
   The label is <span id="lblPasswordPolicy" class="pwd-policy">
   and each rule is <span class="rule">, plus "ok" once it
   passes: red until it passes, then green.
   ========================================================= */
.pwd-policy {
    display: block;
    margin-top: 5px;
    font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 11px;
    line-height: 15px;
    color: #6A706C;
}

    .pwd-policy .rule {
        color: #B3412F;
        font-weight: 600;
        transition: color .12s ease;
    }

        .pwd-policy .rule.ok {
            color: #3F7A4A;
        }

/* =========================================================
   Hidden from script
   btnAction and fldCheck are display: inline-flex !important,
   which beats the inline display:none that SetVisible(false)
   writes, so a button or checkbox hidden from the client
   would stay visible. Keep hidden ones hidden.
   ========================================================= */
.btnAction[style*="display:none"],
.btnAction[style*="display: none"],
.fldCheck[style*="display:none"],
.fldCheck[style*="display: none"] {
    display: none !important;
}
