@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #A87983;
    border-color: #A87983;
    text-transform : capitalize;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.customer-btn-small {

    width : 100px !important;
    text-transform:capitalize;

    }


/* =====================================================================
   App-wide ACTION buttons (Save / New / Update / Add / Load / etc.)
   rendered as blue, underlined, animated TEXT links with a leading icon.
   Targets Bootstrap .btn-primary / .btn-success (the bulk of action
   buttons). AntDesign (.ant-btn) and danger/secondary buttons are left
   untouched so semantic colours (delete = red, etc.) are preserved.
   ===================================================================== */
.btn.btn-primary,
.btn.btn-success,
.lx-action-link,
.lx-view-profile-link {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #6F4C54 !important;
    font-family: 'Lato', 'Segoe UI', Arial, sans-serif !important;
    font-size: 0.9225rem !important;     /* action buttons unified app-wide: .86rem / 600 */
    font-weight: 600 !important;
    text-transform: capitalize;
    text-decoration: underline !important;   /* (2026-10-18) always underlined, like a hyperlink */
    text-underline-offset: 3px;
    border-radius: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    line-height: 1.4 !important;
    padding: 2px 4px !important;
    margin-top: 16px !important;   /* matches sibling FormItem label height so it lines up with input boxes, not labels */
    display: inline-flex !important;
    align-items: center;
    gap: 7px;                          /* same icon/text gap as the source page */
    vertical-align: middle;
    cursor: pointer;
    transition: transform .15s ease, color .15s ease;
}

    /* Per-word leading icon for recognised action buttons.
       The data-lxico attribute is set by wwwroot/js/lx-action-icons.js based on
       the button text (Save/New/Update/etc). Buttons with their own <i>/<svg>
       icon are left alone. */
    /* icons: same size for both ::before glyphs and real <i>/<svg> icons */
    .btn[data-lxico]::before,
    .lx-action-link i,
    .lx-action-link svg,
    .lx-view-profile-link i,
    .lx-view-profile-link svg {
        font-size: .9em;
        line-height: 1;
    }

    .btn[data-lxico]::before {
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        display: inline-block;
        text-decoration: none;
    }

        .btn[data-lxico="save"]::before    { content: "\f0c7"; } /* floppy disk */
        .btn[data-lxico="update"]::before  { content: "\f044"; } /* pen-to-square */
        .btn[data-lxico="new"]::before     { content: "\f067"; } /* plus */
        .btn[data-lxico="search"]::before  { content: "\f002"; } /* magnifier */
        .btn[data-lxico="load"]::before    { content: "\f019"; } /* download */
        .btn[data-lxico="refresh"]::before { content: "\f021"; } /* rotate */
        .btn[data-lxico="submit"]::before  { content: "\f0c7"; } /* save */

    .btn.btn-primary:hover,
    .btn.btn-success:hover,
    .lx-action-link:hover,
    .lx-view-profile-link:hover {
        color: #6F4C54 !important;
        background: transparent !important;
        text-decoration: underline !important;
        transform: scale(1.06);
    }

    .btn.btn-primary:active,
    .btn.btn-success:active,
    .lx-action-link:active,
    .lx-view-profile-link:active {
        transform: scale(1.02);
    }

    /* "Total Records" buttons (the ones holding a count badge) — 20% smaller font.
       Not a form-row action button (sits above a grid, no sibling label to line up
       with), so it's excluded from the margin-top added above. */
    .btn.btn-primary:has(.badge),
    .btn.btn-success:has(.badge) {
        font-size: 0.9025rem !important;   /* ~20% smaller than 1.05rem */
        margin-top: 0 !important;
        text-decoration: none !important;   /* a record count, not an action - no underline */
    }

    /* Green tick image used in data tables (Active status) — 10% smaller */
    img[src$="checked.png"] {
        width: 18px !important;
        height: auto !important;
    }

/* Document grids (Customer Documents / Sanction Screen doc tab / etc.) - a rounded
   card-style table with a tinted header, zebra rows, and a circular View/Remove
   icon button with a hover-grow animation. Apply Class="lx-doc-grid" to the <Table>
   and class="lx-doc-grid-icon" to each action <Icon>/<a>. */
.lx-doc-grid.ant-table-wrapper,
.lx-doc-grid .ant-table {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}

.lx-doc-grid .ant-table-thead > tr > th {
    background-color: #eaf3fd !important;
    color: #0f4c81;
    font-weight: 700;
    letter-spacing: .3px;
    border-bottom: 2px solid #cfe3fa !important;
}

