/* ==========================================================================
   KUI application shell for RE-KYC (Add code kingshuk 23/10/2026)
   --------------------------------------------------------------------------
   The eKYC-style layout (top bar, "Your application" step rail, flat page title above a form card, footer) for the Ekyc step pages.
   Loaded only by Views/Shared/_Layout.kui.cshtml and scoped to body.kui-app, so Home/Index and Home/ResumeApplication (body.kui-auth) are never affected.
   Colours: ONLY the existing RE-KYC tokens from kui-tokens.css (Infinity Sky teal, light and dark). No colour is taken from eKYC.
   Written after kui.css so it can reset the earlier floating-panel shell rules that still match the shared page wrapper (.middle-content).
   ========================================================================== */

/* font-weight scale (same steps as the eKYC typography file): 400 text, labels and navigation | 450 buttons, badges and active states | 500 headings and titles | 600 page titles only. Montserrat is declared 500-700, so 500 is its lightest. Nothing above 600 is used. */
html:root { --kui-fw-regular: 400; --kui-fw-button: 450; --kui-fw-medium: 500; --kui-fw-title: 600; }

html:has(body.kui-app) { background: var(--kui-bg); }
html body.kui-app { background: var(--kui-bg) !important; color: var(--kui-text); letter-spacing: normal; overflow-x: hidden; }
html body.kui-app::before { display: none !important; }
html body.kui-app p, html body.kui-app li, html body.kui-app .form-check-label { line-height: 1.6; }
html body.kui-app .text-muted, html body.kui-app .kui-hint { color: var(--kui-text-muted) !important; }
html body.kui-app .invalid-feedback { display: none; }
html body.kui-app .is-invalid ~ .invalid-feedback, html body.kui-app .was-validated :invalid ~ .invalid-feedback { display: block; color: var(--kui-danger-text); font-size: 12.5px; }

/* ---------------------------------------------------------------- Top bar */
.kui-topbar {
    /* Add code kingshuk 23/10/2026 : the bar stays full width (background and border), but its content sits in the same centred 1360px box as .kui-shell and .kui-footer:
       the side padding is the 24px content inset plus half of whatever width is left outside that box, so the logo lines up with the step panel and the footer text,
       and the theme button and profile line up with the right edge of the page card. */
    position: sticky; top: 0; z-index: 1030; height: var(--kui-header-h); display: flex; align-items: center; gap: 12px; padding: 0 max(24px, calc((100% - 1360px) / 2 + 24px));
    background: color-mix(in srgb, var(--kui-surface) 90%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--kui-border);
}
.kui-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.kui-brand img, .kui-topbar .kui-brand .kui-logo { height: 34px; width: auto; }
.kui-menu-btn { display: none; }
.kui-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--kui-brand-100); }
.kui-userbtn { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--kui-text); }
.kui-userbtn .kui-username { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: var(--kui-fw-button); text-transform: uppercase; letter-spacing: .01em; }
.kui-topbar .dropdown-menu { min-width: 250px; margin-top: 8px !important; padding: 8px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius); box-shadow: var(--kui-shadow-3); }
.kui-topbar .dropdown-menu .kui-usercard { margin-bottom: 6px; padding: 10px 12px 12px; border-bottom: 1px solid var(--kui-border); }
.kui-topbar .dropdown-menu .kui-usercard strong { display: block; color: var(--kui-text); text-transform: uppercase; font-size: 14px; }
.kui-topbar .dropdown-menu .kui-usercard small { color: var(--kui-text-muted); }
.kui-topbar .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--kui-text); }
.kui-topbar .dropdown-item:hover { background: var(--kui-brand-50); color: var(--kui-brand-600); text-decoration: none; }
.kui-topbar .dropdown-item svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Shell: rail + page */
.kui-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 1360px; margin: 0 auto; padding: 24px 24px 0; }
.kui-main { min-width: 0; width: 100%; margin: 0; }
.kui-content { min-height: calc(100dvh - var(--kui-header-h) - 140px); padding: 0; margin: 0; }
.kui-inner { width: 100%; max-width: none; margin: 0; padding: 0; }