.lx-doc-grid .ant-table-tbody > tr > td {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.lx-doc-grid .ant-table-tbody > tr:nth-child(even) > td {
    background-color: #fafcff;
}

.lx-doc-grid .ant-table-row:hover > td {
    background-color: #eef6ff !important;
}

.lx-doc-grid .lx-doc-grid-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #eaf3fd;
    font-size: 16px;
    color: #6F4C54;
    cursor: pointer;
    transform-origin: center;
    transition: transform .18s cubic-bezier(.2,.7,.2,1), background-color .15s ease, color .15s ease;
}

    .lx-doc-grid .lx-doc-grid-icon:hover {
        background-color: #A87983;
        color: #fff;
        transform: scale(1.22);
    }

/* ---- Light "impact" animation on the ICON only (Save / New / Update) ---- */
@keyframes lxIconPop {
    0%, 72%, 100% { transform: scale(1); }
    84%           { transform: scale(1.3); }
}

    .btn[data-lxico="save"]::before,
    .btn[data-lxico="new"]::before,
    .btn[data-lxico="update"]::before,
    .lx-action-link i.fa-save,
    .lx-action-link i.fa-plus {
        display: inline-block;
        transform-origin: center;
        animation: lxIconPop 2.2s ease-in-out infinite;
    }

/* ---- Report filter panel: "Filter" label + light-blue panel (MIS forms, matches RBA report) ---- */
.lx-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #6F4C54;
    font-size: 0.9625rem;
}

.lx-mis-filter {
    background-color: #eef3fb !important;   /* same light blue as the customer pages */
    border-radius: 10px;
}

    .lx-mis-filter .ant-collapse-header,
    .lx-mis-filter .ant-collapse-content,
    .lx-mis-filter .ant-collapse-content-box,
    .lx-mis-filter > .ant-collapse-item {
        background-color: #eef3fb !important;
    }

/* Selectable report/field list inside a filter panel (grey default, blue selected) */
.lx-rbascreen {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 26vh;
    overflow-y: auto;
    background: #fff;
}

.lx-rbascreen-item {
    background-color: #f4f5f7;            /* default: light grey */
    border-bottom: 1px solid #eef2f7;
    transition: filter .12s ease, background-color .12s ease;
}

    .lx-rbascreen-item:last-child {
        border-bottom: none;
    }

    .lx-rbascreen-item a {
        display: block;
        padding: 7px 12px;
        color: #334155;
        font-size: 0.8825rem;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
    }

    .lx-rbascreen-item:hover {
        filter: brightness(0.96);
    }



/* ============================================================================
   Report ACTION buttons — flat blue icon+text links, project-wide.
   .lx-rpt-action  -> Refresh / Load links (markup converted to this class).
   .btn.print-btn  -> PDF/print buttons (kept as-is; restyled here so no markup
                      change is needed). Does NOT touch Save/Update/New/etc.
   Small, blue, semi-bold; heavier + underline on hover. All three (Load/Refresh/PDF)
   share the same weight and icon size so the group reads as one theme.
   ============================================================================ */
.lx-rpt-action,
.btn.print-btn {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 2px 4px !important;
    margin-top: 16px !important;   /* matches sibling FormItem label height so it lines up with the input boxes, not the labels */
    color: #6F4C54 !important;
    font-size: 0.9225rem !important;   /* action buttons unified app-wide: .86rem / 600 */
    font-weight: 600 !important;
    line-height: 22px !important;
    height: 22px !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    transition: font-weight .12s ease;
    vertical-align: middle;
}

    .lx-rpt-action .anticon, .lx-rpt-action i,
    .btn.print-btn .anticon, .btn.print-btn i {
        color: #6F4C54 !important;
        font-size: 1.1125rem !important;
        margin: 0 !important;
    }

    .btn.print-btn span { margin-left: 0 !important; }

    .lx-rpt-action:hover,
    .btn.print-btn:hover {
        color: #6F4C54 !important;
        font-weight: 700 !important;
        text-decoration: underline !important;
    }

/* Load button — identical text/icon size and weight to Refresh/PDF, distinguished only
   by a gentle pulsing search icon so it still reads as the primary "run" action.
   (.lx-rpt-load adds to .lx-rpt-action) */
    .lx-rpt-load .anticon, .lx-rpt-load i {
        display: inline-block;
        transform-origin: center;
        animation: lxLoadPulse 1.5s ease-in-out infinite;
    }

    .lx-rpt-load:hover {
        transform: translateY(-1px);
    }

        .lx-rpt-load:hover .anticon, .lx-rpt-load:hover i {
            animation: none;
            transform: scale(1.18);
        }

/* Wrapper for filter-row action buttons that sit in their own <Col> beside labelled
   fields. Those fields render <label> (~21px) then a 32px input inside the FormItem,
   so the input's centre line is 37px down; a 22px button needs 26px of offset to sit
   on it. Using a plain div avoids FormItem's flex control-box, which collapses a
   hidden spacer label onto the same line as the button. */