/* ---------------------------------------------------------------- Step rail ("Your application") */
.kui-rail {
    position: sticky; top: calc(var(--kui-header-h) + 20px); max-height: calc(100dvh - var(--kui-header-h) - 40px); overflow: auto;
    padding: 24px 14px 22px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); box-shadow: var(--kui-shadow-1);
}
.kui-rail * { white-space: normal; }
.kui-rail .kui-rail-summary { display: none; }   /* the ring card from _LoadMenu belongs to the previous layout */
.kui-rail-title { padding: 0 10px 12px; color: var(--kui-text-muted); font-size: 12px; font-weight: var(--kui-fw-medium); line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.kui-progress-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 0 10px 8px; font-size: 13px; font-weight: var(--kui-fw-regular); color: var(--kui-text); }
.kui-progress-meta [data-kui-step-pct] { color: var(--kui-brand-600); font-weight: var(--kui-fw-medium); font-variant-numeric: tabular-nums; }
.kui-progress { height: 8px; margin: 0 10px 20px; background: var(--kui-border); border-radius: 99px; overflow: hidden; }
.kui-progress > span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--kui-brand-700), var(--kui-brand-500) 40%, var(--kui-accent-500) 75%, var(--kui-success)); transition: width .4s ease; }
.kui-progress + ul.menu-categories { padding-top: 14px; border-top: 1px solid var(--kui-border); }
.kui-rail ul.menu-categories { list-style: none; margin: 0; padding: 0; width: 100%; height: auto !important; overflow: visible; counter-reset: kui-step; position: relative; }
.kui-rail li.menu.menu-heading { display: none; }
.kui-rail li.menu { position: relative; margin: 0 0 6px; counter-increment: kui-step; }
.kui-rail li.menu:last-child { margin-bottom: 2px; }
.kui-rail li.menu > a, .kui-rail li.menu > a.dropdown-toggle {
    display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 54px; margin: 0; padding: 10px 12px;
    border-radius: 10px; background: transparent; color: var(--kui-text-muted); font-size: 14px; font-weight: var(--kui-fw-regular); letter-spacing: normal; text-decoration: none;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.kui-rail li.menu > a.dropdown-toggle::after { display: none; }
.kui-rail li.menu > a > div { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; width: 100%; min-width: 0; align-self: stretch; }
.kui-rail li.menu > a > div::before {
    content: counter(kui-step); flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
    background: var(--kui-surface-2); color: var(--kui-text-muted); border: 1.5px solid var(--kui-border-strong); font-size: 13px; font-weight: var(--kui-fw-medium); line-height: 1; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.kui-rail li.menu > a > div > i[data-feather], .kui-rail li.menu > a > div > svg.feather:first-of-type { display: none; }   /* the number replaces the step icon */
.kui-rail li.menu > a > div > span { flex: 1 1 auto; min-width: 0; color: var(--kui-text); font-size: 14.5px; line-height: 1.3; font-weight: var(--kui-fw-regular); overflow-wrap: anywhere; }
.kui-rail li.menu > a > div > svg.text-success, .kui-rail li.menu > a > div > svg.text-danger { flex: 0 0 20px; width: 20px; height: 20px; margin: 0 0 0 auto; fill: none; }
.kui-rail li.menu > a > div > svg.text-success { color: var(--kui-success) !important; }
.kui-rail li.menu > a > div > svg.text-danger { color: var(--kui-danger) !important; }
.kui-rail li.menu:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 43px; bottom: -17px; width: 2px; background: var(--kui-border); border-radius: 2px; z-index: 0; }
.kui-rail li.menu > a:hover { background: var(--kui-surface-2); color: var(--kui-text); text-decoration: none; }
.kui-rail li.menu > a:hover > div::before { border-color: var(--kui-brand-500); }
.kui-rail li.menu.active > a, .kui-rail li.menu.active > a.dropdown-toggle { background: var(--kui-brand-50); box-shadow: inset 3px 0 0 var(--kui-brand-600); }
.kui-rail li.menu.active > a > div > span { color: var(--kui-brand-600); font-weight: var(--kui-fw-medium); }
.kui-rail li.menu.active > a > div::before { background: var(--kui-btn); border-color: var(--kui-btn); color: var(--kui-on-brand); }
.kui-rail li.menu > a:focus-visible { outline: 2px solid var(--kui-brand-600); outline-offset: -2px; }
.kui-mobile-progress { display: none; }
.kui-scrim { display: none; }

/* ---------------------------------------------------------------- Page wrapper: no card of its own (the earlier panel look is reset) */
html body.kui-app .middle-content {
    max-width: none; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; animation: none;
}
html body.kui-app .middle-content :is(h2.my-5, h2.mt-5, h2.kui-page-title) {
    display: block; position: static; margin: 0 0 18px !important; padding: 0; border: 0; font-family: var(--kui-font-heading); font-size: 24px; font-weight: var(--kui-fw-title); line-height: 1.3; letter-spacing: -.01em; color: var(--kui-heading);
}
html body.kui-app .middle-content :is(h2.my-5, h2.mt-5, h2.kui-page-title)::after { display: none; }
html body.kui-app .middle-content :is(h2.my-5, h2.mt-5, h2.kui-page-title) .text-primary { background: none; -webkit-text-fill-color: currentColor; color: var(--kui-brand-600) !important; }
html body.kui-app .middle-content :is(h2.my-5, h2.mt-5, h2.kui-page-title) .float-end {
    float: none !important; display: inline-block; vertical-align: middle; margin: -3px 0 0 12px; padding: 6px 12px; border: 0; border-radius: 99px; box-shadow: none;
    background: var(--kui-brand-100); color: var(--kui-brand-600) !important; font-family: var(--kui-font); font-size: 12px !important; font-weight: var(--kui-fw-button); letter-spacing: .06em; text-transform: uppercase;
}

/* alerts sit above the form card at the same width */
html body.kui-app .middle-content > .alert, html body.kui-app .middle-content > .row > [class*="col-"] > .alert { margin-bottom: 16px !important; }
html body.kui-app .middle-content .row > .col-12.my-5 { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ---------------------------------------------------------------- Data-entry surface: the form is the card */
html body.kui-app .middle-content form:not(.modal *):not(.card *):not(:has(> h2)),
html body.kui-app .middle-content .kui-panel {
    margin: 0 0 20px; padding: 24px 28px 22px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); box-shadow: var(--kui-shadow-1);
}
html body.kui-app .middle-content form:not(.modal *):not(.card *):has(> h2) { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
html body.kui-app .middle-content form#NoNominee:not(:has(#nominationNo:not([hidden]))) { display: none; }
html body.kui-app .middle-content form:has(> .row.my-2 .form-group):not(.modal *):not(.card *) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 24px; }
html body.kui-app .middle-content form .form-group { margin-bottom: 16px; }
/* section headings inside forms: small, quiet, with a hairline (not the teal bar) */
html body.kui-app .middle-content .kui-section {
    display: block; margin: 4px 0 16px; padding: 0 0 8px; border-bottom: 1px solid var(--kui-border); font-family: var(--kui-font); font-size: 13px; font-weight: var(--kui-fw-medium); letter-spacing: .08em; text-transform: uppercase; color: var(--kui-text-muted);
}
html body.kui-app .middle-content .kui-section::before, html body.kui-app .middle-content .kui-section::after { display: none; }
html body.kui-app .middle-content .kui-section:not(:first-child) { margin-top: 12px; }
html body.kui-app .middle-content .kui-section:first-child { margin-top: 0; }

/* fields: eKYC scale, flat */
html body.kui-app .middle-content label, html body.kui-app .middle-content .form-label { font-size: 13px; font-weight: var(--kui-fw-regular); letter-spacing: normal; color: var(--kui-text); margin-bottom: 6px; }
html body.kui-app .middle-content .form-control, html body.kui-app .middle-content .form-select { min-height: var(--kui-control-h); padding: 10px 14px; border: 1.5px solid var(--kui-border-strong); border-radius: var(--kui-radius-sm); font-size: 15px; box-shadow: none; }
html body.kui-app .middle-content .form-control:hover:not(:disabled):not([readonly]), html body.kui-app .middle-content .form-select:hover:not(:disabled) { border-color: var(--kui-brand-500); }
html body.kui-app .middle-content .form-control:focus, html body.kui-app .middle-content .form-select:focus { border-color: var(--kui-brand-600); box-shadow: 0 0 0 4px var(--kui-focus); }
html body.kui-app .middle-content .form-control[readonly], html body.kui-app .middle-content .form-control:disabled { background-color: var(--kui-surface-2); color: var(--kui-text-muted); border-style: dashed; cursor: not-allowed; }
html body.kui-app .middle-content .form-group > .form-control[readonly] { background-image: none; padding-right: 14px; }
html body.kui-app .middle-content .input-group > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
html body.kui-app .middle-content .input-group-text { min-height: var(--kui-control-h); border: 1.5px solid var(--kui-border-strong); border-left: 0; border-radius: 0 var(--kui-radius-sm) var(--kui-radius-sm) 0; background: var(--kui-surface-2) !important; }
html body.kui-app .middle-content form#PersonalInfoValid label .text-danger { margin: 0; padding: 0; background: none; font-size: inherit; font-weight: inherit; }
html body.kui-app .middle-content form > .row.my-2 .mb-3 { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 10px; margin-bottom: 10px !important; padding: 0; border: 0; background: none; }
html body.kui-app .middle-content form > .row.my-2 .mb-3 > label { flex: 1 1 calc(100% - 40px); min-width: 0; margin: 0; font-weight: var(--kui-fw-regular); }
html body.kui-app .middle-content form > .row.my-2 .mb-3 > input[type="checkbox"] { margin: 3px 0 0; flex: 0 0 18px; }
html body.kui-app .middle-content form > .row.my-2 .mb-3 > .invalid-feedback { flex: 0 0 100%; padding-left: 28px; }

/* buttons: flat, one scale, no sheen or glow */
html body.kui-app .btn { min-height: var(--kui-btn-h); padding: 0 20px; border-radius: var(--kui-btn-radius); border-width: 1.5px; font-size: 14.5px; line-height: 1.2; box-shadow: none; }
html body.kui-app .btn-sm { min-height: var(--kui-btn-h-sm); padding: 0 14px; font-size: 13.5px; }
html body.kui-app .btn:not(:disabled):not(.disabled):hover, html body.kui-app .btn:not(:disabled):not(.disabled):active { transform: none; }
html body.kui-app .btn-primary:not(:disabled):not(.disabled), html body.kui-app .btn-primary:not(:disabled):not(.disabled):hover { background-image: none; }
html body.kui-app .btn-primary:not(:disabled):not(.disabled):hover, html body.kui-app .btn-primary:not(:disabled):not(.disabled):active { box-shadow: none !important; }
html body.kui-app .btn-outline-primary:not(:disabled):not(.disabled):hover, html body.kui-app .btn-secondary:not(:disabled):not(.disabled):hover, html body.kui-app .btn-light:not(:disabled):not(.disabled):hover { box-shadow: none; }
html body.kui-app .middle-content #btnSubmit, html body.kui-app .middle-content #BtnSubmit, html body.kui-app .middle-content #continueBtn, html body.kui-app .middle-content #FinalSubmitBtn,
html body.kui-app .middle-content form #btnKYC, html body.kui-app .middle-content form #btnKRA { min-width: 0; min-height: var(--kui-btn-h-lg); padding: 0 28px; letter-spacing: normal; }
html body.kui-app .middle-content .defaultBtnSubmit:hover, html body.kui-app .middle-content #btnSubmit:not(:disabled):hover { box-shadow: none !important; }

/* ---------------------------------------------------------------- Trading preference */
html body.kui-app .middle-content form#ProductSegment > h6 { padding: 0; border: 0; background: none; font-size: 14.5px; font-weight: var(--kui-fw-regular); line-height: 1.5; color: var(--kui-text-muted); }
html body.kui-app .middle-content form#ProductSegment > p.text-danger { padding: 0; border: 0; background: none; color: var(--kui-danger-text) !important; font-size: 13px; font-weight: var(--kui-fw-regular); }
html body.kui-app .middle-content form#ProductSegment .form-check-inline:has(.form-check-input:checked), html body.kui-app .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label):has(input:checked) { box-shadow: none; background: var(--kui-brand-50); }
html body.kui-app .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:has(input[onclick*="return false"])::after { display: none; }
html body.kui-app .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:has(input[onclick*="return false"]) > .text-danger { display: inline; }
html body.kui-app .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:has(input[onclick*="return false"]) { background: var(--kui-surface); cursor: default; }

html body.kui-app .middle-content form#ProductSegment { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
@media (max-width: 767.98px) { html body.kui-app .middle-content form#ProductSegment { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Proof of address */
html body.kui-app .middle-content .labl > input + div.card { box-shadow: none; }
html body.kui-app .middle-content .labl > input + div.card:hover { transform: none; box-shadow: none; }
html body.kui-app .middle-content .labl > input:checked + div.card { box-shadow: none; }
html body.kui-app .middle-content .row > [class*="col-lg-"]:has(#chkDigi) { box-shadow: var(--kui-shadow-1); border-radius: var(--kui-radius-lg); }
html body.kui-app .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > p:nth-of-type(3) { padding: 0; border: 0; background: none; color: var(--kui-text); font-weight: var(--kui-fw-regular); }
html body.kui-app .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label:has(#chkDigi:checked) { box-shadow: none; }

/* ---------------------------------------------------------------- Nominee: the original rows (two fields per line), each nominee in a white card */
html body.kui-app .middle-content form[id$="BasicForm"] { display: block; margin: 0 0 20px !important; padding: 24px 28px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); }
html body.kui-app .middle-content form[id$="BasicForm"] > hr { display: block; margin: 0 0 18px; }
html body.kui-app .middle-content form[id$="BasicForm"] > * { margin-left: 0; margin-right: 0; }
html body.kui-app .middle-content form[id$="BasicForm"] > .row, html body.kui-app .middle-content form[id$="BasicForm"] .col-lg-12 > .row { display: flex; flex-wrap: wrap; margin: 0 -12px 16px; }
html body.kui-app .middle-content form[id$="BasicForm"] > .row > [class*="col-md-"], html body.kui-app .middle-content form[id$="BasicForm"] .col-lg-12 > .row > [class*="col-md-"] { flex: 0 0 33.3333%; width: 33.3333%; max-width: 33.3333%; padding: 0 12px; margin: 0; }
html body.kui-app .middle-content form[id$="BasicForm"] > .row > .col-lg-12 { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 0 12px; }
html body.kui-app .middle-content form[id$="BasicForm"] [id$="AddressBlock"] { display: block; margin-top: 8px !important; }
html body.kui-app .middle-content form[id$="BasicForm"] [id$="AddressBlock"] > .row { display: flex; flex-wrap: wrap; margin: 0 -12px 16px; }
html body.kui-app .middle-content form[id$="BasicForm"] [id$="AddressBlock"] > .row > [class*="col-md-"] { flex: 0 0 33.3333%; width: 33.3333%; max-width: 33.3333%; padding: 0 12px; }
html body.kui-app .middle-content form[id$="BasicForm"] [id$="AddressBlock"] > .row > .col-md-8 { flex: 0 0 66.6667%; width: 66.6667%; max-width: 66.6667%; }
html body.kui-app .middle-content form[id$="BasicForm"] h5 { display: block; margin: 4px 0 14px; padding: 0 0 8px; border-bottom: 1px solid var(--kui-border); font-family: var(--kui-font); font-size: 14px; font-weight: var(--kui-fw-medium); letter-spacing: 0; text-transform: none; color: var(--kui-heading); }
html body.kui-app .middle-content form[id$="BasicForm"] h5::before, html body.kui-app .middle-content form[id$="BasicForm"] h5::after { display: none; }
html body.kui-app .middle-content form[id$="BasicForm"] > h5 { font-size: 15px; }
html body.kui-app .middle-content form[id$="BasicForm"] .form-group { margin-bottom: 0; }
html body.kui-app .middle-content .row > .col-lg-12 > .form-group.d-flex:has(input[name="OptedForNomination"]) { padding: 14px 18px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); margin-bottom: 16px; }
html body.kui-app .middle-content #nominationYes > .row.mb-4 { padding: 0; border: 0; background: none; margin: 0 0 16px !important; }
html body.kui-app .middle-content .form-group.d-flex > .form-check:has(.form-check-input:checked) { box-shadow: none; }
@media (max-width: 767.98px) {
    html body.kui-app .middle-content form[id$="BasicForm"] > .row > [class*="col-md-"], html body.kui-app .middle-content form[id$="BasicForm"] .col-lg-12 > .row > [class*="col-md-"], html body.kui-app .middle-content form[id$="BasicForm"] [id$="AddressBlock"] > .row > [class*="col-md-"] { flex: 0 0 100%; width: 100%; max-width: 100%; margin-bottom: 12px; }
}

/* ---------------------------------------------------------------- Documents: left-aligned cards, flat buttons */
html body.kui-app .middle-content .row > .layout-spacing { display: flex; margin: 0 0 16px; padding: 0 12px; }
html body.kui-app .middle-content .row > .layout-spacing > .statbox { width: 100%; }
html body.kui-app .middle-content .card.style-3 { box-shadow: var(--kui-shadow-1); border-radius: var(--kui-radius-lg); }
html body.kui-app .middle-content .card.style-3:hover { transform: none; box-shadow: var(--kui-shadow-1); border-color: var(--kui-border); }
html body.kui-app .middle-content .card.style-3 > img.card-img-top, html body.kui-app .middle-content .card.style-3 > iframe.card-img-top { height: 200px; border: 1px solid var(--kui-border); border-radius: 8px; background: var(--kui-surface-2); }
html body.kui-app .middle-content .card.style-3 > img.card-img-top[src*="noimage"], html body.kui-app .middle-content .card.style-3 > img.card-img-top[src*="nopdf"] { content: normal; }
html body.kui-app .middle-content .card.style-3 .card-body { text-align: left; align-self: stretch !important; padding: 16px 18px 20px !important; }
html body.kui-app .middle-content .card.style-3 .card-title { font-family: var(--kui-font-heading); font-size: 16px; font-weight: var(--kui-fw-medium); color: var(--kui-text) !important; }
html body.kui-app .middle-content .card.style-3 .media-text { justify-content: flex-start; }
html body.kui-app .kui-act { border-radius: var(--kui-btn-radius); box-shadow: none; }
html body.kui-app .kui-act--solid:hover, html body.kui-app .kui-act--tint:hover { transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- In-person verification: one card; instruction, script, controls | video */
html body.kui-app #recordbody { max-width: 1000px; padding: 26px 28px 28px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: 18px; box-shadow: var(--kui-shadow-2); }
html body.kui-app .middle-content #recordbody > .row { display: block; margin: 0; }
html body.kui-app .middle-content #recordbody > .row > [class*="col-"] { width: 100%; max-width: none; padding: 0; margin: 0 !important; grid-column: auto; grid-row: auto; flex: 0 0 100%; }
html body.kui-app .middle-content #recordbody > .row > .my-6 { margin: 0 0 14px !important; }
html body.kui-app .middle-content #recordbody > #txtRecordText { display: flex; align-items: center; gap: 10px; margin: 0 0 16px !important; padding: 0; border: 0; background: none; font-size: 15px; font-weight: var(--kui-fw-regular); line-height: 1.5; color: var(--kui-text-muted) !important; }
html body.kui-app .middle-content #recordbody > #txtRecordText::before { width: 24px; height: 24px; background: var(--kui-brand-600); animation: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 8.5A2.5 2.5 0 0 0 12.5 6h-7A2.5 2.5 0 0 0 3 8.5v7A2.5 2.5 0 0 0 5.5 18h7a2.5 2.5 0 0 0 2.5-2.5z'/%3E%3Cpath d='m15 10.5 5.2-3a.5.5 0 0 1 .8.4v8.2a.5.5 0 0 1-.8.4L15 13.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 8.5A2.5 2.5 0 0 0 12.5 6h-7A2.5 2.5 0 0 0 3 8.5v7A2.5 2.5 0 0 0 5.5 18h7a2.5 2.5 0 0 0 2.5-2.5z'/%3E%3Cpath d='m15 10.5 5.2-3a.5.5 0 0 1 .8.4v8.2a.5.5 0 0 1-.8.4L15 13.5'/%3E%3C/svg%3E") center / contain no-repeat; }
html body.kui-app #txtOtp { position: relative; display: block; margin: 0; padding: 16px 20px 16px 24px; border: 1px solid color-mix(in srgb, var(--kui-brand-600) 30%, var(--kui-border)); border-left: 1px solid color-mix(in srgb, var(--kui-brand-600) 30%, var(--kui-border)); border-radius: 14px; background: linear-gradient(135deg, var(--kui-brand-50), var(--kui-brand-100)); box-shadow: none; font-family: var(--kui-font-heading); font-size: 24px; font-weight: var(--kui-fw-medium); letter-spacing: .01em; line-height: 1.3; color: var(--kui-brand-700) !important; }
html body.kui-app #txtOtp::before { position: static; display: block; margin-bottom: 6px; font-size: 11px; font-weight: var(--kui-fw-regular); letter-spacing: .1em; color: var(--kui-text-muted); content: "Read this line aloud"; }
html body.kui-app #txtOtp::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; height: auto; border-radius: 0 4px 4px 0; background: var(--kui-brand-600); animation: none; right: auto; }
html body.kui-app #txtOtp b { font-weight: var(--kui-fw-medium); color: inherit; }
html body.kui-app .middle-content #recordbody #countdown { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px !important; padding: 7px 14px; border: 1px solid var(--kui-success); border-radius: 14px; background: var(--kui-success-bg); color: var(--kui-success-text) !important; font-size: 13.5px; font-weight: var(--kui-fw-regular); line-height: 1.45; }
html body.kui-app .middle-content #recordbody #countdown:empty { display: none; }
html body.kui-app .middle-content #recordbody #countdown:not(:empty)::before { display: none; }
html body.kui-app #recordbody > .row > .col-lg-8:last-child { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); column-gap: 26px; align-items: start; margin-top: 4px !important; }
html body.kui-app .middle-content #recordbody #divBtn { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 2px 0 0; }
html body.kui-app .middle-content #recordbody #divBtn .btn { flex: 0 0 auto; width: 100%; min-height: var(--kui-btn-h-lg); padding: 0 20px 0 18px; border-radius: var(--kui-btn-radius); font-size: 14.5px; font-weight: var(--kui-fw-button); letter-spacing: .01em; animation: none; }
html body.kui-app .middle-content #recordbody #divBtn .btn::before, html body.kui-app .middle-content #recordbody #divBtn .btn::after { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; border-radius: 0; box-shadow: none; animation: none; transform: none;
    -webkit-mask: var(--kui-ico) center / contain no-repeat; mask: var(--kui-ico) center / contain no-repeat; }
html body.kui-app #divBtn #buttonStart, html body.kui-app #divBtn #buttonStart:hover { animation: none; }
html body.kui-app #buttonStart { --kui-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3C/svg%3E"); }
html body.kui-app #buttonStop { --kui-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12' rx='2.5'/%3E%3C/svg%3E"); }
html body.kui-app #buttonRetake { --kui-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.7-6.2'/%3E%3Cpath d='M3.5 4v4.8h4.8'/%3E%3C/svg%3E"); }
html body.kui-app #btnSubmit { --kui-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.6l4.6 4.6L19 7.6'/%3E%3C/svg%3E"); }
html body.kui-app #btnContinue { --kui-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
html body.kui-app #divBtn .btn:not(#btnContinue)::after { display: none; }
html body.kui-app #divBtn #btnContinue::before { display: none; }
html body.kui-app #divBtn #btnContinue::after { display: block; }
html body.kui-app #divBtn #buttonRetake.btn.btn-primary { background-color: var(--kui-brand-50) !important; border: 1.5px solid color-mix(in srgb, var(--kui-brand-600) 40%, var(--kui-border)) !important; color: var(--kui-brand-700) !important; }
html body.kui-app #divBtn #buttonRetake.btn.btn-primary:hover { background-color: var(--kui-brand-100) !important; border-color: var(--kui-brand-600) !important; }
html body.kui-app #DeviceChange.device { position: relative; grid-column: 2; grid-row: 1 / span 4; width: auto; max-width: none !important; margin: 0 !important; padding: 8px !important; border: 1px solid var(--kui-border) !important; border-radius: 18px !important; background: linear-gradient(145deg, #16233b, #0b1220) !important; box-shadow: 0 18px 40px rgba(15, 27, 45, .22) !important; overflow: visible; }
html body.kui-app #DeviceChange.device video.device-screen, html body.kui-app #DeviceChange.device .video-js { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3 !important; object-fit: cover; }
html body.kui-app #DeviceChange.device::before { display: inline-flex !important; content: "Live preview"; position: absolute !important; top: 20px !important; left: 20px !important; right: auto !important; bottom: auto !important; z-index: 3; align-items: center; width: auto !important; height: auto !important; margin: 0 !important; padding: 5px 12px 5px 26px !important; border-radius: 999px !important; background: radial-gradient(circle at 13px 50%, #FF6262 0 4px /* Add code kingshuk 05/11/2026 */, transparent 4.6px), rgba(11, 18, 32, .72) !important; box-shadow: none !important; transform: none !important; animation: none; color: #fff; font-family: var(--kui-font); font-size: 11.5px; font-weight: var(--kui-fw-regular); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
html body.kui-app #DeviceChange.device:has(#videoRecorded:not([hidden]))::before { content: "Recorded video"; background: radial-gradient(circle at 13px 50%, #4ade80 0 4px, transparent 4.6px), rgba(11, 18, 32, .72) !important; }
html body.kui-app #DeviceChange.device::after { display: none !important; }
/* the earlier shell styled the tag through :has(); the same state selector is needed here to take over */
html body.kui-app #DeviceChange.device:has(#videoLive:not([hidden]))::before, html body.kui-app #DeviceChange.device:has(#videoRecorded:not([hidden]))::before {
    content: "Live preview"; top: 20px !important; left: 20px !important; padding: 5px 12px 5px 26px !important; border-radius: 999px !important; animation: none;
    background: radial-gradient(circle at 13px 50%, #FF6262 0 4px /* Add code kingshuk 05/11/2026 */, transparent 4.6px), rgba(11, 18, 32, .72) !important; font-size: 11.5px; font-weight: var(--kui-fw-regular); letter-spacing: .06em;
}
html body.kui-app #DeviceChange.device:has(#videoRecorded:not([hidden]))::before { content: "Recorded video"; background: radial-gradient(circle at 13px 50%, #4ade80 0 4px, transparent 4.6px), rgba(11, 18, 32, .72) !important; }
html body.kui-app #DeviceChange.device:has(#videoLive:not([hidden]))::after { display: none !important; }
html body.kui-app #recordbody > .row > .col-lg-8:last-child::after { content: "Tip: keep your face inside the frame, in good light, and read the line clearly."; grid-column: 1; grid-row: 3; margin-top: 16px; padding: 12px 14px 12px 16px; border-left: 3px solid var(--kui-brand-600); border-radius: 0 10px 10px 0; background: var(--kui-surface-2); color: var(--kui-text-muted); font-size: 13px; line-height: 1.5; }

/* ---------------------------------------------------------------- Review & e-Sign */
html body.kui-app .middle-content .containerIfram4by3 { border-radius: var(--kui-radius-lg); border: 1px solid var(--kui-border) !important; }
html body.kui-app .middle-content form label[for="EquityDerivative"] { margin: 16px 0 0; }
html body.kui-app .middle-content .info-box-1 { box-shadow: var(--kui-shadow-1) !important; }
html body.kui-app .middle-content .info-box-1 > .col-12 > a:hover { transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- Footer */
.kui-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; max-width: 1360px; margin: 28px auto 0; padding: 18px 24px 28px; border-top: 1px solid var(--kui-border); color: var(--kui-text-muted); font-size: 13px; }
.kui-footer p { margin: 0; color: var(--kui-text-muted); font-size: 13px; }
.kui-footer a { color: var(--kui-brand-600); font-weight: var(--kui-fw-medium); }
.kui-secure { display: inline-flex; align-items: center; gap: 6px; }
.kui-secure svg { width: 14px; height: 14px; color: var(--kui-success); }

/* ---------------------------------------------------------------- Tablet and phone: one column; the rail becomes a drawer opened from the top bar */
.kui-progress-meta [data-kui-step-label], .kui-progress-meta [data-kui-step-pct] { font-variant-numeric: tabular-nums; }
@media (max-width: 991.98px) {
    .kui-topbar { padding: 0 16px; }   /* the same 16px inset as .kui-shell and .kui-footer on tablet and phone */
    .kui-menu-btn { display: inline-flex; }
    .kui-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 16px 16px 0; }
    .kui-rail {
        position: fixed; z-index: 1045; inset: 0 auto 0 0; top: 0; width: min(86vw, 320px); height: 100dvh; max-height: none; overflow-y: auto; padding: 24px 14px 16px;
        border-radius: 0 var(--kui-radius-lg) var(--kui-radius-lg) 0; box-shadow: var(--kui-shadow-3); transform: translateX(-102%); transition: transform .25s ease;
    }
    html body.kui-app.kui-rail-open .kui-rail { transform: none; }
    .kui-scrim { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(5, 31, 56, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
    html body.kui-app.kui-rail-open .kui-scrim { opacity: 1; pointer-events: auto; }
    .kui-userbtn .kui-username { display: none; }
    .kui-mobile-progress { display: block; padding: 10px 16px; background: var(--kui-surface); border-bottom: 1px solid var(--kui-border); }
    .kui-mobile-progress .kui-progress { margin: 6px 0 0; }
    .kui-mobile-progress .kui-progress-meta { padding: 0; }
    html body.kui-app .middle-content :is(h2.my-5, h2.mt-5, h2.kui-page-title) { font-size: 21px; }
    html body.kui-app .middle-content form:not(.modal *):not(.card *):not(:has(> h2)), html body.kui-app .middle-content .kui-panel { padding: 18px 16px; }
    html body.kui-app #recordbody > .row > .col-lg-8:last-child { grid-template-columns: minmax(0, 1fr); }
    html body.kui-app #DeviceChange.device { grid-column: 1; grid-row: 3; margin-top: 18px !important; }
    html body.kui-app #recordbody > .row > .col-lg-8:last-child::after { grid-row: 4; }
    html body.kui-app .middle-content #recordbody #divBtn { flex-direction: row; flex-wrap: wrap; }
    html body.kui-app .middle-content #recordbody #divBtn .btn { width: auto; flex: 1 1 150px; }
    .kui-footer { padding: 16px; }
}
@media (max-width: 575.98px) {
    .kui-topbar { gap: 8px; padding: 0 16px; }
    .kui-brand img, .kui-topbar .kui-brand .kui-logo { height: 30px; }
    html body.kui-app #recordbody { padding: 18px 16px 20px; border-radius: 14px; }
    html body.kui-app #txtOtp { font-size: 20px; padding: 14px 16px 14px 20px; }
}
@media (prefers-reduced-motion: reduce) { .kui-rail, .kui-scrim, .kui-progress > span { transition: none; } }

/* ==========================================================================
   Signed final page (Views/Ekyc/EsignedFinalPage.cshtml) and KRA e-Sign page (Views/Ekyc/Esign.cshtml, KRA step), eKYC layout (Add code kingshuk 23/10/2026)
   --------------------------------------------------------------------------
   Layout rules taken from the eKYC kui.css (the .kui-efp and .kui-ks blocks); every colour is a RE-KYC token. No colour literal is used.
   .kui-efp rules are scoped to body.kui-efp-page and .kui-ks rules to body.kui-app, so no other page is affected.
   ========================================================================== */
html:has(body.kui-efp-page) { background: var(--kui-bg); }
html body.kui-efp-page { background: var(--kui-bg) !important; color: var(--kui-text); letter-spacing: normal; overflow-x: hidden; }
html body.kui-efp-page .layout-px-spacing { min-height: 0 !important; padding: 0 !important; }
html body.kui-efp-page .middle-content { max-width: 1140px; margin: 0 auto !important; padding: 0 !important; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; animation: none; }
html body.kui-efp-page .text-primary { color: var(--kui-brand-600) !important; }
html body.kui-efp-page .text-danger { color: var(--kui-danger-text) !important; }
html body.kui-efp-page .footer-wrapper { max-width: 1140px; margin: 40px auto 0; padding: 18px 20px 28px; border-top: 1px solid var(--kui-border); background: transparent; box-shadow: none; }
html body.kui-efp-page .footer-wrapper p, html body.kui-efp-page .footer-wrapper .footer-section p { color: var(--kui-text-muted); letter-spacing: normal; font-size: 13px; font-weight: var(--kui-fw-regular); }
html body.kui-efp-page .footer-wrapper a { color: var(--kui-brand-600); }
html body.kui-efp-page .footer-wrapper svg { color: var(--kui-danger); fill: var(--kui-danger); width: 14px; height: 14px; }
html body.kui-efp-page .kui-efp { max-width: 1140px; margin: 0 auto; padding: 0 20px 8px; font-family: var(--kui-font); color: var(--kui-text); }
html body.kui-efp-page .kui-efp h3, html body.kui-efp-page .kui-efp h4, html body.kui-efp-page .kui-efp h5 { font-family: var(--kui-font-heading); color: var(--kui-text); }

/* Header */
html body.kui-efp-page .kui-efp .kui-efp-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 20px; }
html body.kui-efp-page .kui-efp .kui-efp-brand { display: inline-flex; align-items: center; padding: 0; }
/* Add code kingshuk 15/10/2026 : theme toggle next to Log Out */
html body.kui-efp-page .kui-efp .kui-efp-actions { display: flex; align-items: center; gap: 10px; }
html body.kui-efp-page .kui-efp .kui-efp-theme { width: 44px; height: 44px; border-color: var(--kui-border-strong); border-radius: var(--kui-radius); color: var(--kui-brand-600); }
html body.kui-efp-page .kui-efp .kui-efp-theme .kui-ico-sun { display: none; }
html[data-kui-theme="dark"] body.kui-efp-page .kui-efp .kui-efp-theme .kui-ico-sun { display: block; }
html[data-kui-theme="dark"] body.kui-efp-page .kui-efp .kui-efp-theme .kui-ico-moon { display: none; }
html body.kui-efp-page .kui-efp .kui-efp-theme:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }
html body.kui-efp-page .kui-efp .kui-efp-brand .kui-logo { height: 40px; width: auto; }
html body.kui-efp-page .kui-efp .kui-efp-logout { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--kui-border-strong); border-radius: var(--kui-radius); background: var(--kui-surface); color: var(--kui-brand-600); font-size: 14px; font-weight: var(--kui-fw-regular); text-decoration: none; transition: background-color .15s, border-color .15s; }
html body.kui-efp-page .kui-efp .kui-efp-logout svg { width: 18px; height: 18px; }
html body.kui-efp-page .kui-efp .kui-efp-logout:hover { background: var(--kui-brand-50); border-color: var(--kui-brand-600); color: var(--kui-brand-700); }
html body.kui-efp-page .kui-efp .kui-efp-logout:focus-visible, html body.kui-efp-page .kui-efp .kui-efp-doc:focus-visible, html body.kui-efp-page .kui-efp .kui-efp-help a:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }

/* Layout: two balanced cards that stretch to the same height; the document tiles absorb any spare height so no dead space is left */
html body.kui-efp-page .kui-efp .kui-efp-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
html body.kui-efp-page .kui-efp .kui-efp-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); box-shadow: var(--kui-shadow-2); }
/* Add code kingshuk 15/10/2026 : clean heading (red accent bar removed) - Montserrat, navy, tighter tracking */
html body.kui-efp-page .kui-efp .kui-efp-card-title { margin: 0 0 20px; font-size: 17px; font-weight: var(--kui-fw-medium); line-height: 1.3; letter-spacing: .01em; color: var(--kui-brand-700); }

/* Applicant */
html body.kui-efp-page .kui-efp .kui-efp-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px 0 18px; margin-bottom: 4px; border-bottom: 1px solid var(--kui-border); }
/* Add code kingshuk 15/10/2026 : profile photo - circular crop (object-fit cover, face-biased), thin neutral ring + soft shadow */
html body.kui-efp-page .kui-efp .kui-efp-avatar { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; object-position: center 25%; background: var(--kui-brand-50); border: 3px solid var(--kui-surface); box-shadow: 0 0 0 1px var(--kui-border-strong), 0 6px 16px rgba(15, 27, 45, .12); }
html body.kui-efp-page .kui-efp .kui-efp-name { margin: 14px 0 2px; font-size: 18px; font-weight: var(--kui-fw-medium); line-height: 1.3; overflow-wrap: anywhere; }
/* Add code kingshuk 15/10/2026 : Application ID label on its own line, value centred below it (wraps safely when long) */
html body.kui-efp-page .kui-efp .kui-efp-appid { display: flex; flex-direction: column; align-items: center; gap: 2px; box-sizing: border-box; width: 100%; max-width: 100%; margin: 2px 0 0; padding: 8px 14px; border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); background: var(--kui-brand-50); text-align: center; font-size: 12.5px; color: var(--kui-text-muted); }
html body.kui-efp-page .kui-efp .kui-efp-appid span { white-space: nowrap; }
html body.kui-efp-page .kui-efp .kui-efp-appid strong { max-width: 100%; font-size: 14px; font-weight: var(--kui-fw-medium); line-height: 1.35; color: var(--kui-brand-600); overflow-wrap: anywhere; }
html body.kui-efp-page .kui-efp .kui-efp-appid strong:empty { display: none; }
html body.kui-efp-page .kui-efp .kui-efp-info { list-style: none; margin: 0; padding: 0; }
html body.kui-efp-page .kui-efp .kui-efp-info li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 12px 2px; border-bottom: 1px solid var(--kui-border); line-height: 1.4; }
html body.kui-efp-page .kui-efp .kui-efp-info li:last-child { border-bottom: 0; }
html body.kui-efp-page .kui-efp .kui-efp-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--kui-brand-50); color: var(--kui-brand-600); }
html body.kui-efp-page .kui-efp .kui-efp-ic svg { width: 18px; height: 18px; stroke-width: 2; }
html body.kui-efp-page .kui-efp .kui-efp-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body.kui-efp-page .kui-efp .kui-efp-label { font-size: 12px; font-weight: var(--kui-fw-regular); letter-spacing: .04em; text-transform: uppercase; color: var(--kui-text-muted); }
html body.kui-efp-page .kui-efp .kui-efp-val { font-size: 15px; font-weight: var(--kui-fw-regular); color: var(--kui-text); overflow-wrap: anywhere; }
html body.kui-efp-page .kui-efp .kui-efp-val:empty::before { content: "\2014"; color: var(--kui-text-faint); }
html body.kui-efp-page .kui-efp .kui-efp-help { display: grid; gap: 8px; margin-top: auto; padding-top: 18px; }
html body.kui-efp-page .kui-efp .kui-efp-help a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--kui-border); border-radius: var(--kui-radius); background: var(--kui-surface-2); color: var(--kui-brand-600); font-size: 14px; font-weight: var(--kui-fw-regular); text-decoration: none; overflow-wrap: anywhere; }
html body.kui-efp-page .kui-efp .kui-efp-help a:hover { background: var(--kui-brand-50); border-color: var(--kui-brand-600); }
html body.kui-efp-page .kui-efp .kui-efp-help svg { flex: none; width: 18px; height: 18px; }

/* Status stepper (state classes step-completed / step-active are set by the page's own status script) */
html body.kui-efp-page .kui-efp .steps { border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); background: var(--kui-surface-2); overflow: hidden; }
html body.kui-efp-page .kui-efp .steps-header { padding: 14px 18px 0; border: 0; }
html body.kui-efp-page .kui-efp .steps-header .progress { height: 6px; background: var(--kui-border); border-radius: 999px; overflow: hidden; }
html body.kui-efp-page .kui-efp .steps-header .progress-bar { background: linear-gradient(90deg, var(--kui-brand-600), var(--kui-success)); border-radius: 999px; }
html body.kui-efp-page .kui-efp .steps-body { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: auto; padding: 6px 8px 16px; }
html body.kui-efp-page .kui-efp .step { display: block; position: relative; padding: 16px 6px 4px; border: 0; background-color: transparent !important; text-align: center; font-weight: var(--kui-fw-regular); transition: none; }
html body.kui-efp-page .kui-efp .step:not(:first-child)::before { content: ""; position: absolute; top: 37px; right: 50%; width: 100%; height: 2px; background: var(--kui-border-strong); }
html body.kui-efp-page .kui-efp .step-completed + .step::before { background: var(--kui-success); }
html body.kui-efp-page .kui-efp .step .step-icon { display: block; width: auto; height: auto; margin: 0 0 10px; }
html body.kui-efp-page .kui-efp .kui-efp-dot { position: relative; z-index: 1; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid var(--kui-border-strong); border-radius: 50%; background: var(--kui-surface); color: var(--kui-text-muted); }
html body.kui-efp-page .kui-efp .kui-efp-dot svg { width: 20px; height: 20px; stroke-width: 2; }
html body.kui-efp-page .kui-efp .step-completed .kui-efp-dot { border-color: var(--kui-success); background: var(--kui-success-bg); color: var(--kui-success); }
html body.kui-efp-page .kui-efp .step-active .kui-efp-dot { border-color: var(--kui-btn); background: var(--kui-btn); color: var(--kui-on-brand); box-shadow: 0 0 0 5px var(--kui-focus); }
html body.kui-efp-page .kui-efp .step-active + .step:not(.step-completed) .kui-efp-dot { border-style: dashed; border-color: var(--kui-brand-500); }
html body.kui-efp-page .kui-efp .step .step-indicator { position: absolute; top: 8px; left: calc(50% + 6px); z-index: 2; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 2px solid var(--kui-surface-2); border-radius: 50%; line-height: 1; }
html body.kui-efp-page .kui-efp .step .step-indicator svg { width: 11px; height: 11px; stroke-width: 3.5; }
html body.kui-efp-page .kui-efp .kui-efp-steplabel { display: block; font-size: 13px; font-weight: var(--kui-fw-regular); line-height: 1.3; color: var(--kui-text-muted); }
html body.kui-efp-page .kui-efp .step-completed .kui-efp-steplabel { color: var(--kui-text); }
html body.kui-efp-page .kui-efp .step-active .kui-efp-steplabel { font-weight: var(--kui-fw-button); color: var(--kui-brand-600); }
html body.kui-efp-page .kui-efp .step-active .kui-efp-steplabel::after { content: "Current"; display: block; width: max-content; margin: 6px auto 0; padding: 2px 8px; border-radius: 999px; background: var(--kui-brand-100); color: var(--kui-brand-600); font-size: 11px; font-weight: var(--kui-fw-button); }

/* Document cards */
html body.kui-efp-page .kui-efp .kui-efp-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; flex: 1 1 auto; margin-top: 20px; }
html body.kui-efp-page .kui-efp .kui-efp-doc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 168px; padding: 22px 16px; border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); background: var(--kui-surface); box-shadow: var(--kui-shadow-1); color: var(--kui-text); text-align: center; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
html body.kui-efp-page .kui-efp .kui-efp-doc:hover { transform: translateY(-2px); border-color: var(--kui-brand-500); box-shadow: var(--kui-shadow-2); }
html body.kui-efp-page .kui-efp .kui-efp-doc:focus-visible { border-color: var(--kui-brand-600); }
html body.kui-efp-page .kui-efp .kui-efp-doc-ic { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 16px; background: var(--kui-brand-50); }
html body.kui-efp-page .kui-efp .kui-efp-doc-ic img { width: 44px; height: auto; }
html body.kui-efp-page .kui-efp .kui-efp-doc-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 16px; font-weight: var(--kui-fw-medium); }
html body.kui-efp-page .kui-efp .kui-efp-doc-title svg { width: 18px; height: 18px; color: var(--kui-success); }
html body.kui-efp-page .kui-efp .kui-efp-doc-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: var(--kui-fw-regular); color: var(--kui-brand-600); }
html body.kui-efp-page .kui-efp .kui-efp-doc-cta svg { width: 15px; height: 15px; }
html body.kui-efp-page .kui-efp .kui-efp-payment { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--kui-success); border-radius: var(--kui-radius); background: var(--kui-success-bg); font-size: 14px; line-height: 1.8; color: var(--kui-text); }
html body.kui-efp-page .kui-efp .kui-efp-payment:empty { display: none; }