.lx-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

    .lx-filter-actions .lx-rpt-action,
    .lx-filter-actions .btn.print-btn {
        margin-top: 0 !important;
    }

@keyframes lxLoadPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.25); opacity: .78; }
}


/* Page-level tabs that merge several screens into one (2026-10-19: Transaction > Reports, Tr - Case Manager).
   A shared rule elsewhere paints the active tab label white; these keep it readable, blue + bold. */
.lx-page-tabs > .ant-tabs-nav .ant-tabs-tab .ant-tabs-tab-btn { color: #5B6C7D !important; font-weight: 500; }
.lx-page-tabs > .ant-tabs-nav .ant-tabs-tab:hover .ant-tabs-tab-btn { color: #6F4C54 !important; }
.lx-page-tabs > .ant-tabs-nav .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { color: #6F4C54 !important; font-weight: 700; }
.lx-page-tabs > .ant-tabs-nav .ant-tabs-ink-bar { background: #A87983 !important; }

/* (2026-10-23) RBA & Rules > Rules Trend / Rules Trend - Sample: rule chips, tables and the Bars / Lines switch.
   Shared by RulesTrendPanel and RulesTrendSample, whichever chart (TrendChart or OhlcChart) is showing. */
.lx-rt-tbl td.up { color: #16a34a; font-weight: 600; }
.lx-rt-tbl td.down { color: #dc2626; font-weight: 600; }
.lx-rt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lx-rt-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 14px; border: 1px solid #d6e2f0; background: #fff; color: #64748b; cursor: pointer; user-select: none; }
.lx-rt-chip i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.lx-rt-chip.on { color: #16324f; border-color: var(--c); }
.lx-rt-chip.on i { background: var(--c); }
.lx-rt-chip b { color: inherit; }
.lx-rt-chip.all { color: #6F4C54; border-style: dashed; }
.lx-rt-sec { font-weight: 700; color: #16324f; margin: 14px 0 6px; font-size: 14.5px; }
.lx-rt-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lx-rt-tbl th { background: #A87983; color: #fff; text-align: left; padding: 5px 8px; font-weight: 600; }
.lx-rt-tbl td { padding: 5px 8px; border-top: 1px solid #eef2f6; }
.lx-rt-tbl .r { text-align: right; }
.lx-rt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.lx-chart-mode { display: inline-flex; border: 1px solid #d6e2f0; border-radius: 6px; overflow: hidden; margin-left: auto; }
.lx-chart-mode span { padding: 3px 12px; font-size: 13px; cursor: pointer; background: #fff; color: #334155; border-left: 1px solid #e3ebf5; }
.lx-chart-mode span:first-child { border-left: none; }
.lx-chart-mode span.on { background: #A87983; color: #fff; }

/* (2026-10-23) trend / hit panels - toolbar, tiles, empty + error states (RulesTrendPanel, RiskTrendPanel, RiskFactorHitsPanel). */
.lx-rt { padding: 4px 2px 10px; }
.lx-rt-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; background: #f6f9fd; border: 1px solid #e3ebf5; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.lx-rt-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #334155; }
.lx-rt-seg { display: inline-flex; border: 1px solid #d6e2f0; border-radius: 6px; overflow: hidden; }
.lx-rt-seg span { padding: 5px 12px; font-size: 13.5px; cursor: pointer; background: #fff; color: #334155; border-left: 1px solid #e3ebf5; }
.lx-rt-seg span:first-child { border-left: none; }
.lx-rt-seg span.on { background: #A87983; color: #fff; }
.lx-rt-apply { color: #6F4C54; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding-bottom: 5px; }
.lx-rt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.lx-rt-tiles div { background: #fff; border: 1px solid #e3ebf5; border-radius: 8px; padding: 8px 12px; }
.lx-rt-tiles span { display: block; font-size: 12.5px; color: #4a5868; }
.lx-rt-tiles b { font-size: 21px; color: #6F4C54; }
.lx-rt-tiles em { display: block; font-style: normal; font-size: 12.5px; color: #4a5868; }
.lx-rt-tiles em.up, .lx-rt-tbl td.up { color: #16a34a; font-weight: 600; }
.lx-rt-tiles em.down, .lx-rt-tbl td.down { color: #dc2626; font-weight: 600; }
.lx-rt-muted { color: #4a5868; font-size: 13px; margin-top: 6px; }
.lx-rt-empty { padding: 30px 0; text-align: center; font-size: 14px; }
.lx-rt-bad { color: #9b1c1c; background: #fde2e2; border-radius: 6px; padding: 8px 12px; font-size: 14px; }

/* (2026-10-23) live simulations - Rules Trend - Sample and Risk Trend - Sample (lx-rs-*). */
.lx-rs-banner { background: #fff7e0; border: 1px solid #f3d27a; color: #8a5a00; border-radius: 8px; padding: 7px 12px; font-size: 13.5px; margin-bottom: 10px; }
.lx-rs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #f6f9fd; border: 1px solid #e3ebf5; border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; }
.lx-rs-btn { border: none; border-radius: 6px; padding: 6px 14px; font-size: 14px; cursor: pointer; color: #fff; }
.lx-rs-btn.start { background: #16a34a; } .lx-rs-btn.pause { background: #f59e0b; } .lx-rs-btn.burst { background: #dc2626; } .lx-rs-btn.reset { background: #64748b; }
.lx-rs-btn:hover { filter: brightness(1.08); }
.lx-rs-seg { display: inline-flex; border: 1px solid #d6e2f0; border-radius: 6px; overflow: hidden; }
.lx-rs-seg span { padding: 5px 12px; font-size: 13.5px; cursor: pointer; background: #fff; color: #334155; border-left: 1px solid #e3ebf5; }
.lx-rs-seg span:first-child { border-left: none; }
.lx-rs-seg span.on { background: #A87983; color: #fff; }
.lx-rs-clock { margin-left: auto; font-size: 13px; color: #334155; font-variant-numeric: tabular-nums; }
.lx-rs-pipe { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.lx-rs-pipe > i { align-self: center; color: #64748b; }
.lx-rs-pipe div { flex: 1; min-width: 130px; background: #fff; border: 1px solid #e3ebf5; border-radius: 8px; padding: 7px 12px; transition: background .3s; }
.lx-rs-pipe span { display: block; font-size: 12.5px; color: #4a5868; }
.lx-rs-pipe b { font-size: 21px; color: #6F4C54; font-variant-numeric: tabular-nums; }
.lx-rs-pipe em { display: block; font-style: normal; font-size: 12px; color: #4a5868; }
.lx-rs-pipe .alert b { color: #dc2626; } .lx-rs-pipe .case b { color: #b45309; } .lx-rs-pipe .ok b { color: #16a34a; }
.lx-rs-pipe .flash { animation: lx-rs-flash .9s ease-out; }
@keyframes lx-rs-flash { 0% { background: #fee2e2; } 100% { background: #fff; } }
.lx-rs-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 10px; }
@media (max-width: 1100px) { .lx-rs-main { grid-template-columns: 1fr; } }
.lx-rs-feed { background: #fff; border: 1px solid #e3ebf5; border-radius: 10px; padding: 8px 10px; max-height: 380px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.lx-rs-feed-h { color: #334155; font-size: 13px; font-weight: 700; margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.lx-rs-ev { border-left: 3px solid #94a3b8; background: #f8fafc; border-radius: 6px; padding: 5px 8px; margin-bottom: 5px; font-size: 12.5px; color: #334155; }
.lx-rs-ev.hit { border-left-color: #ef4444; background: #fff5f5; } .lx-rs-ev.clear { border-left-color: #22c55e; }
.lx-rs-ev.fresh { animation: lx-rs-in .6s ease-out; }
@keyframes lx-rs-in { 0% { transform: translateY(-6px); opacity: 0; background: #e0efff; } 100% { transform: none; opacity: 1; } }
.lx-rs-ev .t { display: flex; justify-content: space-between; } .lx-rs-ev .t b { color: #16324f; } .lx-rs-ev .t span { color: #8a97a8; }
.lx-rs-ev .d { color: #475569; }
.lx-rs-ev .r { color: #dc2626; font-weight: 600; } .lx-rs-ev .ok { color: #16a34a; }
.lx-rs-muted { color: #4a5868; font-size: 13px; margin-top: 6px; }
.lx-rs-feed .lx-rs-muted { color: #4a5868; }

/* (2026-10-23) Rules Simulation - Advanced view: 18 rule cards, 6 per row, top trending first. */
.lx-adv-main { grid-template-columns: minmax(0, 1fr) 320px; }
.lx-adv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-content: start; }
@media (max-width: 1400px) { .lx-adv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lx-adv-card { background: #fff; border: 1px solid #e3ebf5; border-top: 3px solid var(--c); border-radius: 8px; padding: 7px 9px; min-height: 128px; display: flex; flex-direction: column; gap: 3px; transition: transform .35s, box-shadow .35s; }
.lx-adv-card.top { background: #f6faff; box-shadow: 0 2px 8px rgba(168, 121, 131, .12); }
.lx-adv-card.live { animation: lx-adv-pulse 1s ease-out; }
@keyframes lx-adv-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); } 100% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } }
.lx-adv-card .h { display: flex; justify-content: space-between; align-items: center; }
.lx-adv-card .no { font-weight: 700; font-size: 13px; color: #16324f; }
.lx-adv-card .tag { font-size: 11.5px; font-weight: 700; color: #fff; background: #A87983; border-radius: 8px; padding: 0 6px; }
.lx-adv-card .n { font-size: 12px; color: #334155; line-height: 1.25; height: 2.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-adv-card .v b { font-size: 22px; color: var(--c); font-variant-numeric: tabular-nums; }
.lx-adv-card .v span, .lx-adv-card .m span { font-size: 11.5px; color: #64748b; margin-left: 4px; }
.lx-adv-card .m { font-size: 12.5px; font-weight: 700; }
.lx-adv-card.up .m { color: #16a34a; } .lx-adv-card.down .m { color: #dc2626; } .lx-adv-card.flat .m { color: #64748b; }
.lx-adv-card .f { display: flex; justify-content: space-between; font-size: 11.5px; color: #4a5868; margin-top: auto; }

/* (2026-10-23) Advanced view: compact clickable cards (rule + number) and the rule pop-up header. */
.lx-adv-card.lx-adv-mini { aspect-ratio: 1 / 1; min-height: 0; padding: 10px; cursor: pointer; display: grid; grid-template-rows: auto 1fr auto auto; justify-items: center; align-items: center; text-align: center; gap: 2px; }
.lx-adv-card.lx-adv-mini .no { font-size: 14px; justify-self: start; }
.lx-adv-card.lx-adv-mini > b { font-size: 26px; color: var(--c); font-variant-numeric: tabular-nums; line-height: 1; }
.lx-adv-card.lx-adv-mini .arw { font-size: 34px; line-height: 1; color: #cbd5e1; }
.lx-adv-card.lx-adv-mini.up .arw { color: #dc2626; }
.lx-adv-card.lx-adv-mini.down .arw { color: #f59e0b; }
.lx-adv-card.lx-adv-mini .tot { font-size: 12.5px; color: #4a5868; }
.lx-adv-card.lx-adv-mini .tot b { font-size: 14px; color: #16324f; }
.lx-adv-card.lx-adv-mini:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15, 23, 42, .12); }
.lx-adv-def { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 14px; margin-bottom: 6px; }
.lx-adv-def .w { grid-column: span 5; }
.lx-adv-def div { border-bottom: 1px solid #eef2f6; padding: 3px 0; }
.lx-adv-def span { display: block; font-size: 12px; color: #4a5868; }
.lx-adv-def b { font-size: 14.5px; color: #16324f; }

/* (2026-10-23) Rules Simulation - Advanced: dark live board (watch-list table), ticker, big arrows, sparklines. */
.lx-board { background: #0b1220; border-radius: 10px; padding: 0 0 6px; color: #e5e7eb; overflow: hidden; }
.lx-board-ticker { overflow: hidden; white-space: nowrap; border-bottom: 1px solid #1f2a3d; background: #0f172a; padding: 7px 0; }
.lx-board-track { display: inline-block; padding-left: 100%; animation: lx-board-scroll 30s linear infinite; }
@keyframes lx-board-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.lx-board-track span { margin-right: 28px; font-size: 13.5px; font-weight: 600; color: #cbd5e1; font-variant-numeric: tabular-nums; }
.lx-board-track span b { color: #fff; margin: 0 4px; }
.lx-board-track span.up { color: #f87171; } .lx-board-track span.down { color: #fbbf24; } .lx-board-track span.flat { color: #64748b; }
.lx-board-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lx-board-tbl th { color: #64748b; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 7px 8px; border-bottom: 1px solid #1f2a3d; }
.lx-board-tbl td { padding: 5px 8px; border-bottom: 1px solid #141e30; color: #f1f5f9; vertical-align: middle; }
.lx-board-tbl .r { text-align: right; } .lx-board-tbl .c { text-align: center; }
.lx-board-tbl tbody tr { cursor: pointer; transition: background .3s; }
.lx-board-tbl tbody tr:hover td { background: #16223a; }
.lx-board-tbl tr.top td { background: #111b2e; }
.lx-board-tbl tr.top td.rk { color: #6F4C54; font-weight: 800; }
.lx-board-tbl td.rk { color: #475569; width: 30px; }
.lx-board-tbl td.no { font-weight: 700; white-space: nowrap; color: #fff; }
.lx-board-tbl td.no i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.lx-board-tbl td.nm { color: #cbd5e1; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-board-tbl td.big { font-size: 21px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.lx-board-tbl td.arw { font-size: 26px; line-height: 1; color: #334155; }
.lx-board-tbl tr.up td.arw, .lx-board-tbl tr.up td.chg { color: #ef4444; }
.lx-board-tbl tr.down td.arw, .lx-board-tbl tr.down td.chg { color: #f59e0b; }
.lx-board-tbl td.chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.lx-board-tbl td.lh { color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-board-tbl tr.live td { animation: lx-board-flash 1s ease-out; }
@keyframes lx-board-flash { 0% { background: rgba(239, 68, 68, .35); } 100% { background: transparent; } }
.lx-spark { width: 100px; height: 24px; display: block; margin: 0 auto; }
.lx-spark polyline { fill: none; stroke: #A87983; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.lx-board-tbl tr.up .lx-spark polyline { stroke: #f87171; } .lx-board-tbl tr.down .lx-spark polyline { stroke: #fbbf24; }

/* (2026-10-23) PDF link in pop-ups - available on every page (also used by ModalPdfButton). */
.lx-why-pdf-bar { display: flex; justify-content: flex-end; margin: -4px 0 2px; }
.lx-pdf-btn { color: #6F4C54; cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 5px; align-items: center; margin: 0 10px; white-space: nowrap; }
.lx-pdf-btn i { font-size: 16px; }

/* (2026-10-23) Rules Simulation: clickable tiles, alerts-by-rule and sample-cases pop-ups. */
.lx-rs-pipe .lx-rs-click { cursor: pointer; }
.lx-rs-pipe .lx-rs-click:hover { box-shadow: 0 3px 10px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.lx-rs-pipe .lx-rs-click span i { font-size: 11px; color: #64748b; margin-left: 3px; }
.lx-rs-clicktbl tbody tr { cursor: pointer; } .lx-rs-clicktbl tbody tr:hover td { background: #f6faff; }
.lx-rs-tot td { font-weight: 700; background: #f6faff; }
.lx-rt-tbl td.nw, .lx-rs-clicktbl td.nw { white-space: nowrap; }
.lx-rs-case { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.lx-rs-case.Open { background: #fee2e2; color: #b91c1c; } .lx-rs-case.Underreview { background: #fef3c7; color: #b45309; }
.lx-rs-case.STRfiled { background: #ede9fe; color: #6d28d9; } .lx-rs-case.Closednoaction { background: #dcfce7; color: #15803d; }

/* (2026-10-25) Centred chart title with a subtitle, and the light-yellow highlight for chart titles - any page. */
.lx-chart-title { text-align: center; font-size: 16px; font-weight: 800; color: #16324f; margin: 2px 0 6px; }
.lx-chart-title span { display: block; font-size: 12.5px; font-weight: 400; color: #4a5868; margin-top: 3px; }
.lx-hl { background: #fef3c7; padding: 2px 9px; border-radius: 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* (2026-10-23) Rules Simulation: vulnerability pie card. */
.lx-vuln { background: #fff; border: 1px solid #e3ebf5; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.lx-vuln-h { font-weight: 700; color: #16324f; font-size: 15px; margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.lx-vuln-h i { color: #6F4C54; }
.lx-vuln-h span { font-weight: 400; font-size: 13.5px; color: #4a5868; }
.lx-vuln-h span b { color: #dc2626; }

/* (2026-11-09, owner) Tr - Case Manager: the PDF icon (grid rows and under a selected case) - one combined case report */
.lx-tr-pdf { color: #dc2626 !important; cursor: pointer; display: inline-flex; align-items: center; transition: transform .15s ease, color .15s ease; }
.lx-tr-pdf:hover { color: #991b1b !important; transform: scale(1.18); }
.lx-tr-pdf-btn { gap: 6px; padding: 5px 14px; border: 1px solid #fecaca; border-radius: 6px; background: #fef2f2; font-weight: 600; font-size: 14px; text-decoration: none; }
.lx-tr-pdf-btn:hover { background: #fee2e2; transform: none; }

/* (2026-11-09, owner) StrReportButton - report a transaction as STR from a grid row (ISTR Approval) */
.lx-str-btn { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 12px; border: 1px solid #fecaca; background: #fff; color: #b91c1c !important; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.lx-str-btn:hover { background: #fef2f2; }
.lx-str-btn.lx-str-on { background: #fee2e2; border-color: #fca5a5; color: #991b1b !important; }
.lx-str-btn.lx-str-wait { border-color: #e2e8f0; color: #64748b !important; cursor: default; }
.lx-str-modal > div { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.lx-str-modal > div > span { width: 95px; color: #475569; }
.lx-str-modal .lx-str-red { color: #b91c1c; }
.lx-str-modal .lx-str-note { margin: 10px 0 0; font-size: 13px; color: #334155; }
.lx-str-modal .lx-str-msg { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: #15803d; }

/* (2026-11-10, owner) Transaction Approval grid: Validate / Cancel / PDF on each row */
.lx-appr-row-acts { display: inline-flex; gap: 10px; white-space: nowrap; }
.lx-appr-act { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.lx-appr-act.lx-ok { color: #6F4C54 !important; }
.lx-appr-act.lx-no { color: #b45309 !important; }
.lx-appr-act.lx-pdf { color: #dc2626 !important; }
.lx-appr-act:hover { filter: brightness(.8); }

/* (2026-11-10, owner) action buttons stay on one line (Transaction Approval + Application) */
.lx-nowrap-btn, .lx-acts-nowrap button, .lx-acts-nowrap a, .lx-acts-nowrap label, .lx-appr-act { white-space: nowrap !important; }
.lx-acts-nowrap { flex-wrap: wrap; }
.lx-acts-nowrap .ant-space-item { flex-shrink: 0; }
.lx-appr-act.lx-edit { color: #0f172a !important; }
/* remarks pop-up before Validate / Cancel */
.lx-trr-tr { font-size: 14px; color: #334155; margin-bottom: 8px; }
.lx-trr-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.lx-trr-h label { font-weight: 600; font-size: 14px; }
.lx-trr-pick { font-size: 13.5px; font-weight: 600; color: #6F4C54 !important; cursor: pointer; white-space: nowrap; }
.lx-trr-note { margin-top: 6px; font-size: 12.5px; color: #475569; }

/* =====================================================================
   (2026-11-10, owner) LIGHTER action buttons and PDF links app-wide - text and icons.
   An override at the end (the rules above are unchanged): action links a lighter blue,
   PDF links a lighter red; hover returns to the full colour.
   ===================================================================== */
.btn.btn-primary, .btn.btn-success, .lx-action-link, .lx-view-profile-link,
.btn.btn-primary i, .btn.btn-success i, .lx-action-link i, .lx-view-profile-link i,
.btn.btn-primary .anticon, .btn.btn-success .anticon, .lx-action-link .anticon,
.btn[data-lxico]::before,
.lx-rpt-action, .lx-rpt-action .anticon, .lx-rpt-action i,
.btn.print-btn, .btn.print-btn .anticon, .btn.print-btn i,
.lx-pdf-btn, .lx-rt-apply, .lx-trr-pick, .lx-appr-act.lx-ok, .lx-appr-act.lx-ok .anticon {
    color: #6F4C54 !important;
}
.btn.btn-primary:hover, .btn.btn-success:hover, .lx-action-link:hover, .lx-view-profile-link:hover,
.btn.btn-primary:hover i, .btn.btn-success:hover i, .lx-action-link:hover i,
.btn.btn-primary:hover .anticon, .btn.btn-success:hover .anticon,
.lx-rpt-action:hover, .lx-rpt-action:hover .anticon, .btn.print-btn:hover, .lx-pdf-btn:hover {
    color: #6F4C54 !important;
}
/* PDF links / icons: a lighter red */
.lx-tr-pdf, .lx-tr-pdf .anticon, .lx-appr-act.lx-pdf, .lx-appr-act.lx-pdf .anticon { color: #EF7B7B !important; }
.lx-tr-pdf:hover, .lx-appr-act.lx-pdf:hover { color: #dc2626 !important; }
.lx-tr-pdf-btn { background: #fff7f7 !important; border-color: #fde2e2 !important; }
/* the other row actions: lighter too */
.lx-appr-act.lx-no, .lx-appr-act.lx-no .anticon { color: #D9A05B !important; }
.lx-appr-act.lx-edit, .lx-appr-act.lx-edit .anticon { color: #7B8798 !important; }
.lx-str-btn { color: #E06666 !important; border-color: #fde2e2 !important; }

/* (2026-11-10, owner) Customer Case Manager: the comments log as a grid */
.lx-clog { margin-top: 8px; max-height: 240px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.lx-clog table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lx-clog thead th { position: sticky; top: 0; background: #f0f7ff; color: #6F4C54; font-weight: 700; text-align: left; padding: 7px 10px; border-bottom: 1px solid #dbeafe; }
.lx-clog td { padding: 6px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #1e293b; }
.lx-clog tbody tr:nth-child(even) td { background: #fafcff; }
.lx-clog-dt { white-space: nowrap; color: #334155 !important; }
.lx-clog-by { white-space: nowrap; color: #475569 !important; }
.lx-clog-none { color: #64748b !important; font-style: italic; text-align: center; padding: 14px !important; }

/* =====================================================================
   (2026-11-10, owner) Section ribbons (Customer Onboarding Case Manager): the grey header bars as light coloured
   ribbons like the Customer Profile header - rounded tint, a round icon badge, the title in the ribbon's own colour.
   .lx-rib + a tone (.lx-rib-teal/blue/violet/amber/green/rose/slate) + an icon (.lx-ico-*).
   ===================================================================== */
.custom-col.lx-rib {
    display: flex !important; align-items: center; gap: 12px;
    padding: 9px 14px !important; border-radius: 10px !important; box-shadow: none !important;
    border: 1px solid transparent; margin-top: 10px !important; margin-bottom: 10px !important;
}
.custom-col.lx-rib::before {
    font-family: "Font Awesome 6 Free"; font-weight: 900; flex-shrink: 0;
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.custom-col.lx-rib .custom-heading { font-size: 15px; font-weight: 700; }
.lx-rib.lx-ico-user::before     { content: "\f007"; }
.lx-rib.lx-ico-idcard::before   { content: "\f2c2"; }
.lx-rib.lx-ico-shield::before   { content: "\f3ed"; }
.lx-rib.lx-ico-chart::before    { content: "\f201"; }
.lx-rib.lx-ico-news::before     { content: "\f1ea"; }
.lx-rib.lx-ico-share::before    { content: "\f1e0"; }
.lx-rib.lx-ico-robot::before    { content: "\f544"; }
.lx-rib.lx-ico-comments::before { content: "\f086"; }
.lx-rib.lx-ico-file::before     { content: "\f574"; }
.lx-rib.lx-ico-info::before     { content: "\f05a"; }
.custom-col.lx-rib-teal   { background: #f2fbfa !important; border-color: #ccf1ec; }
.lx-rib-teal::before      { background: #d5f3ee; color: #0f766e; }
.lx-rib-teal .custom-heading, .lx-rib-teal .custom-heading * { color: #0f766e !important; }
.custom-col.lx-rib-blue   { background: #f5f9ff !important; border-color: #dbeafe; }
.lx-rib-blue::before      { background: #dbeafe; color: #6F4C54; }
.lx-rib-blue .custom-heading, .lx-rib-blue .custom-heading * { color: #6F4C54 !important; }
.custom-col.lx-rib-violet { background: #faf7ff !important; border-color: #ede4fe; }
.lx-rib-violet::before    { background: #ede4fe; color: #6d28d9; }
.lx-rib-violet .custom-heading, .lx-rib-violet .custom-heading * { color: #6d28d9 !important; }
.custom-col.lx-rib-amber  { background: #fffaf0 !important; border-color: #fde9c3; }
.lx-rib-amber::before     { background: #fdecc8; color: #b45309; }
.lx-rib-amber .custom-heading, .lx-rib-amber .custom-heading * { color: #b45309 !important; }
.custom-col.lx-rib-green  { background: #f3fbf6 !important; border-color: #d1fae5; }
.lx-rib-green::before     { background: #d1fae5; color: #15803d; }
.lx-rib-green .custom-heading, .lx-rib-green .custom-heading * { color: #15803d !important; }
.custom-col.lx-rib-rose   { background: #fff6f8 !important; border-color: #fbe0e6; }
.lx-rib-rose::before      { background: #fde4ea; color: #be123c; }
.lx-rib-rose .custom-heading, .lx-rib-rose .custom-heading * { color: #be123c !important; }
.custom-col.lx-rib-slate  { background: #f8fafc !important; border-color: #e2e8f0; }
.lx-rib-slate::before     { background: #e2e8f0; color: #334155; }
.lx-rib-slate .custom-heading, .lx-rib-slate .custom-heading * { color: #334155 !important; }
/* the ribbon's own content fills it (keeps a right-hand part, e.g. the screening name box, on the right) */
.custom-col.lx-rib > * { flex: 1 1 auto; min-width: 0; }

/* (2026-11-11, owner) lx-req-soft: a lighter mandatory tint than the app-wide #FAB2C3 (_Layout.cshtml), for long text boxes
   (Tr - Case Manager STR descriptions). More specific than textarea.lx-req-field, so it wins over the global tint. */
/* (2026-11-11) optional now (no star), still a very light red ground */
textarea.lx-req-soft, input.lx-req-soft, textarea.lx-req-field.lx-req-soft, input.lx-req-field.lx-req-soft { background-color: #FFF7F7 !important; border-color: #fbd5d5; }
textarea.lx-req-soft:focus, input.lx-req-soft:focus, textarea.lx-req-field.lx-req-soft:focus, input.lx-req-field.lx-req-soft:focus { background-color: #FFFBFB !important; }
.lx-docs-toggle { cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 8px; }
.lx-docs-toggle .lx-docs-n { padding: 0 8px; border-radius: 10px; font-size: 12.5px; background: #e8f1fe; color: #6F4C54; }
.lx-docs-toggle i { font-size: 13px; color: #6F4C54; }
.lx-act-hint { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13.5px; }
.lx-act-hint i { margin-right: 6px; }
.lx-act-hint a { margin-left: 8px; color: #6F4C54; font-weight: 600; text-decoration: underline; cursor: pointer; }