/* Detailed timeline accordion */
html body.kui-efp-page .kui-efp .kui-efp-acc { margin-top: 20px; border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); background: var(--kui-surface); overflow: hidden; }
html body.kui-efp-page .kui-efp .kui-efp-acc-head { margin: 0; font-size: 15px; font-weight: var(--kui-fw-regular); }
html body.kui-efp-page .kui-efp .kui-efp-acc-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 18px; border: 0; background: transparent; color: var(--kui-text); font: inherit; text-align: left; cursor: pointer; }
html body.kui-efp-page .kui-efp .kui-efp-acc-btn:hover { background: var(--kui-surface-2); }
html body.kui-efp-page .kui-efp .kui-efp-acc-btn:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: -3px; }
html body.kui-efp-page .kui-efp .kui-efp-acc-title { flex: 1; }
html body.kui-efp-page .kui-efp .kui-efp-acc-chev { display: inline-flex; color: var(--kui-text-muted); transition: transform .2s; }
html body.kui-efp-page .kui-efp .kui-efp-acc-chev svg { width: 20px; height: 20px; }
html body.kui-efp-page .kui-efp .kui-efp-acc-btn:not(.collapsed) .kui-efp-acc-chev { transform: rotate(180deg); }
/* Add code kingshuk 15/10/2026 : green divider under the header while the timeline is expanded (replaces the grey top border of the body) */
html body.kui-efp-page .kui-efp .kui-efp-acc-btn:not(.collapsed) { border-bottom: 1px solid var(--kui-success); border-bottom-color: color-mix(in srgb, var(--kui-success) 55%, transparent); background: var(--kui-surface-2); }
html body.kui-efp-page .kui-efp .kui-efp-acc-btn:not(.collapsed) .kui-efp-ic { background: var(--kui-success-bg); color: var(--kui-success); }
html body.kui-efp-page .kui-efp .kui-efp-acc-body { padding: 22px 24px 8px; }
html body.kui-efp-page .kui-efp .timeline-line:empty::before { content: "No timeline events yet."; font-size: 14px; color: var(--kui-text-muted); }
/* Add code kingshuk 15/10/2026 : timeline rows = date | marker + connector | title + description (events are rendered by the page script, markup unchanged) */
html body.kui-efp-page .kui-efp .timeline-line .item-timeline { display: flex; align-items: stretch; }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-time { flex: none; width: 76px; min-width: 0; max-width: none; padding: 3px 14px 0 0; font-family: var(--kui-font); font-size: 12px; font-weight: var(--kui-fw-regular); line-height: 1.4; text-align: right; color: var(--kui-text-muted); }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-dot { flex: none; width: 22px; }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-dot::before { top: 6px; width: 10px; height: 10px; box-sizing: border-box; border-color: var(--kui-success); background: var(--kui-success); box-shadow: 0 0 0 4px var(--kui-success-bg); }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-dot::after { top: 22px; bottom: -4px; border-color: var(--kui-border-strong); border-left-width: 2px; }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-text { flex: 1; min-width: 0; align-self: flex-start; margin: 0; padding: 0 0 22px 14px; }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline:last-child .t-text { padding-bottom: 14px; }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-text p { margin: 0; overflow-wrap: anywhere; }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-text p:first-child { font-family: var(--kui-font-heading); font-size: 14px; font-weight: var(--kui-fw-medium); line-height: 1.4; color: var(--kui-text); }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-text p.text-success { color: var(--kui-text) !important; }
html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-text .t-meta-time { min-width: 0; max-width: none; margin-top: 3px; font-family: var(--kui-font); font-size: 13px; font-weight: var(--kui-fw-regular); line-height: 1.5; color: var(--kui-text-muted); }
@media (prefers-reduced-motion: reduce) { html body.kui-efp-page .kui-efp .kui-efp-doc, html body.kui-efp-page .kui-efp .kui-efp-acc-chev { transition: none; } html body.kui-efp-page .kui-efp .kui-efp-doc:hover { transform: none; } }
@media (max-width: 991.98px) {
    html body.kui-efp-page .kui-efp .kui-efp-grid { grid-template-columns: minmax(0, 1fr); }
    html body.kui-efp-page .kui-efp .kui-efp-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html body.kui-efp-page .kui-efp .kui-efp-help .kui-efp-label { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    html body.kui-efp-page .kui-efp { padding: 0 14px 8px; }
    html body.kui-efp-page .kui-efp .kui-efp-brand .kui-logo { height: 34px; }
    html body.kui-efp-page .kui-efp .kui-efp-card { padding: 18px 16px; }
    html body.kui-efp-page .kui-efp .kui-efp-help, html body.kui-efp-page .kui-efp .kui-efp-docs { grid-template-columns: minmax(0, 1fr); }
    html body.kui-efp-page .kui-efp .kui-efp-doc { min-height: 0; }
    /* vertical stepper on phones */
    html body.kui-efp-page .kui-efp .steps-body { grid-template-columns: minmax(0, 1fr); padding: 8px 12px 12px; }
    html body.kui-efp-page .kui-efp .step { display: flex; align-items: center; gap: 14px; padding: 10px 0; text-align: left; }
    html body.kui-efp-page .kui-efp .step .step-icon { margin: 0; }
    html body.kui-efp-page .kui-efp .step:not(:first-child)::before { top: -10px; right: auto; left: 21px; width: 2px; height: 20px; }
    html body.kui-efp-page .kui-efp .step .step-indicator { top: 6px; left: 30px; }
    html body.kui-efp-page .kui-efp .step-active .kui-efp-steplabel::after { display: inline-block; margin: 0 0 0 8px; }
    html body.kui-efp-page .kui-efp .timeline-line .item-timeline .t-time { width: 60px; padding-right: 10px; }
}

html body.kui-app .middle-content .kui-ks .kui-ks-card { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin: 0 auto; padding: 28px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); box-shadow: var(--kui-shadow-2); font-family: var(--kui-font); }
html body.kui-app .middle-content .kui-ks .kui-ks-success { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--kui-success); border-radius: var(--kui-radius-lg); background: var(--kui-success-bg); }
html body.kui-app .middle-content .kui-ks .kui-ks-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--kui-success); color: var(--kui-on-brand); box-shadow: 0 0 0 6px var(--kui-success-bg); }
html body.kui-app .middle-content .kui-ks .kui-ks-badge svg { width: 24px; height: 24px; stroke-width: 2; }
html body.kui-app .middle-content .kui-ks .kui-ks-msg { min-width: 0; }
html body.kui-app .middle-content .kui-ks .kui-ks-title { margin: 0 0 4px; font-family: var(--kui-font-heading); font-size: 18px; font-weight: var(--kui-fw-medium); line-height: 1.3; color: var(--kui-text); }
html body.kui-app .middle-content .kui-ks .kui-ks-sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--kui-text-muted); }
html body.kui-app .middle-content .kui-ks .kui-ks-em { font-weight: var(--kui-fw-regular); color: var(--kui-danger-text); }
html body.kui-app .middle-content .kui-ks .kui-ks-doc { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); background: var(--kui-surface); color: var(--kui-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
html body.kui-app .middle-content .kui-ks .kui-ks-doc:hover { border-color: var(--kui-brand-500); box-shadow: var(--kui-shadow-2); }
html body.kui-app .middle-content .kui-ks .kui-ks-doc:focus-visible, html body.kui-app .middle-content .kui-ks .kui-ks-consent:focus-within { outline: 3px solid var(--kui-focus); outline-offset: 2px; }
html body.kui-app .middle-content .kui-ks .kui-ks-doc-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--kui-brand-50); }
html body.kui-app .middle-content .kui-ks .kui-ks-doc-ic img { width: 36px; height: auto; }
html body.kui-app .middle-content .kui-ks .kui-ks-doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.kui-app .middle-content .kui-ks .kui-ks-doc-txt strong { font-family: var(--kui-font-heading); font-size: 15px; font-weight: var(--kui-fw-medium); color: var(--kui-text); }
html body.kui-app .middle-content .kui-ks .kui-ks-doc-txt small { font-size: 13px; color: var(--kui-text-muted); }
html body.kui-app .middle-content .kui-ks .kui-ks-doc-go { flex: none; display: inline-flex; color: var(--kui-brand-600); }
html body.kui-app .middle-content .kui-ks .kui-ks-doc-go svg { width: 18px; height: 18px; }
html body.kui-app .middle-content .kui-ks .kui-ks-consent { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--kui-border); border-radius: var(--kui-radius-lg); background: var(--kui-surface-2); font-size: 14.5px; line-height: 1.6; color: var(--kui-text); cursor: pointer; }
html body.kui-app .middle-content .kui-ks .kui-ks-consent input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--kui-btn); cursor: pointer; }
html body.kui-app .middle-content .kui-ks .kui-ks-consent .text-primary { font-weight: var(--kui-fw-regular); color: var(--kui-brand-600) !important; }
html body.kui-app .middle-content .kui-ks .kui-ks-actions { display: flex; justify-content: center; padding-top: 4px; }
html body.kui-app .middle-content .kui-ks .kui-ks-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0 32px; border-radius: var(--kui-radius); font-size: 15px; font-weight: var(--kui-fw-button); }
html body.kui-app .middle-content .kui-ks .kui-ks-actions .btn.disabled { opacity: .5; }
@media (max-width: 575.98px) {
    html body.kui-app .middle-content .kui-ks .kui-ks-card { padding: 18px 16px; }
    html body.kui-app .middle-content .kui-ks .kui-ks-success { flex-direction: column; text-align: center; }
    html body.kui-app .middle-content .kui-ks .kui-ks-actions .btn { width: 100%; }
}
/* the earlier shell added an arrow to this button and sized every e-Sign button; the eKYC KRA card keeps a plain centred button */
html body.kui-app .middle-content .kui-ks .kui-ks-actions .btn::after { display: none; }
html body.kui-app .middle-content .kui-ks .kui-ks-actions .btn { min-width: 0; }

/* ==========================================================================
   FONT-WEIGHT LAYER (Add code kingshuk 23/10/2026)
   --------------------------------------------------------------------------
   Lightens the text on every page that loads this file (all eligible pages; Home/Index and Home/ResumeApplication never load it).
   The scope html body:where(:not(.kui-landing)) adds no specificity of its own, so each rule below ties with the rule it replaces and wins by coming later.
   The landing pages carry body.kui-landing and are excluded even if this file were linked there by mistake.
   1) the base scale  2) the generated list: every rule in the stylesheets in use that sets 600 or more and can match an eligible page, re-set to the scale.
   ========================================================================== */
html body:where(:not(.kui-landing)) { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) :is(b, strong, th, .fw-medium, .fw-semibold, .fw-bold, .fw-bolder, .font-weight-bold) { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) :is(.btn, button, .swal2-styled, .badge) { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6:not(.float-end), .card-title, .modal-title, .swal2-title) { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .lead { font-weight: var(--kui-fw-regular); }
/* generated from the stylesheets in use: every rule that sets a weight of 600 or more and can match an eligible page, re-set to the scale (one rule per selector, so a selector the browser cannot parse never drops the others) */
html body:where(:not(.kui-landing)) .step { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) label { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .form-label { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .auth-container a.text-warning { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content label { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content a.text-danger { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .dropdown-item a { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content form#ProductSegment > .row > .col-lg-12 > label:not([for]) { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content form#ProductSegment .form-check-inline .form-check-label { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:not(.form-check-label) { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content form#ProductSegment > p.text-danger { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content form#PersonalInfoValid label .text-danger { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content form#ProductSegment > .row > .col-lg-12 > label[for]:has(input[onclick*="return false"])::after { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > p:nth-of-type(3) { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label .text-primary { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content #digiaddrYes a.text-danger { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) ul.custom_a { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #OfflineAdharXML label .text-danger { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content .form-group.d-flex > label { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content .form-group.d-flex > .form-check .form-check-label { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #top-signaturepad .img-container > p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #top-signaturepad #signature::before { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content #recordbody > #txtRecordText { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #txtOtp { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #txtOtp::before { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content #recordbody #countdown:not(:empty) { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #DeviceChange:has(#videoLive:not([hidden]))::before { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #DeviceChange:has(#videoRecorded:not([hidden]))::before { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #sidebar::after { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content form label[for="EquityDerivative"] .text-primary { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content .info-box-1 .info-box-1-content .text-danger { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .middle-content .info-box-1 > .col-12 > a::after { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu a.dropdown-item.active { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .dropdown:not(.custom-dropdown-icon):not(.custom-dropdown) .dropdown-menu a.dropdown-item:active { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .breadcrumb .breadcrumb-item.active { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .navbar .language-dropdown .dropdown-menu a span { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .navbar .navbar-item .nav-item.dropdown.notification-dropdown .dropdown-menu .data-info p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) #sidebar .theme-brand div.theme-text a { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .footer-wrapper { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .accordion .card .card-body ul li a { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .list-group.list-group-icons-meta .list-group-item .media .media-body p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .list-group.list-group-media .list-group-item .media .media-body p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .timeline-line .item-timeline .t-meta-time { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .timeline-line .item-timeline .t-time { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .timeline-alter .item-timeline .t-time p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .timeline-alter .item-timeline .t-usr-txt p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .timeline-alter .item-timeline .t-meta-time p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .timeline-item-description a { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .sidenav .sidenav-header p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .user-profile .widget-content-area .user-info p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .user-profile .widget-content-area .user-info-list ul.contacts-block li { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .pro-plan .widget-content p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .pro-plan .widget-content .progress-data .progress-stats p { font-weight: var(--kui-fw-regular); }
html body:where(:not(.kui-landing)) .btn { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .table > thead > tr > th { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .swal2-styled { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .header-container .search-animated .badge { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) input[type="file"]::file-selector-button { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .kui-act { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .badge { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .modal-content .modal-body a:not(.btn) { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .modal-content .modal-footer button.btn { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .info-box-1-button { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) .user-profile .widget-content-area .user-info-list ul.contacts-block li a:not(.btn) { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) div.dataTables_wrapper div.dataTables_length label { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) div.dataTables_wrapper div.dataTables_filter label { font-weight: var(--kui-fw-button); }
html body:where(:not(.kui-landing)) h1 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) h2 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) h3 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) h4 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) h5 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) h6 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .card-title { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .modal-title { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .swal2-title { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .sidebar-wrapper ul.menu-categories li.menu.menu-heading > .heading { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .header-container .user-profile-dropdown .user-profile-section .media-body h5 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .header-container .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section p { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content form#ProductSegment > h6 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content .kui-section { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .header-container .user-profile-dropdown .user-profile-section .media-body::before { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > h5 b { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content form[id$="BasicForm"] h5 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content form[id$="BasicForm"] h5 b { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content form[id$="BasicForm"] > h5::before { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content .card.style-3 .card-title { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) #top-signaturepad .modal-title { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) #txtOtp b { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .kui-ring > span { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .kui-rs-text strong { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .middle-content .info-box-1 .info-box-1-title { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .footer-wrapper .footer-section p a { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) strong { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .page-title h3 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .row [class*="col-"] .widget .widget-header h4 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .navbar .navbar-item .nav-item.user-profile-dropdown .dropdown-menu .user-profile-section .media .media-body h5 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .sidebar-wrapper .profile-info .user-info .profile-content h6 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .accordion .card-header section > div:not(.collapsed) { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .feather-icon .icon-section h4 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .fontawesome .icon-section h4 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .list-group.list-group-icons-meta .list-group-item .media .media-body h6 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .list-group.list-group-media .list-group-item .media .media-body h6 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .modal-content .modal-header h5 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-line .item-timeline .t-text p { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-line .item-timeline .t-text p a { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-line .item-timeline .t-text .t-meta-time { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-alter .item-timeline .t-text p { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-alter .item-timeline .t-text p a { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-simple h3 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-simple .timeline-list .timeline-post-content h4 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) .timeline-simple .timeline-list .timeline-post-content h6 { font-weight: var(--kui-fw-medium); }
html body:where(:not(.kui-landing)) b { font-weight: var(--kui-fw-medium); }
/* ==========================================================================
   OTP pages (Views/Ekyc/MobileOtpVerification.cshtml and EmailOtpVerification.cshtml), owner request (Add code kingshuk 23/10/2026)
   The heading and the "OTP sent to ..." line are centred, and VERIFY is flat: no shadow, no sheen, no lift and no colour change on hover or press.
   Scoped to body.form .auth-container, which only these two pages use.
   ========================================================================== */
html body.form .auth-container .card-body .col-md-12.mb-3 { text-align: center; }
html body.form .auth-container #OtpSubmit,
html body.form .auth-container #OtpSubmit:hover,
html body.form .auth-container #OtpSubmit:focus,
html body.form .auth-container #OtpSubmit:active {
    background-color: var(--kui-btn) !important; border-color: var(--kui-btn) !important; color: var(--kui-on-brand) !important;
    background-image: none; box-shadow: none !important; transform: none; transition: none;
}
/* ==========================================================================
   Add code kingshuk 24/10/2026 : UI synchronisation with the finalized eKYC pages.
   Every rule is scoped to body.kui-app (step pages) or body.kui-terms-page (Terms), so Home/Index and ResumeApplication are not matched. Tokens only (ReKYC colours).
   ========================================================================== */

/* ---- Terms & Conditions (Views/Home/Terms.cshtml) ---- */
html body.kui-terms-page { background: var(--kui-bg); color: var(--kui-text); }
html:has(body.kui-terms-page) { background: var(--kui-bg); }
html body.kui-terms-page .layout-px-spacing { padding: 0 !important; }
html body.kui-terms-page .middle-content { width: 100%; max-width: 1140px; margin-inline: auto !important; padding-inline: 20px !important; }
html body.kui-terms-page .kui-logo-light { display: block; }
html body.kui-terms-page .kui-logo-dark { display: none; }
html[data-kui-theme="dark"] body.kui-terms-page .kui-logo-light { display: none; }
html[data-kui-theme="dark"] body.kui-terms-page .kui-logo-dark { display: block; }
html body.kui-terms-page .kui-logo { height: 36px; width: auto; }
html body.kui-terms-page .kui-terms-head { margin: 0 0 20px !important; padding: 24px 0 0 !important; text-align: left; gap: 12px; }
html body.kui-terms-page .kui-terms-head > a.nav-link { padding: 0; }
html body.kui-terms-page .kui-terms-actions { display: inline-flex; align-items: center; gap: 10px; }
html body.kui-terms-page .kui-terms-actions > a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--kui-btn-h-sm); padding: 0 14px; border: 1px solid var(--kui-border-strong); border-radius: var(--kui-btn-radius); background: var(--kui-surface); color: var(--kui-brand-700); font-size: 14px; text-decoration: none; transition: background-color .15s, border-color .15s; }
html body.kui-terms-page .kui-terms-actions > a:hover, html body.kui-terms-page .kui-terms-actions > a:focus-visible { background: var(--kui-brand-50); border-color: var(--kui-brand-600); }
html body.kui-terms-page .kui-terms-actions > a svg { width: 18px; height: 18px; }
html body.kui-terms-page .kui-terms-theme { width: var(--kui-btn-h-sm); height: var(--kui-btn-h-sm); border-radius: var(--kui-btn-radius); flex: none; }
html body.kui-terms-page .kui-terms-card { margin: 0 0 8px; padding: 36px 44px 40px; background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: 16px; }
html body.kui-terms-page .kui-terms-card h3.text-primary { margin: 0 0 22px; padding-bottom: 16px; position: relative; font-family: var(--kui-font-heading); font-size: 26px; font-weight: var(--kui-fw-title); line-height: 1.25; letter-spacing: -.01em; color: var(--kui-heading) !important; border-bottom: 1px solid var(--kui-border); }
html body.kui-terms-page .kui-terms-card h3.text-primary::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; border-radius: 3px; background: var(--kui-brand-600); }
html body.kui-terms-page .kui-terms-body, html body.kui-terms-page .kui-terms-body div, html body.kui-terms-page .kui-terms-body li { color: var(--kui-text) !important; }
html body.kui-terms-page .kui-terms-body { font-size: 15px; line-height: 1.7; }
html body.kui-terms-page .kui-terms-body > div:first-child { margin-bottom: 14px; }
html body.kui-terms-page .kui-terms-body ul { margin: 0; padding-left: 22px; }
html body.kui-terms-page .kui-terms-body li { margin-bottom: 14px; padding-left: 6px; }
html body.kui-terms-page .kui-terms-body li::marker { color: var(--kui-brand-500); }
html body.kui-terms-page .kui-terms-body strong { color: var(--kui-heading) !important; overflow-wrap: anywhere; }
html body.kui-terms-page .kui-terms-body .text-danger { color: var(--kui-danger-text) !important; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--kui-danger-text) 35%, transparent); text-underline-offset: 3px; }
html body.kui-terms-page .kui-terms-body a.text-danger:hover { text-decoration-color: currentColor; }
html body.kui-terms-page .kui-terms-body span.text-danger { text-decoration-style: dotted; cursor: help; }
html body.kui-terms-page .kui-terms-body #cashRA { min-height: var(--kui-control-h); margin: 6px 0 8px 8px; padding: 6px 34px 6px 14px; font-family: var(--kui-font); font-size: 15px; color: var(--kui-text); background-color: var(--kui-surface); border: 1px solid var(--kui-border-strong); border-radius: var(--kui-radius-sm); }
html body.kui-terms-page .kui-terms-body #cashRA:hover { border-color: var(--kui-brand-500); }
html body.kui-terms-page .kui-terms-body #cashRA:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }
html body.kui-terms-page .kui-terms-body .mt-10 { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--kui-border); }
/* Save: flat (owner request: no hover effect, no shadow) */
html body.kui-terms-page #btnSubmit, html body.kui-terms-page #btnSubmit:hover, html body.kui-terms-page #btnSubmit:focus, html body.kui-terms-page #btnSubmit:active {
    background-color: var(--kui-btn) !important; border-color: var(--kui-btn) !important; color: var(--kui-on-brand) !important;
    background-image: none; box-shadow: none !important; transform: none; transition: none;
}
html body.kui-terms-page .kui-terms-save { min-height: var(--kui-btn-h); padding: 0 32px; border-radius: var(--kui-btn-radius); }
html body.kui-terms-page #btnSubmit, html body.kui-terms-page #btnSubmit:focus, html body.kui-terms-page #btnSubmit:focus-visible, html body.kui-terms-page #btnSubmit:active { outline: none !important; box-shadow: none !important; }
html body.kui-terms-page .kui-terms-foot { max-width: 1140px; margin: 0 auto; padding: 0 20px 28px; }
html body.kui-terms-page .kui-terms-foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0 0; border-top: 1px solid var(--kui-border); }
html body.kui-terms-page .kui-terms-foot p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--kui-text-muted); letter-spacing: normal; }
html body.kui-terms-page .kui-terms-foot a { color: var(--kui-brand-600); }
html body.kui-terms-page .kui-terms-secure { display: inline-flex; align-items: center; gap: 8px; }
html body.kui-terms-page .kui-terms-secure svg { flex: none; width: 16px; height: 16px; color: var(--kui-success); }
@media (max-width: 767.98px) {
    html body.kui-terms-page .middle-content, html body.kui-terms-page .kui-terms-foot { padding-inline: 14px !important; }
    html body.kui-terms-page .kui-terms-card { padding: 24px 18px 28px; border-radius: 14px; }
    html body.kui-terms-page .kui-terms-card h3.text-primary { font-size: 22px; }
    html body.kui-terms-page .kui-terms-foot-in { flex-direction: column; align-items: flex-start; }
}

/* ---- Native <select> lists follow the theme (the list itself is drawn by the browser) ---- */
html[data-kui-theme="dark"] body.kui-app select, html[data-kui-theme="dark"] body.kui-terms-page select { color-scheme: dark; }
html[data-kui-theme="dark"] body.kui-app select option, html[data-kui-theme="dark"] body.kui-terms-page select option { background-color: var(--kui-surface); color: var(--kui-text); }

/* ---- Documents: tooltip (jQuery UI) opens below the control as a small pill; Flip Camera = secondary button ---- */
html body.kui-app .ui-tooltip { padding: 5px 11px; border: 0; border-radius: 999px; background: var(--kui-brand-700); color: var(--kui-on-brand); font-family: var(--kui-font); font-size: 12px; font-weight: var(--kui-fw-regular); line-height: 1.3; box-shadow: none; pointer-events: none; max-width: 220px; white-space: nowrap; }
html[data-kui-theme="dark"] body.kui-app .ui-tooltip { background: var(--kui-btn); color: #fff; }
html body.kui-app #flip-btn.btn, html body.kui-app #flip-btn.btn.btn-outline-primary { background-color: var(--kui-surface) !important; border-color: var(--kui-border-strong) !important; color: var(--kui-brand-700) !important; box-shadow: none !important; }
html body.kui-app #flip-btn.btn:hover:not(:disabled), html body.kui-app #flip-btn.btn:focus-visible { background-color: var(--kui-brand-50) !important; border-color: var(--kui-brand-600) !important; color: var(--kui-brand-700) !important; }
html body.kui-app #flip-btn.btn:disabled { background-color: var(--kui-surface-2) !important; border-color: var(--kui-border) !important; color: var(--kui-text-muted) !important; opacity: .6; }

/* ---- PersonalInfo declarations ---- */
html body.kui-app .middle-content .invalid-feedback { font-family: var(--kui-font); letter-spacing: normal; }
html body.kui-app .middle-content h3.kui-section + .row { margin-top: 14px; }

/* ---- BankProof: Verified / Failed chip beside the account number ---- */
html body.kui-app .middle-content #badgeFailed:not([hidden]), html body.kui-app .middle-content #badgeVerified:not([hidden]) { padding: 0 14px; gap: 6px; font-size: 13px; }
html body.kui-app .middle-content #badgeFailed b, html body.kui-app .middle-content #badgeVerified b { font-weight: var(--kui-fw-medium); }

/* ---- Go Back (outline button next to Upload File) and the Nominee address options ---- */
html body.kui-app .middle-content a.btn.btn-outline-primary { display: inline-flex; align-items: center; gap: 8px; min-height: var(--kui-btn-h); margin-left: 4px; padding: 0 18px; border-radius: var(--kui-btn-radius); font-size: 14px; }
html body.kui-app .middle-content a.btn.btn-outline-primary .fa-2x { font-size: 1.15em; }
html body.kui-app .middle-content .form-group.d-flex { align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
html body.kui-app .middle-content .form-group.d-flex > .form-check { margin: 0 !important; }
html body.kui-app .middle-content h5 + .form-group.d-flex { margin-top: 12px !important; }
/* Add code kingshuk 24/10/2026 : kui.css has "html body .middle-content #btnSubmit:not(:disabled):hover" (shadow + 4px ring, !important); this matches its specificity so Save stays flat on hover, focus and press */
html body.kui-terms-page .middle-content #btnSubmit:not(:disabled), html body.kui-terms-page .middle-content #btnSubmit:not(:disabled):hover,
html body.kui-terms-page .middle-content #btnSubmit:not(:disabled):focus, html body.kui-terms-page .middle-content #btnSubmit:not(:disabled):focus-visible, html body.kui-terms-page .middle-content #btnSubmit:not(:disabled):active {
    background-color: var(--kui-btn) !important; border-color: var(--kui-btn) !important; color: var(--kui-on-brand) !important;
    background-image: none !important; box-shadow: none !important; outline: none !important; transform: none !important; transition: none !important;
}

/* Add code kingshuk 24/10/2026 : BankProof - Retry (#btnSubmit) and Continue (#btnContinue) in one row. The form is a grid whose children each take a full row, so the two buttons are wrapped in .kui-btn-row (a flex row). */
html body.kui-app .middle-content .kui-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 0; }
html body.kui-app .middle-content .kui-btn-row > input.btn { margin: 0 !important; min-height: var(--kui-btn-h-lg); padding: 0 28px; }
html body.kui-app .middle-content .kui-btn-row > input.btn[hidden] { display: none; }
/* Add code kingshuk 24/10/2026 : Go Back (Read_Offline_Xml) = simple secondary button like the eKYC page: surface fill, strong border, 8px radius, no shadow and no hover / press change. kui.css and the template add a hover shadow with !important, so every state is listed. */
html body.kui-app .middle-content a.btn.kui-btn-back, html body.kui-app .middle-content a.btn.kui-btn-back:hover, html body.kui-app .middle-content a.btn.kui-btn-back:focus, html body.kui-app .middle-content a.btn.kui-btn-back:active,
html body.kui-app .middle-content a.btn.btn-outline-primary.kui-btn-back:not(:disabled):not(.disabled):hover, html body.kui-app .middle-content a.btn.btn-outline-primary.kui-btn-back:not(:disabled):not(.disabled):active {
    background-color: var(--kui-surface) !important; background-image: none !important; color: var(--kui-brand-700) !important; border: 1.5px solid var(--kui-border-strong) !important;
    box-shadow: none !important; outline: none; transform: none !important; transition: none !important; text-decoration: none;
}
html body.kui-app .middle-content a.btn.kui-btn-back { display: inline-flex; align-items: center; gap: 8px; min-height: var(--kui-btn-h); margin-left: 0; padding: 0 20px; border-radius: var(--kui-btn-radius); font-size: 14.5px; font-weight: var(--kui-fw-button); }
html body.kui-app .middle-content a.btn.kui-btn-back svg { width: 16px; height: 16px; flex: none; }
html body.kui-app .middle-content a.btn.kui-btn-back:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }
/* Add code kingshuk 24/10/2026 : Terms - Save sized like the eKYC page (compact, 44px high, 8px radius; ReKYC teal kept). kui.css gives #btnSubmit min-width 200px / 48px, so the id rule is matched here. The wrapper behind the card is made transparent so only the one card shows, as on eKYC. */
html body.kui-terms-page .middle-content #btnSubmit.kui-terms-save { min-width: 0; width: auto; min-height: var(--kui-btn-h); padding: 0 32px; border-radius: var(--kui-btn-radius); font-size: 14px; letter-spacing: normal; }
html body.kui-terms-page .middle-content { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Add code kingshuk 24/10/2026 : Documents camera modal (#top-modalCameraCapture) matched to the eKYC page. CSS only; markup, ids and handlers are unchanged. Ported from the eKYC kui.css with the selectors scoped to body.kui-app (ReKYC tokens only). */
html body.kui-app #flip-btn { padding: 0 14px 0 12px; }
html body.kui-app #flip-btn::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7h-3.2l-1.1-1.6a1 1 0 0 0-.8-.4H9.1a1 1 0 0 0-.8.4L7.2 7H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M15 18h5a1 1 0 0 0 1-1v-5'/%3E%3Cpath d='M12 8.5a3.5 3.5 0 0 0-3.5 3.5'/%3E%3Cpath d='m17 15 3.2 3-3.2 3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7h-3.2l-1.1-1.6a1 1 0 0 0-.8-.4H9.1a1 1 0 0 0-.8.4L7.2 7H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h5'/%3E%3Cpath d='M15 18h5a1 1 0 0 0 1-1v-5'/%3E%3Cpath d='M12 8.5a3.5 3.5 0 0 0-3.5 3.5'/%3E%3Cpath d='m17 15 3.2 3-3.2 3'/%3E%3C/svg%3E") center / contain no-repeat; }
html body.kui-app #top-modalCameraCapture .modal-dialog { width: calc(100% - 24px) !important; max-width: 520px; margin: 12px auto; }
html body.kui-app #top-modalCameraCapture .modal-content { background: var(--kui-surface); border: 1px solid var(--kui-border); border-radius: 16px; box-shadow: var(--kui-shadow-3, 0 12px 32px rgba(5, 31, 56, .18)); overflow: hidden; }
html body.kui-app #top-modalCameraCapture .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--kui-border); }
html body.kui-app #top-modalCameraCapture .modal-title { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
html body.kui-app #top-modalCameraCapture .modal-title::before { content: "Capture photo"; font-family: var(--kui-font-heading); font-size: 17px; font-weight: 500; letter-spacing: -.005em; color: var(--kui-text); }
html body.kui-app #top-modalCameraCapture #flip-btn { min-height: var(--kui-btn-h-sm); padding: 0 12px; font-size: 13.5px; }
html body.kui-app #top-modalCameraCapture .btn-close { flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: var(--kui-btn-radius); background-size: 12px; opacity: .65; transition: background-color .15s, opacity .15s; }
html body.kui-app #top-modalCameraCapture .btn-close:hover { opacity: 1; background-color: var(--kui-brand-50); }
html[data-kui-theme="dark"] body.kui-app #top-modalCameraCapture .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
html body.kui-app #top-modalCameraCapture .modal-body { padding: 18px 20px 16px; }
html body.kui-app #top-modalCameraCapture .img-container { position: relative; }
html body.kui-app #top-modalCameraCapture .img-container video, html body.kui-app #top-modalCameraCapture .img-container canvas { display: block; width: 100%; max-width: 100%; border: 1px solid var(--kui-border) !important; border-radius: 12px; box-shadow: none !important; background: #0b1220; overflow: hidden; }
html body.kui-app #top-modalCameraCapture .img-container canvas[hidden] { display: none; }
html body.kui-app #top-modalCameraCapture .img-container::after { content: "Keep your face inside the frame, in good light."; display: block; margin-top: 12px; font-size: 13px; line-height: 1.45; text-align: center; color: var(--kui-text-muted); }
html body.kui-app #top-modalCameraCapture .modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--kui-border); }
html body.kui-app #top-modalCameraCapture .modal-footer .btn { min-height: var(--kui-btn-h); padding: 0 24px; margin: 0; }
html body.kui-app #top-modalCameraCapture #takeImg { display: inline-flex; align-items: center; gap: 8px; }
html body.kui-app #top-modalCameraCapture #takeImg::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 575.98px) {
    html body.kui-app #top-modalCameraCapture .modal-footer .btn:not([hidden]) { flex: 1 1 0; }
    html body.kui-app #top-modalCameraCapture .modal-title::before { font-size: 16px; }
}


/* ==========================================================================
   Add code kingshuk 24/10/2026 : Documents signature dialog (#top-signaturepad) matched to the eKYC page. CSS only: markup, ids and handlers are unchanged.
   Quiet hint line instead of the yellow note, no "Sign here" label, dashed signing area with a faint baseline, hand-and-pen cursor, icon-only camera button,
   outlined Clear button. Selectors are scoped to body.kui-app so the shared kui.css rules (which these override) stay untouched. ReKYC tokens only.
   ========================================================================== */
html body.kui-app #top-signaturepad .modal-dialog { width: calc(100% - 24px) !important; max-width: 720px !important; margin: 12px auto; }
html body.kui-app #top-signaturepad .modal-content { border: 1px solid var(--kui-border); border-radius: 16px; box-shadow: var(--kui-shadow-3); overflow: hidden; }
html body.kui-app #top-signaturepad .modal-header { padding: 18px 24px; border-bottom: 1px solid var(--kui-border); }
html body.kui-app #top-signaturepad .modal-title { font-size: 18px; font-weight: 500; color: var(--kui-text); }
html body.kui-app #top-signaturepad .modal-body { padding: 20px 24px; overscroll-behavior: contain; }
html body.kui-app #top-signaturepad .modal-footer { padding: 16px 24px; gap: 10px; border-top: 1px solid var(--kui-border); flex-wrap: wrap; justify-content: flex-end; }
html body.kui-app #top-signaturepad .img-container > p { margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--kui-text-muted) !important; font-size: 14px; font-weight: 400; }
html body.kui-app #top-signaturepad #signature {
    width: 100% !important; height: auto !important; aspect-ratio: 2.4 / 1; max-height: 55dvh; min-height: 200px; position: relative; overflow: hidden; margin: 0;
    border: 2px dashed var(--kui-border-strong) !important; border-radius: 12px; background-color: var(--kui-surface-2);
    background-image: linear-gradient(var(--kui-border-strong), var(--kui-border-strong)); background-size: calc(100% - 48px) 1px; background-position: center 78%; background-repeat: no-repeat; box-shadow: none;
}
html body.kui-app #top-signaturepad #signature::before, html body.kui-app #top-signaturepad #signature::after { content: none; }
html body.kui-app #top-signaturepad #signature:focus-within { border-color: var(--kui-brand-600) !important; box-shadow: 0 0 0 4px var(--kui-focus); }
html body.kui-app #top-signaturepad #signature-pad { display: block; width: 100%; height: 100%; touch-action: none; background: transparent; outline: 0; border-radius: 0; }
html body.kui-app #top-signaturepad #sign_prev { display: block; max-width: 100%; max-height: 55dvh; margin: 0 auto; background: var(--kui-surface-2); border: 1px solid var(--kui-border); border-radius: 12px; padding: 8px; box-shadow: none; object-fit: contain; }
html body.kui-app #top-signaturepad #click, html body.kui-app #top-signaturepad #SaveSig, html body.kui-app #top-signaturepad #clear { min-height: 42px; min-width: 96px; padding: 0 22px; border-radius: 10px; }
html body.kui-app #top-signaturepad #clear, html body.kui-app #top-signaturepad #clear:hover, html body.kui-app #top-signaturepad #clear:focus, html body.kui-app #top-signaturepad #clear:active { background-color: transparent !important; color: var(--kui-danger-text) !important; border: 1.5px solid var(--kui-danger) !important; box-shadow: none !important; transform: none !important; }
html body.kui-app #top-signaturepad #clear:hover { background-color: var(--kui-danger-bg) !important; }
html body.kui-app #top-signaturepad #captureSig { margin-right: auto; width: var(--kui-btn-h); min-width: 0; min-height: var(--kui-btn-h); height: var(--kui-btn-h); padding: 0; justify-content: center; border-radius: var(--kui-btn-radius); }
html body.kui-app #top-signaturepad #captureSig > span { display: none; }
/* the pad always draws dark ink (that is what is saved); in dark mode only the DISPLAY is inverted, the stored image is never changed */
html[data-kui-theme="dark"] body.kui-app #signature-pad, html[data-kui-theme="dark"] body.kui-app #sign_prev { filter: invert(1); }
/* the original hand-and-pen signing cursor, as on the eKYC page (light and dark versions) */
html body.kui-app #top-signaturepad #signature, html body.kui-app #top-signaturepad #signature-pad { cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAfCAYAAACCox+xAAABrElEQVRYhc1XS2rDMBCdfui9fCcfxhfoDXwJQzddhHpbvCpehcZgIiyKgiY8prY1I9XQByGOmc/T6Gk0eSAbFiKSPo/GGEWoiMgT0VUE6eL7r6MJ1DGRj89bYJu+JBkHOcXfLRENUIFKGaeFWFMOkQYC4Oe8Yd8l4i0izilh/wvBKVTiIqoQyj2KFaeqFBbnQFumLQtODkrrYXX87aJtSjOMAezVCMa48maltBywUoq4ySHCAh1WEo6xGqPY/0WhGTMRXgEnlu+qmHiJpHpRmT0dmIl4EC1iBoK1sNMIMYsIa0QeX67MHCtSw/akMO+0g02MgpA8yiHxJ5DAY/2nVUHHlBBboZE9QprKrYKF2ChsewUht+FrIjMr7fF4n4WGxoSvClpRMpAEP8sRoojMxegzgd9krG6SjEYzEg7Ezz3JfCsjqpJjKLbYFca6n4pc3zqSGXLHBMSUSQZn2w6ujKt1ikfwRG+Z4v2K/TcRvRbwuIH7hnWuPQTWfV5K2r02gfaGtTbILDLtfyFj6Zz3TnvE/9Z3Q/cN+V+Uc28WrIGnp4OIPBPRm9qa6OMHHMLgAL/iAd8AAAAASUVORK5CYII=') 0 0, auto; }
html[data-kui-theme="dark"] body.kui-app #top-signaturepad #signature, html[data-kui-theme="dark"] body.kui-app #top-signaturepad #signature-pad { cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAfCAYAAACCox+xAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIhSURBVFhHrZZBTsMwEEW5GkfgFhyAw/QgXKIHQOoWsUKsEFRCRRD8qvzq2xk7dsniNcmfGWc8Hju9maZphJ/Eb0HkN0woBtwmeOnJNNgn0F9Nu4pQNB4Smjn3kQ/I52DaEPxokKdZfEy8zBoVoBpZUAXiNNZx1rrhZ5fQAM57YhGQYDkiXZR9pAk28QeCqMRnwqtAud8SPuO1KjG574R6a3XJ/IEgggmktFw1O12x48t9q2cEE+OKf2nL8AecfeZaMi+tBtRMoZUQY3BVXBV/UIPqiqYXkiDV4MqzoFJrPQMar0opqAq8sNRIihcDSbHuXplWHwwnokG1tuIrgU6Cfrbg13N24BvpF0qBAPVIuX1VGZKiIkqICrlfBDG14+BMJKoPlBDll43Z8+LnhJLwbe3jlDTtoThD4FojehIkqfvIt1m5UJxRI2oLtvAkagnpDAoJRUPJsMaRvcS3Nz3BVZXwnbggFAN8wB48Cd2XfyEyQrECg/Edimw19KkgTvdhdRfCCgzU0zMl9AexNL/OpOyr7M49qGciWw/EaomV3NnmTr1oV0S2NYjlICQZTmVN7BA596D1jmwt/L8ty6RPxsmdRmFWo8lE/h+JXSmOonPDPwMtdBIvbAvhCi7rbFoLKqmGvZA9/BMGb35hDRLPknHjFjA45Y9sJVkypXELer9LQDJn/8j4X9iWI6cvyewjwxb0/KF2jpG4BfeB1mC6+wMp4DNDNau36gAAAABJRU5ErkJggg==') 0 0, auto; }
@media (max-width: 575.98px) {
    html body.kui-app #top-signaturepad .modal-header, html body.kui-app #top-signaturepad .modal-body, html body.kui-app #top-signaturepad .modal-footer { padding-left: 16px; padding-right: 16px; }
    html body.kui-app #top-signaturepad #signature { min-height: 180px; aspect-ratio: 1.8 / 1; }
    html body.kui-app #top-signaturepad .modal-footer .btn { flex: 1 1 auto; }
}

/* Add code kingshuk 24/10/2026 : IPV - the spoken line ("My OTP is ...") is bold, and the action buttons are animated (CSS only; no markup, id or script change).
   Buttons fade / rise in when they appear; each icon has its own short hover / focus animation: Start pulses, Stop pops, Retake turns once, Save pops, Continue's arrow nudges forward.
   No shadow or colour change on hover. All motion is off under reduced motion. */
html body.kui-app #txtOtp, html body.kui-app #txtOtp b { font-weight: 700; }
@keyframes kuiIpvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kuiIpvPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes kuiIpvPop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes kuiIpvSpin { to { transform: rotate(-360deg); } }
@keyframes kuiIpvNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
html body.kui-app .middle-content #recordbody #divBtn .btn:not([hidden]) { animation: kuiIpvIn .35s ease-out backwards; }
html body.kui-app .middle-content #recordbody #divBtn #buttonStart:hover::before, html body.kui-app .middle-content #recordbody #divBtn #buttonStart:focus-visible::before { animation: kuiIpvPulse .9s ease-in-out infinite; }
html body.kui-app .middle-content #recordbody #divBtn #buttonStop:hover::before, html body.kui-app .middle-content #recordbody #divBtn #buttonStop:focus-visible::before { animation: kuiIpvPop .5s ease-out; }
html body.kui-app .middle-content #recordbody #divBtn #buttonRetake:hover::before, html body.kui-app .middle-content #recordbody #divBtn #buttonRetake:focus-visible::before { animation: kuiIpvSpin .6s ease-in-out; }
html body.kui-app .middle-content #recordbody #divBtn #btnSubmit:hover::before, html body.kui-app .middle-content #recordbody #divBtn #btnSubmit:focus-visible::before { animation: kuiIpvPop .5s ease-out; }
html body.kui-app .middle-content #recordbody #divBtn #btnContinue:hover::after, html body.kui-app .middle-content #recordbody #divBtn #btnContinue:focus-visible::after { animation: kuiIpvNudge .8s ease-in-out infinite; }
html body.kui-app .middle-content #recordbody #divBtn .btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
    html body.kui-app .middle-content #recordbody #divBtn .btn:not([hidden]), html body.kui-app .middle-content #recordbody #divBtn .btn::before, html body.kui-app .middle-content #recordbody #divBtn .btn::after { animation: none !important; }
    html body.kui-app .middle-content #recordbody #divBtn .btn:active { transform: none; }
}

/* Add code kingshuk 24/10/2026 : signed final page - the shared footer lines up with the 1140px page column (the step-page footer is 1360px wide) */
html body.kui-efp-page .kui-footer { max-width: 1140px; margin: 40px auto 0; padding: 18px 20px 28px; }
@media (max-width: 767.98px) { html body.kui-efp-page .kui-footer { padding: 16px 14px 24px; } }


/* Add code kingshuk 24/10/2026 : dark mode - a focused text box stayed white. Bootstrap's ".form-control:focus { background-color: #fff; color: #212529 }" (specificity 0,2,0) beats kui.css's field rule, which has no :focus state.
   The eKYC kui.css sets the surface and text colour on :focus as well; this does the same with ReKYC tokens. Read-only / disabled fields keep their own look. Not loaded by the two landing pages. */
html body:where(:not(.kui-landing)) .form-control:focus:not([readonly]):not(:disabled),
html body:where(:not(.kui-landing)) .form-select:focus:not(:disabled) { background-color: var(--kui-surface); color: var(--kui-text); }
html body:where(:not(.kui-landing)) .form-control:focus[readonly], html body:where(:not(.kui-landing)) .form-control:disabled { background-color: var(--kui-surface-2); color: var(--kui-text-muted); }

/* Add code kingshuk 24/10/2026 : AddressProof - matched to the eKYC page. The consent line "I want to use my Aadhaar Address" is a plain checkbox with small text (no box, border or background), and "Go to Aadhaar Offline KYC" is red.
   Ids, names and handlers are unchanged. */
html body.kui-app .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label, html body.kui-app .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label:hover, html body.kui-app .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label:has(#chkDigi:checked) { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 14px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html body.kui-app .middle-content .row > [class*="col-lg-"]:has(#chkDigi) > label .text-primary { color: var(--kui-brand-600) !important; font-size: 13px; font-weight: var(--kui-fw-regular); }
html body.kui-app .middle-content #digiaddrYes a.text-danger, html body.kui-app .middle-content a.text-danger[href*="Read_Offline_Xml"] { color: var(--kui-danger-text) !important; font-weight: var(--kui-fw-regular); text-decoration: none; }
html body.kui-app .middle-content a.text-danger[href*="Read_Offline_Xml"]:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Add code kingshuk 24/10/2026 : Nominee - the Yes / No and "Same as Applicant Address / Add new address" options are plain radios like the eKYC page (no pill box, border or fill). Ids, names and onclick handlers are unchanged. */
html body.kui-app .middle-content .form-group.d-flex > .form-check, html body.kui-app .middle-content .form-group.d-flex > .form-check:hover, html body.kui-app .middle-content .form-group.d-flex > .form-check:has(.form-check-input:checked) { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: default; }
html body.kui-app .middle-content .form-group.d-flex > .form-check .form-check-label, html body.kui-app .middle-content .form-group.d-flex > .form-check .form-check-input { cursor: pointer; }
html body.kui-app .middle-content .form-group.d-flex > .form-check .form-check-label { font-size: 14px; }
html body.kui-app .middle-content .form-group.d-flex:has(> .form-check) { column-gap: 24px; }
html body.kui-app .middle-content .form-group.d-flex > .form-check .form-check-input[type="radio"]:not(:checked) { background-color: var(--kui-surface); border: 1.5px solid var(--kui-border-strong); }


/* Add code kingshuk 24/10/2026 : PersonalInfo declarations - plain checkboxes with their text, like the eKYC page (no grey condition box). The rows, ids, names and the "You must agree before submitting" messages are unchanged. */
html body.kui-app .middle-content form#PersonalInfoValid > .row.my-2:not(:has(.form-group)) > [class*="col-"] > .mb-3 { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; margin-bottom: 12px !important; }
html body.kui-app .middle-content form#PersonalInfoValid > .row.my-2:not(:has(.form-group)) > [class*="col-"] > .mb-3 > label { font-weight: var(--kui-fw-regular); }

/* Add code kingshuk 24/10/2026 : the Log Out item in the profile menu has a red background with white text (same in every state; red token from the ReKYC palette). */
html body .kui-topbar .dropdown-item[href*="Logout"], html body .kui-topbar .dropdown-item[href*="Logout"]:hover, html body .kui-topbar .dropdown-item[href*="Logout"]:focus, html body .kui-topbar .dropdown-item[href*="Logout"]:active { background-color: var(--kui-danger) !important; color: #ffffff !important; }
html body .kui-topbar .dropdown-item[href*="Logout"] svg { color: #ffffff; }

/* Add code kingshuk 24/10/2026 : profile menu redesign (markup unchanged). A wider card with a soft shadow, a "Signed in as" account block (name + application id) and a full-width red Log Out button whose arrow nudges on hover. ReKYC tokens only; the menu fades in; motion is off under reduced motion. */
@keyframes kuiMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html body .kui-topbar .dropdown-menu { min-width: 288px; padding: 10px; border-radius: 14px; border: 1px solid var(--kui-border); background: var(--kui-surface); box-shadow: 0 12px 32px rgba(5, 31, 56, .14); }
html body .kui-topbar .dropdown-menu.show { animation: kuiMenuIn .18s ease-out backwards; }
html body .kui-topbar .dropdown-menu .kui-usercard { margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--kui-border); border-radius: 10px; background: var(--kui-surface-2); }
html body .kui-topbar .dropdown-menu .kui-usercard::before { content: "Signed in as"; display: block; margin-bottom: 6px; color: var(--kui-text-muted); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
html body .kui-topbar .dropdown-menu .kui-usercard strong { display: block; color: var(--kui-heading); font-size: 14.5px; font-weight: var(--kui-fw-medium); letter-spacing: .01em; line-height: 1.3; }
html body .kui-topbar .dropdown-menu .kui-usercard small { display: block; margin-top: 6px; color: var(--kui-text-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] { justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; font-weight: var(--kui-fw-button); }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg { width: 18px; height: 18px; overflow: visible; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg line { transition: transform .2s ease; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg line, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus-visible svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus-visible svg line { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { html body .kui-topbar .dropdown-menu.show { animation: none; } html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg line { transition: none; } html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg line { transform: none; } }

/* Add code kingshuk 24/10/2026 : profile menu, premium pass. Avatar with a status dot beside the name, the application id as a small chip, a red Log Out button and a quiet "Secure session" line. Tokens only; the earlier block above is refined, not replaced. */
html body .kui-topbar .dropdown-menu { min-width: 332px; padding: 12px; border-radius: 16px; box-shadow: 0 1px 2px rgba(5, 31, 56, .06), 0 18px 44px rgba(5, 31, 56, .16); }
html body .kui-topbar .dropdown-menu .kui-usercard { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 14px; border: 1px solid var(--kui-border); border-radius: 12px; background: var(--kui-surface-2); }
html body .kui-topbar .dropdown-menu .kui-usercard::before { content: none; }
html body .kui-topbar .dropdown-menu .kui-menu-avatar { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--kui-surface); box-shadow: 0 0 0 2px var(--kui-brand-100); }
html body .kui-topbar .dropdown-menu .kui-usercard-text { min-width: 0; }
html body .kui-topbar .dropdown-menu .kui-usercard strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: var(--kui-fw-title); letter-spacing: .015em; }
html body .kui-topbar .dropdown-menu .kui-usercard small { display: inline-block; margin-top: 6px; padding: 3px 10px; border: 1px solid var(--kui-border); border-radius: 999px; background: var(--kui-surface); font-size: 11.5px; letter-spacing: 0; white-space: nowrap; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] { min-height: 46px; border-radius: 12px; font-size: 14.5px; letter-spacing: .02em; }
html body .kui-topbar .dropdown-menu .kui-menu-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; color: var(--kui-text-muted); font-size: 11.5px; letter-spacing: .04em; }
html body .kui-topbar .dropdown-menu .kui-menu-foot svg { width: 13px; height: 13px; color: var(--kui-success); }
html body .kui-topbar .dropdown-menu { max-width: calc(100vw - 24px); }


/* Add code kingshuk 24/10/2026 : Log Out softened (owner feedback: the solid red was too strong). A light red tint with red text and a fine red border; the same in every state. Replaces the solid red set earlier in this file. */
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"], html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:active {
    background-color: var(--kui-danger-bg) !important; color: var(--kui-danger-text) !important;
    border: 1px solid color-mix(in srgb, var(--kui-danger) 28%, transparent); box-shadow: none !important;
}
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg { color: var(--kui-danger-text); }

/* Add code kingshuk 24/10/2026 : profile menu, refined (owner: more professional). The account block is flat (no card inside the card): avatar, name, and the application id as a small label over its number, closed by a hairline. Log Out is a calm tinted row; the footer line stays quiet. */
html body .kui-topbar .dropdown-menu { min-width: 320px; padding: 16px; border-radius: 16px; }
html body .kui-topbar .dropdown-menu .kui-usercard { gap: 14px; margin: 0 0 14px; padding: 0 2px 16px; border: 0; border-bottom: 1px solid var(--kui-border); border-radius: 0; background: none; }
html body .kui-topbar .dropdown-menu .kui-menu-avatar { width: 52px; height: 52px; box-shadow: 0 0 0 1px var(--kui-border), 0 4px 10px rgba(5, 31, 56, .12); border: 2px solid var(--kui-surface); }
html body .kui-topbar .dropdown-menu .kui-usercard strong { font-size: 15px; font-weight: var(--kui-fw-title); letter-spacing: .02em; }
html body .kui-topbar .dropdown-menu .kui-usercard small { display: flex; flex-direction: column; gap: 1px; margin-top: 5px; padding: 0; border: 0; border-radius: 0; background: none; white-space: nowrap; }
html body .kui-topbar .dropdown-menu .kui-menu-label { color: var(--kui-text-muted); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; }
html body .kui-topbar .dropdown-menu .kui-menu-value { color: var(--kui-text); font-size: 13.5px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"], html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:active { min-height: 44px; border: 0; border-radius: 10px; font-size: 14.5px; letter-spacing: .01em; }
html body .kui-topbar .dropdown-menu .kui-menu-foot { margin-top: 12px; font-size: 11.5px; }

/* Add code kingshuk 24/10/2026 : no shadow on the profile menu (owner request). The card keeps its 1px border; the avatar keeps only a flat ring. */
html body .kui-topbar .dropdown-menu, html body .kui-topbar .dropdown-menu.show { box-shadow: none; }
html body .kui-topbar .dropdown-menu .kui-menu-avatar { box-shadow: 0 0 0 1px var(--kui-border); }

/* Add code kingshuk 27/10/2026 : profile menu / Log Out behaviour matched to the eKYC page. (1) The menu is anchored under the avatar and opens / closes with one smooth fade-and-settle transition instead of snapping. (2) Log Out tints a little darker on hover / focus and its arrow slides out of the door in a loop, as on eKYC. No shadow (owner request); reduced motion turns the motion off. */
html body .kui-topbar .dropdown { position: relative; }
html body .kui-topbar .dropdown > .dropdown-menu { position: absolute; top: 100%; right: 0; left: auto; bottom: auto; margin: 10px 0 0 !important; transform: translateY(-6px) scale(.98); transform-origin: top right; max-width: calc(100vw - 24px); display: block; z-index: 1100; opacity: 0; visibility: hidden; pointer-events: none; animation: none; transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; }
html body .kui-topbar .dropdown > .dropdown-menu.show { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; animation: none; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] { transition: background-color .2s ease, color .2s ease; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus-visible { background-color: color-mix(in srgb, var(--kui-danger-bg) 78%, var(--kui-danger-text)) !important; }
html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg line, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus-visible svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus-visible svg line { transform: none; animation: kuiLogoutArrow .7s ease-in-out infinite; }
@keyframes kuiLogoutArrow { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { html body .kui-topbar .dropdown > .dropdown-menu { transition: none; transform: none; } html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"], html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"] svg line { transition: none; } html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:hover svg line, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus-visible svg polyline, html body .kui-topbar .dropdown-menu .dropdown-item[href*="Logout"]:focus-visible svg line { animation: none !important; } }

/* Add code kingshuk 27/10/2026 : Documents - location / camera permission notices matched to the eKYC page (amber card, round icon, title + text, Refresh button). Ported from the eKYC kui.css, selectors scoped to body.kui-app, ReKYC tokens only; no shadow, as requested for other buttons. Ids and the reload handlers are unchanged. */
/* ---- Permission / camera notices: refined amber notice instead of the harsh red alert ---- */
html body.kui-app .alert#LocationPermission, html body.kui-app .alert#CameraPermission {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    background: var(--kui-warning-bg); color: var(--kui-text); border: 1px solid var(--kui-warning-line) !important; border-left: 4px solid var(--kui-warning) !important;
    border-radius: var(--kui-radius); padding: 12px 16px 12px 46px; position: relative; font-size: 14px; line-height: 1.5;
}
html body.kui-app .alert#LocationPermission::before, html body.kui-app .alert#CameraPermission::before {
    content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background-color: var(--kui-warning-text);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body.kui-app .alert#LocationPermission strong, html body.kui-app .alert#CameraPermission strong { color: var(--kui-warning-text); font-weight: 500; }
html body.kui-app #btnReload, html body.kui-app #btnReload2 {
    display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; margin: 0 !important; border-radius: var(--kui-radius-sm);
    background: var(--kui-btn); color: #fff; font-size: 13px; font-weight: 450; line-height: 1; cursor: pointer; border: 1px solid transparent;
    transition: background .15s ease, box-shadow .15s ease;
}
html body.kui-app #btnReload:hover, html body.kui-app #btnReload2:hover { background: var(--kui-btn-hover); }
html body.kui-app #btnReload:focus-visible, html body.kui-app #btnReload2:focus-visible { outline: 3px solid var(--kui-focus); outline-offset: 2px; }
html body.kui-app #btnReload svg, html body.kui-app #btnReload2 svg { width: 15px; height: 15px; }
/* ---- Location permission card (Add code kingshuk 13/10/2026): icon + heading + text + refresh, amber, theme-aware ---- */
html body.kui-app .alert#LocationPermission.kui-perm, html body.kui-app .alert#CameraPermission.kui-perm {
    display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; padding: 16px 20px;
    border: 1px solid var(--kui-warning-line) !important; border-left: 4px solid var(--kui-warning) !important;
    box-shadow: none;
}
html body.kui-app .alert#LocationPermission.kui-perm::before, html body.kui-app .alert#CameraPermission.kui-perm::before { content: none; }
html body.kui-app .kui-perm-icon {
    flex: 0 0 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--kui-surface); color: var(--kui-warning-text); border: 1px solid var(--kui-warning-line);
}
html body.kui-app .kui-perm-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body.kui-app .alert#LocationPermission .kui-perm-title, html body.kui-app .alert#CameraPermission .kui-perm-title { font-size: 15px; font-weight: 500; color: var(--kui-warning-text); line-height: 1.35; }
html body.kui-app .kui-perm-text { font-size: 13.5px; color: var(--kui-text-muted, var(--kui-text)); line-height: 1.5; }
html body.kui-app #btnReload.kui-perm-btn, html body.kui-app #btnReload2.kui-perm-btn { flex: 0 0 auto; font-family: inherit; min-height: 40px; padding: 9px 18px; }
html body.kui-app #btnReload.kui-perm-btn:hover, html body.kui-app #btnReload2.kui-perm-btn:hover { box-shadow: none; }
html body.kui-app #btnReload.kui-perm-btn:active, html body.kui-app #btnReload2.kui-perm-btn:active { transform: translateY(1px); }
html body.kui-app #btnReload.kui-perm-btn:disabled, html body.kui-app #btnReload.kui-perm-btn[aria-disabled="true"], html body.kui-app #btnReload2.kui-perm-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
@media (max-width: 575.98px) {
    html body.kui-app .alert#LocationPermission.kui-perm, html body.kui-app .alert#CameraPermission.kui-perm { flex-wrap: wrap; padding: 14px 16px; gap: 12px; }
    html body.kui-app .kui-perm-body { flex-basis: calc(100% - 60px); }
    html body.kui-app #btnReload.kui-perm-btn, html body.kui-app #btnReload2.kui-perm-btn { width: 100%; justify-content: center; }
}
html body.kui-app .kui-perm-btn, html body.kui-app #btnReload.kui-perm-btn, html body.kui-app #btnReload2.kui-perm-btn { min-height: var(--kui-btn-h-sm); border-radius: var(--kui-btn-radius); }


/* Add code kingshuk 27/10/2026 : IPV camera notice (#CameraPopUp) uses the same amber permission card as the Documents page (the icon, text and Refresh button rules above are shared). */
html body.kui-app .alert#CameraPopUp.kui-perm { display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; padding: 16px 20px; background: var(--kui-warning-bg); color: var(--kui-text); border: 1px solid var(--kui-warning-line) !important; border-left: 4px solid var(--kui-warning) !important; border-radius: var(--kui-radius); box-shadow: none; position: relative; font-size: 14px; line-height: 1.5; }
html body.kui-app .alert#CameraPopUp.kui-perm::before { content: none; }
html body.kui-app .alert#CameraPopUp.kui-perm .kui-perm-title { font-size: 15px; font-weight: 500; color: var(--kui-warning-text); line-height: 1.35; }
@media (max-width: 575.98px) { html body.kui-app .alert#CameraPopUp.kui-perm { flex-wrap: wrap; padding: 14px 16px; gap: 12px; } }

/* Add code kingshuk 27/10/2026 : date picker (mc-calendar) shaped like the eKYC page. The eKYC picker is the library's own flat layout; ReKYC had extra rounding, an inner card with a shadow, rounded padded buttons and hover / focus effects. They are reset here to the library defaults. Colours are NOT touched (the --mc-* teal palette above stays). */
html body.kui-app .mc-calendar .mc-container { border-radius: 0; overflow: visible; box-shadow: none; }
html body.kui-app .mc-calendar .mc-btn { padding: 0 .5em; border-radius: 0; transition: none; }
html body.kui-app .mc-calendar .mc-btn:hover, html body.kui-app .mc-calendar .mc-btn--danger:hover { background: none; }
html body.kui-app .mc-calendar .mc-btn:active { transform: scale3d(.95, .95, .95); }
html body.kui-app .mc-calendar .mc-select__nav { border-radius: 0; transition: none; }
html body.kui-app .mc-calendar .mc-select__nav:hover { background: none; }
html body.kui-app .mc-calendar .mc-date { transition: none; }
html body.kui-app .mc-calendar .mc-date--active:not(.mc-date--picked):hover { background: transparent; }
html body.kui-app .mc-calendar .mc-date--active.mc-date--today:not(.mc-date--picked):hover { background-color: var(--mc-date-active-today-background); }
html body.kui-app .mc-calendar .mc-btn:focus-visible, html body.kui-app .mc-calendar .mc-select__nav:focus-visible { outline: revert; outline-offset: 0; }

/* Add code kingshuk 27/10/2026 : the profile menu gets a soft shadow back (owner request; it had been removed earlier). Subtle two-layer shadow, theme-aware through the shared token. */
html body .kui-topbar .dropdown-menu, html body .kui-topbar .dropdown-menu.show { box-shadow: 0 1px 3px rgba(5, 31, 56, .08), 0 10px 28px rgba(5, 31, 56, .14); }
html[data-kui-theme="dark"] body .kui-topbar .dropdown-menu, html[data-kui-theme="dark"] body .kui-topbar .dropdown-menu.show { box-shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .5); }

/* Add code kingshuk 27/10/2026 : Nominee - the "I / We hereby confirm ... do not wish to appoint any nominee" line has no background colour, border or accent bar (owner request): just the checkbox and its text. Ids, names and handlers are unchanged. */
html body.kui-app .middle-content #NoNominee .form-group > label { padding: 0; border: 0; border-left: 0; border-radius: 0; background: none; box-shadow: none; }
html body.kui-app .middle-content #NoNominee .form-group > label span { font-size: 14px; font-weight: var(--kui-fw-regular); }

/* Add code kingshuk 28/10/2026 : Dark mode page background is pure black (#000000) on the application pages. Only the page-level background token is redefined here (--kui-bg), so cards, inputs, menus, modals, borders and text keep their own dark-mode colours; Light mode is untouched. This file is not loaded by the landing pages and :not(.kui-landing) guards it as well, so Home/Index and ResumeApplication keep their own dark background. */
html[data-kui-theme="dark"]:has(body:not(.kui-landing)) { --kui-bg: #000000; }
/* standalone pages (Terms, Error, ...) paint soft teal glows over the page colour in dark mode; they sit on pure black too */
html[data-kui-theme="dark"] body.layout-boxed:not(.kui-landing) { background: var(--kui-bg) !important; }
/* Add code kingshuk 16/11/2026 : profile menu Logout item in the Changer style - a row with a 34px icon tile, bold "Logout" and a small "End your session" line; transparent until hover (then the danger tint). Re-KYC tokens only (no new colour). The Application ID card above it is not touched. */
html body .kui-topbar .dropdown-menu .dropdown-item.kui-signout,
html body .kui-topbar .dropdown-menu .dropdown-item.kui-signout:hover,
html body .kui-topbar .dropdown-menu .dropdown-item.kui-signout:focus,
html body .kui-topbar .dropdown-menu .dropdown-item.kui-signout:active { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 52px; padding: 8px 10px; border: 0; border-radius: var(--kui-radius); background-color: transparent !important; color: var(--kui-danger-text) !important; text-decoration: none; box-shadow: none; }
html body .kui-topbar .dropdown-menu .dropdown-item.kui-signout:hover, html body .kui-topbar .dropdown-menu .dropdown-item.kui-signout:focus-visible { background-color: var(--kui-danger-bg) !important; }
html body .kui-topbar .dropdown-menu .kui-signout .kui-out-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--kui-radius); background: var(--kui-danger-bg); color: var(--kui-danger-text); }
html body .kui-topbar .dropdown-menu .kui-signout .kui-out-ic svg { width: 18px; height: 18px; color: var(--kui-danger-text); animation: none; transform: none; }
html body .kui-topbar .dropdown-menu .kui-signout .kui-out-t { display: grid; line-height: 1.2; text-align: left; }
html body .kui-topbar .dropdown-menu .kui-signout .kui-out-t b { color: var(--kui-danger-text); font-size: 14px; font-weight: var(--kui-fw-medium); letter-spacing: normal; }
html body .kui-topbar .dropdown-menu .kui-signout .kui-out-t small { color: var(--kui-text-muted); font-size: 11.5px; font-weight: 400; }
/* Add code kingshuk 16/11/2026 : top-bar profile badge - first letter of the first and last name ("AG") in a round 40px badge instead of the photo. Re-KYC button tokens only. */
html body .kui-topbar .kui-avatar.kui-initials { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--kui-btn); color: var(--kui-on-brand); font-size: 14px; font-weight: var(--kui-fw-button); letter-spacing: .02em; line-height: 1; text-transform: uppercase; user-select: none; }
/* ==========================================================================
   Add code kingshuk 17/11/2026 : Mobile / Email OTP pages (Ekyc/MobileOtpVerification, Ekyc/EmailOtpVerification) - the e-KYC "Edit Mobile Number" / "Edit Email Id" dialog and the light / dark toggle, in the RE-KYC colours.
   Scoped to body.kui-otp and #inputFormModal, which exist only on these two pages. Re-KYC tokens only (teal button / link, token surfaces); nothing else in the project is touched.
   ========================================================================== */
body.kui-otp .auth-container { background: var(--kui-bg) !important; color: var(--kui-text); }
body.kui-otp .auth-container p, body.kui-otp .auth-container .card-body { color: var(--kui-text); }
body.kui-otp .auth-container a:not(.btn) { color: var(--kui-brand-600); }
body.kui-otp .auth-container .card { background: var(--kui-surface); border-color: var(--kui-border); }
body.kui-otp .auth-container .card-body h2 { color: var(--kui-text); }
body.kui-otp .auth-container .opt-input { min-width: 0; background: var(--kui-surface); color: var(--kui-text); border-color: var(--kui-border-strong); }
body.kui-otp .auth-container .opt-input:focus { border-color: var(--kui-brand-600); }
body.kui-otp .kui-otp-theme { position: fixed; top: 16px; right: 16px; z-index: 50; width: var(--kui-btn-h-sm, 36px); height: var(--kui-btn-h-sm, 36px); min-height: 0; border-radius: var(--kui-btn-radius, 8px); background: var(--kui-surface); border: 1px solid var(--kui-border); color: var(--kui-text); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
body.kui-otp .kui-otp-theme svg { width: 18px; height: 18px; transition: transform .25s ease; }
body.kui-otp .kui-otp-theme:hover svg { transform: rotate(18deg); }
@media (prefers-reduced-motion: reduce) { body.kui-otp .kui-otp-theme svg { transition: none; } body.kui-otp .kui-otp-theme:hover svg { transform: none; } }

/* the dialog (same structure and sizes as the e-KYC one) */
html body #inputFormModal .modal-dialog { max-width: 440px; }
html body #inputFormModal .modal-content { background: var(--kui-surface); color: var(--kui-text); border: 1px solid var(--kui-border); border-radius: 16px; box-shadow: var(--kui-shadow-3); overflow: hidden; }
html body #inputFormModal .modal-header { align-items: center; padding: 20px 24px 16px; border-bottom: 1px solid var(--kui-border); }
html body #inputFormModal .modal-title { margin: 0; color: var(--kui-text); font-size: 18px; font-weight: 500; letter-spacing: normal; }
html body #inputFormModal .modal-title b { font-weight: 500; color: var(--kui-btn); }
html body #inputFormModal .btn-close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--kui-text-muted); opacity: 1; filter: none; transition: background-color .15s, color .15s; }
html body #inputFormModal .btn-close svg { width: 20px; height: 20px; }
html body #inputFormModal .btn-close:hover { background: var(--kui-brand-50); color: var(--kui-text); }
html body #inputFormModal .modal-body { padding: 24px; }
html body #inputFormModal .input-group { flex-wrap: nowrap; margin: 0 !important; border: 1px solid transparent; border-radius: 8px; background: var(--kui-surface-2); overflow: hidden; transition: background-color .15s, border-color .15s; }
html body #inputFormModal .input-group:hover { background: var(--kui-brand-50); }
html body #inputFormModal .input-group:focus-within { border-color: var(--kui-btn); }
html body #inputFormModal .input-group-text { flex: 0 0 48px; display: grid; place-items: center; width: 48px; padding: 0; border: 0; border-radius: 0; background: transparent !important; color: var(--kui-text-muted); }
html body #inputFormModal .input-group-text svg { width: 18px; height: 18px; color: var(--kui-btn); }
html body #inputFormModal .input-group .form-control { height: 44px; padding: 0 14px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--kui-text); font-size: 14px; letter-spacing: .02em; }
html body #inputFormModal .input-group .form-control:hover, html body #inputFormModal .input-group .form-control:focus { background: transparent; box-shadow: none; }
html body #inputFormModal .modal-footer { justify-content: flex-end; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid var(--kui-border); }
html body #inputFormModal .modal-footer .btn { min-width: 112px; min-height: 42px; margin: 0 !important; }
html body #inputFormModal .modal-footer .btn-outline-light { background: transparent; border: 1px solid var(--kui-btn); color: var(--kui-btn); }
html body #inputFormModal .modal-footer .btn-outline-light:hover { background: var(--kui-brand-50); border-color: var(--kui-btn); color: var(--kui-btn); }
@media (max-width: 480px) { html body #inputFormModal .modal-footer .btn { flex: 1 1 0; min-width: 0; } }
/* ==========================================================================
   Add code kingshuk 27/11/2026 : Mobile / Email OTP pages and their edit dialog - layout of the owner's PMS OTP screens (accent bar, icon tile, eyebrow, soft OTP boxes, full-width button,
   labelled edit dialog) in the RE-KYC colours. CSS only: no markup, id, script or validation change. Scoped to body.kui-otp (the two OTP pages only).
   ========================================================================== */
html body.kui-otp .auth-container { min-height: 100vh; min-height: 100dvh; }
html body.kui-otp .auth-container .row > [class*="col-xxl-4"].mx-auto { flex: 0 0 100%; width: 100%; max-width: 460px; }
html body.kui-otp .auth-container .card { position: relative; overflow: hidden; border: 1px solid var(--kui-border); border-radius: 22px; background: var(--kui-surface); box-shadow: 0 30px 60px -28px rgba(5, 31, 56, .35), var(--kui-shadow-1); }
html body.kui-otp .auth-container .card::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--kui-btn), var(--kui-accent-500)); }
html body.kui-otp .auth-container .card .card-body { padding: 36px 32px 32px; text-align: center; }
html body.kui-otp .auth-container .card-body > .row { justify-content: center; text-align: center; }
/* heading block: icon tile (phone / envelope), eyebrow, title, text, edit link on its own line */
html body.kui-otp .card-body > .row > .col-md-12 { margin-bottom: 22px !important; }
html body.kui-otp .card-body > .row > .col-md-12::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; background-color: var(--kui-accent-bg); background-image: none; box-shadow: 0 10px 22px -12px var(--kui-btn); }
html body.kui-otp .card-body > .row > .col-md-12 { position: relative; }
html body.kui-otp .card-body > .row > .col-md-12::after { content: ""; position: absolute; top: 16px; left: 50%; width: 24px; height: 24px; margin-left: -12px; background: var(--kui-brand-600); -webkit-mask: var(--kui-otp-ico) center / contain no-repeat; mask: var(--kui-otp-ico) center / contain no-repeat; }
html body.kui-otp .card-body > .row > .col-md-12:has(#updatedMob) { --kui-otp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
html body.kui-otp .card-body > .row > .col-md-12:has(#updatedEmail) { --kui-otp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7.5 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
html body.kui-otp .card-body h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--kui-heading); }
html body.kui-otp .card-body h2::before { content: "Re-KYC"; display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--kui-brand-600); }
html body.kui-otp .auth-container .card-body > .row > .col-md-12 p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--kui-text-muted); overflow-wrap: anywhere; }
html body.kui-otp .card-body > .row > .col-md-12 p b { font-weight: 600; color: var(--kui-text); }
html body.kui-otp .card-body > .row > .col-md-12 p a { display: block; width: fit-content; margin: 2px auto 0; font-weight: 600; text-decoration: none; color: var(--kui-brand-600); }
/* OTP boxes */
html body.kui-otp .card-body > .row > [class*="col-sm-2"] { flex: 0 0 auto; width: auto; margin: 0 !important; padding: 0 6px; }
html body.kui-otp .card-body > .row > [class*="col-sm-2"] .mb-3 { margin-bottom: 0 !important; }
html body.kui-otp .auth-container .opt-input { width: 58px; height: 64px; min-height: 64px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; color: var(--kui-text); background: var(--kui-surface-2); border: 1.5px solid var(--kui-border); border-radius: 14px; -moz-appearance: textfield; appearance: textfield; }
html body.kui-otp .auth-container .opt-input::-webkit-outer-spin-button, html body.kui-otp .auth-container .opt-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body.kui-otp .auth-container .opt-input:focus { background: var(--kui-surface); border-color: var(--kui-brand-600); box-shadow: 0 0 0 4px var(--kui-focus); }
/* button and resend line */
html body.kui-otp .card-body > .row > .col-12.mt-4 { margin-top: 22px !important; }
html body.kui-otp .card-body > .row > .col-12.mt-4 .mb-4 { margin-bottom: 18px !important; }
html body.kui-otp #OtpSubmit { height: 52px; border-radius: 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
html body.kui-otp .auth-container .card-body .col-12 > .text-center p, html body.kui-otp .auth-container .card-body .col-12 > .text-center { color: var(--kui-text-muted); font-size: 14px; }
html body.kui-otp .auth-container a.text-warning { color: var(--kui-brand-600) !important; font-weight: 600; text-decoration: none; }
@media (max-width: 420px) {
    html body.kui-otp .auth-container .card .card-body { padding: 30px 18px 26px; }
    html body.kui-otp .card-body > .row > [class*="col-sm-2"] { padding: 0 4px; }
    html body.kui-otp .auth-container .opt-input { width: 52px; height: 58px; min-height: 58px; }
}
/* edit dialog */
html body.kui-otp #inputFormModal .modal-dialog { width: calc(100% - 24px); max-width: 440px; margin-left: auto; margin-right: auto; }
html body.kui-otp #inputFormModal .modal-content { border-radius: 20px; }
html body.kui-otp #inputFormModal .modal-content::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--kui-btn), var(--kui-accent-500)); }
html body.kui-otp #inputFormModal .modal-header { padding: 18px 24px 16px; }
html body.kui-otp #inputFormModal .modal-title { display: flex; align-items: center; gap: 5px; position: relative; padding-left: 52px; min-height: 38px; font-size: 18px; font-weight: 400; }
html body.kui-otp #inputFormModal .modal-title b { font-weight: 600; color: var(--kui-brand-600); }
html body.kui-otp #inputFormModal .modal-title::before { content: ""; position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 11px; background: var(--kui-accent-bg); }
html body.kui-otp #inputFormModal .modal-title::after { content: ""; position: absolute; left: 10px; top: 10px; width: 18px; height: 18px; background: var(--kui-brand-600); -webkit-mask: var(--kui-otp-ico) center / contain no-repeat; mask: var(--kui-otp-ico) center / contain no-repeat; }
html body.kui-otp #inputFormModal .modal-content:has(#editedMobNumber) { --kui-otp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='3'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
html body.kui-otp #inputFormModal .modal-content:has(#EditedMailId) { --kui-otp-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7.5 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
html body.kui-otp #inputFormModal .modal-body { padding: 20px 24px 6px; }
html body.kui-otp #inputFormModal .modal-body::before { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--kui-text); }
html body.kui-otp #inputFormModal .modal-content:has(#editedMobNumber) .modal-body::before { content: "New mobile number"; }
html body.kui-otp #inputFormModal .modal-content:has(#EditedMailId) .modal-body::before { content: "New email address"; }
html body.kui-otp #inputFormModal .input-group { border: 1.5px solid var(--kui-border-strong); border-radius: 14px; background: var(--kui-surface); }
html body.kui-otp #inputFormModal .input-group:hover { border-color: var(--kui-brand-600); }
html body.kui-otp #inputFormModal .input-group:focus-within { border-color: var(--kui-brand-600); box-shadow: 0 0 0 4px var(--kui-focus); }
html body.kui-otp #inputFormModal .input-group-text { flex: 0 0 52px; width: 52px; background: var(--kui-accent-bg) !important; }
html body.kui-otp #inputFormModal .input-group .form-control { height: 52px; min-height: 52px; padding: 0 16px; }
html body.kui-otp #inputFormModal .modal-footer { display: flex; flex-wrap: nowrap; justify-content: stretch; gap: 12px; padding: 14px 24px 24px; border-top: 0; }
html body.kui-otp #inputFormModal .modal-footer .btn { flex: 1 1 0; min-width: 0; height: 46px; border-radius: 12px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
/* Add code kingshuk 27/11/2026 : dialog close icon and Cancel stay readable in Dark (they follow the lighter brand / muted text tokens) */
html body.kui-otp #inputFormModal .btn-close { color: var(--kui-text-muted) !important; opacity: 1; filter: none !important; background-image: none !important; }
html body.kui-otp #inputFormModal .btn-close:hover { color: var(--kui-text) !important; }
html body.kui-otp #inputFormModal .modal-footer .btn-outline-light { color: var(--kui-brand-600) !important; border-color: var(--kui-brand-600) !important; }
html body.kui-otp #inputFormModal .modal-header .btn-close svg { color: var(--kui-text-muted) !important; stroke: var(--kui-text-muted) !important; opacity: 1 !important; filter: none !important; } /* Add code kingshuk 27/11/2026 : close icon visible in Dark */