/* IPOPlus redesign — white-label theme.
   Colours only through the variables written by Views/Shared/_ThemeColors.cshtml:
   --theme-primary-safe / --theme-secondary-safe (text and buttons) and their tints.
   Everything is scoped to body.ipx so the per-broker CDN stylesheet can stay loaded. */

body.ipx {
    --ipx-ink: #0B1620;
    --ipx-ink-2: #2F3E4B;
    --ipx-ink-3: #4A5866;
    --ipx-line: #E3E9EE;
    --ipx-line-2: #AEBBC6;
    --ipx-bg: #EEF2F6;
    --ipx-card: #FFFFFF;
    --ipx-radius: 16px;
    --ipx-shadow: 0 1px 2px rgba(15, 30, 43, .04), 0 10px 28px rgba(15, 30, 43, .06);
    --ipx-focus: #1558A8;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ipx-bg) !important;
    background-image: none !important;
    color: var(--ipx-ink);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif !important;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.ipx h1, body.ipx h2, body.ipx h3, body.ipx h4, body.ipx h5,
body.ipx .ui.form, body.ipx .ui.button, body.ipx input, body.ipx select, body.ipx textarea, body.ipx button {
    font-family: inherit !important;
}

body.ipx a { color: var(--theme-primary-safe); }
body.ipx a:hover, body.ipx a:focus { color: var(--theme-primary-dark); }

body.ipx :focus-visible {
    outline: 3px solid var(--ipx-focus);
    outline-offset: 2px;
}

body.ipx .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

body.ipx .skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    padding: 10px 16px; background: #000; color: #fff; font-weight: 600; border-radius: 0 0 8px 0;
}
body.ipx .skip-link:focus { left: 0; color: #fff; }

/* loader covers the screen, not just the top of the page */
body.ipx .ajax-loader {
    position: fixed !important; top: 0; left: 0; right: 0; bottom: 0;
    width: auto !important; height: auto !important;
    display: flex; align-items: center; justify-content: center;
    background: rgba(244, 247, 250, .75) !important;
}
body.ipx .ajax-loader img { position: static !important; height: 72px !important; }

/* ---------- Header ---------- */
.ipx-header {
    position: sticky; top: 0; z-index: 1000; margin: 0;
    background: #fff;
    border-bottom: 4px solid var(--theme-primary-safe);
    box-shadow: 0 2px 10px rgba(15, 30, 43, .06);
}
.ipx-header-inner {
    max-width: 1320px; margin: 0 auto; padding: 8px 24px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
.ipx-brand { display: inline-flex; align-items: center; min-height: 76px; }
.ipx-brand img { display: block; height: 76px; max-height: 76px; max-width: 320px; width: auto; object-fit: contain; }
.ipx-nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--ipx-line); background: #fff; color: var(--ipx-ink);
    align-items: center; justify-content: center; cursor: pointer;
}
.ipx-nav-toggle svg { width: 22px; height: 22px; }
.ipx-nav { margin-left: auto; }
.ipx-nav.collapse { display: block; }
.ipx-nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
body.ipx .ipx-nav-link,
body.ipx .ipx-nav .dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 14px; border-radius: 10px;
    color: var(--ipx-ink); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-decoration: none;
    background: transparent;
}
body.ipx .ipx-nav-link:hover,
body.ipx .ipx-nav .dropdown-toggle:hover,
body.ipx .ipx-nav .open > .dropdown-toggle { background: #F1F4F7; color: var(--ipx-ink); }
body.ipx .ipx-nav-link.is-active,
body.ipx .ipx-nav-link[aria-current="page"] { background: var(--theme-primary-50); color: var(--theme-primary-safe); }
body.ipx .ipx-nav .dropdown-menu {
    border: 1px solid var(--ipx-line); border-radius: 12px; padding: 6px;
    box-shadow: var(--ipx-shadow); min-width: 200px;
}
body.ipx .ipx-nav .dropdown-menu > li > a {
    padding: 10px 12px; border-radius: 8px; font-weight: 500; color: var(--ipx-ink);
}
body.ipx .ipx-nav .dropdown-menu > li > a:hover,
body.ipx .ipx-nav .dropdown-menu > li > a:focus { background: var(--theme-primary-50); color: var(--theme-primary-safe); }
.ipx-nav .caret { margin-left: 2px; }

.ipx-user {
    display: inline-flex; align-items: center; gap: 10px;
    margin-left: 8px; padding: 4px 4px 4px 4px;
    border: 1px solid var(--ipx-line); border-radius: 999px;
}
.ipx-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--theme-primary-50); color: var(--theme-primary-safe);
    display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.ipx-user-avatar svg { width: 18px; height: 18px; }
.ipx-user-text { display: flex; flex-direction: column; line-height: 1.15; padding-right: 4px; }
.ipx-user-text small { font-size: 11px; color: var(--ipx-ink-3); }
.ipx-user-text b { font-size: 12px; color: var(--ipx-ink); }
body.ipx a.ipx-logout {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px; padding: 0 14px; border-radius: 999px;
    background: #F1F4F7; color: var(--ipx-ink-2); font-weight: 600; font-size: 12px; text-decoration: none;
}
body.ipx a.ipx-logout:hover, body.ipx a.ipx-logout:focus { background: #FDECEC; color: #A61B1B; }
.ipx-logout svg { width: 16px; height: 16px; }

/* ---------- Layout body ---------- */
.ipx-body { flex: 1 0 auto; width: 100%; }
body.ipx main#main-content { outline: none; }
/* old pages used <br> to push content below the fixed header; the header no longer overlaps */
body.ipx main#main-content > br { display: none; }

.ipx-footer {
    flex: none; margin-top: 40px;
    background: #fff; border-top: 1px solid var(--ipx-line);
}
/* the old layout script toggles navbar-fixed-bottom on <footer>; keep the footer in the flow */
body.ipx footer.ipx-footer.navbar-fixed-bottom { position: static !important; }
.ipx-footer-inner {
    max-width: 1320px; margin: 0 auto; padding: 16px 24px;
    display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between;
    font-size: 12px; color: var(--ipx-ink-3);
}
.ipx-footer-inner p { margin: 0; }

.ipx-page { max-width: 1320px; margin: 0 auto; padding: 32px 24px 24px; box-sizing: border-box; }
.ipx-page-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 24px;
}
body.ipx .ipx-page-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.01em; color: var(--ipx-ink); }
.ipx-page-head p { margin: 4px 0 0; color: var(--ipx-ink-3); }

.ipx-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border: 1px solid var(--ipx-line); border-radius: 12px;
    background: #fff; font-size: 12px; color: var(--ipx-ink-2);
}
.ipx-chip svg { width: 16px; height: 16px; color: var(--theme-primary-safe); flex: none; }
.ipx-chip b { color: var(--ipx-ink); }

.ipx-section { margin-bottom: 28px; }
.ipx-section-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 12px;
}
body.ipx .ipx-section-head h2 {
    margin: 0; font-size: 19px; font-weight: 800; color: var(--ipx-ink);
    display: inline-flex; align-items: center; gap: 10px;
}
.ipx-count {
    font-size: 11px; font-weight: 700; color: var(--ipx-ink-2);
    background: #fff; border: 1px solid var(--ipx-line); border-radius: 999px; padding: 1px 9px;
}

.ipx-card {
    background: var(--ipx-card); border: 1px solid var(--ipx-line);
    border-radius: var(--ipx-radius); box-shadow: var(--ipx-shadow);
}

/* ---------- Empty state ---------- */
.ipx-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 28px; }
.ipx-empty-icon {
    width: 60px; height: 60px; border-radius: 16px; flex: none;
    background: var(--theme-primary-50); color: var(--theme-primary-safe);
    display: flex; align-items: center; justify-content: center;
}
.ipx-empty-icon svg { width: 28px; height: 28px; }
.ipx-empty-text { flex: 1 1 280px; }
.ipx-empty-text b { display: block; font-size: 15px; color: var(--ipx-ink); }
.ipx-empty-text p { margin: 4px 0 0; color: var(--ipx-ink-3); font-size: 13px; }

/* ---------- Tables ---------- */
.ipx-table-wrap { overflow-x: auto; }
body.ipx table.ipx-table { width: 100%; border-collapse: collapse; font-size: 14px; background: transparent; margin: 0; }
body.ipx .ipx-table thead th {
    text-align: left; font-size: 12px; font-weight: 800; color: #fff !important;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 14px 18px !important; background: var(--theme-primary-safe) !important;
    border: 0 !important; box-shadow: none !important;
    white-space: nowrap;
}
body.ipx .ipx-table tbody td {
    padding: 14px 18px; border-bottom: 1px solid #EEF2F5; vertical-align: middle; color: var(--ipx-ink);
}
body.ipx .ipx-table tbody tr:last-child td { border-bottom: 0; }
body.ipx .ipx-table tbody tr.ipx-row:hover td { background: #FAFCFD; }
body.ipx .ipx-table .is-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
body.ipx .ipx-table .is-nowrap { white-space: nowrap; }
body.ipx .ipx-table .is-actions { text-align: right; white-space: nowrap; }
body.ipx .ipx-table thead th.is-num, body.ipx .ipx-table thead th.is-actions { text-align: right; }
body.ipx .ipx-table tr.ipx-detail-row > td { padding: 0; border-bottom: 1px solid #EEF2F5; background: #FAFCFD; }

.ipx-co { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.ipx-co-logo {
    width: 44px; height: 44px; flex: none; border-radius: 12px;
    border: 1px solid var(--ipx-line); background: #fff;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ipx-co-logo img { max-width: 36px; max-height: 36px; width: auto; height: auto; }
.ipx-co-name { font-weight: 700; font-size: 14.5px; color: var(--ipx-ink); line-height: 1.35; }
.ipx-co-sub { display: block; font-size: 11px; color: var(--ipx-ink-3); font-weight: 500; }

.ipx-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; margin: 0; }
.ipx-details div { background: #fff; border: 1px solid var(--ipx-line); border-radius: 12px; padding: 10px 14px; }
.ipx-details dt { font-size: 11px; color: var(--ipx-ink-3); font-weight: 600; }
.ipx-details dd { margin: 2px 0 0; font-weight: 700; color: var(--ipx-ink); }

/* phones: each row becomes a card, labels come from data-label */
@media (max-width: 767px) {
    body.ipx .ipx-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    body.ipx .ipx-table--stack, body.ipx .ipx-table--stack tbody, body.ipx .ipx-table--stack tr, body.ipx .ipx-table--stack td { display: block; width: 100%; box-sizing: border-box; }
    body.ipx .ipx-table--stack tr.ipx-row { padding: 14px 16px; border-bottom: 1px solid var(--ipx-line); }
    body.ipx .ipx-table--stack tr.ipx-row td { border: 0; padding: 5px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; }
    body.ipx .ipx-table--stack tr.ipx-row td[data-label]::before {
        content: attr(data-label); color: var(--ipx-ink-3); font-size: 11.5px; font-weight: 600; text-align: left; flex: none;
    }
    body.ipx .ipx-table--stack tr.ipx-row td.ipx-cell-main { display: block; text-align: left; padding-bottom: 8px; }
    body.ipx .ipx-table--stack tr.ipx-row td.is-actions { justify-content: flex-start; flex-wrap: wrap; padding-top: 10px; }
    body.ipx .ipx-table--stack tr.ipx-row td.is-actions .ipx-btn { flex: 1 1 auto; }
    body.ipx .ipx-table--stack tr.ipx-detail-row td { display: block; }
    .ipx-co { min-width: 0; }
    .ipx-details { grid-template-columns: 1fr; }
}

/* ---------- Pills ---------- */
.ipx-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
    background: #EEF2F5; color: var(--ipx-ink-2); white-space: nowrap;
}
.ipx-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ipx-pill--success { background: #E6F4EA; color: #1E6B34; }
.ipx-pill--warn { background: #FFF1DC; color: #8A4B00; }
.ipx-tag {
    display: inline-block; margin: 0 4px 2px 0; padding: 2px 8px; border-radius: 6px;
    font-size: 11px; font-weight: 700; background: #F1F4F7; color: var(--ipx-ink-2);
}

/* ---------- Buttons ---------- */
body.ipx .ipx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 10px;
    border: 1.5px solid transparent; font-weight: 700; font-size: 14px; letter-spacing: .02em; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
body.ipx .ipx-btn svg { width: 16px; height: 16px; flex: none; }
body.ipx .ipx-btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
body.ipx .ipx-btn--block { display: flex; width: 100%; }
body.ipx .ipx-btn--lg { min-height: 52px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
/* main call-to-action buttons use the secondary (accent) colour, as the old portal did */
body.ipx .ipx-btn--primary { background: var(--theme-secondary-safe); border-color: var(--theme-secondary-safe); color: #fff; }
body.ipx .ipx-btn--primary:hover, body.ipx .ipx-btn--primary:focus { background: var(--theme-secondary-dark); border-color: var(--theme-secondary-dark); color: #fff; }
body.ipx .ipx-btn--secondary { background: var(--theme-secondary-safe); border-color: var(--theme-secondary-safe); color: #fff; }
body.ipx .ipx-btn--secondary:hover, body.ipx .ipx-btn--secondary:focus { background: var(--theme-secondary-dark); border-color: var(--theme-secondary-dark); color: #fff; }
body.ipx .ipx-btn--outline { background: #fff; border-color: var(--theme-primary-safe); color: var(--theme-primary-safe); }
body.ipx .ipx-btn--outline:hover, body.ipx .ipx-btn--outline:focus { background: var(--theme-primary-50); color: var(--theme-primary-dark); }
body.ipx .ipx-btn--ghost { background: #fff; border-color: var(--ipx-line-2); color: var(--ipx-ink); }
body.ipx .ipx-btn--ghost:hover, body.ipx .ipx-btn--ghost:focus { border-color: var(--theme-primary-safe); color: var(--theme-primary-safe); }
body.ipx .ipx-btn--danger { background: #fff; border-color: #E8B4B4; color: #A61B1B; }
body.ipx .ipx-btn--danger:hover, body.ipx .ipx-btn--danger:focus { background: #FDECEC; color: #861414; }
body.ipx .ipx-btn--icon { width: 40px; min-height: 40px; padding: 0; }
body.ipx .ipx-btn-row { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* ---------- Notice ---------- */
.ipx-notice {
    display: flex; gap: 14px; padding: 18px 20px;
    background: #FFF8E8; border: 1px solid #F0DBA8; border-radius: 14px; color: #5C4410;
}
.ipx-notice > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #8A5A00; }
.ipx-notice ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.55; }
.ipx-notice b { color: #3D2F0B; }

/* ---------- Auth (login / OTP) ---------- */
.ipx-auth {
    max-width: 1320px; margin: 0 auto; padding: 48px 24px 24px; box-sizing: border-box;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.ipx-auth--center { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.ipx-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: var(--theme-secondary-50); color: var(--theme-secondary-safe);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ipx-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
body.ipx .ipx-hero h1 { margin: 18px 0 0; font-size: 46px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--ipx-ink); }
.ipx-hero h1 span { color: var(--theme-primary-safe); }
.ipx-hero-lead { margin: 16px 0 0; font-size: 18px; color: var(--ipx-ink-2); max-width: 540px; }
.ipx-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ipx-steps li { background: #fff; border: 1px solid var(--ipx-line); border-radius: 14px; padding: 16px; }
.ipx-step-no {
    width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--theme-primary-50); color: var(--theme-primary-safe); font-weight: 800; font-size: 12px;
}
.ipx-steps b { display: block; margin-top: 10px; font-size: 15px; }
.ipx-steps span.ipx-step-text { font-size: 13px; color: var(--ipx-ink-2); }

.ipx-auth-card {
    width: 100%; max-width: 520px; justify-self: end; box-sizing: border-box;
    background: #fff; border: 1px solid var(--ipx-line);
    border-radius: 18px; padding: 0 0 32px; overflow: hidden;
    box-shadow: 0 2px 4px rgba(15, 30, 43, .06), 0 18px 40px rgba(15, 30, 43, .12);
}
.ipx-auth-card > *:not(.ipx-auth-head) { margin-left: 32px; margin-right: 32px; }
.ipx-auth-head { background: var(--theme-primary-safe); color: #fff; padding: 22px 32px; margin-bottom: 4px; }
.ipx-auth--center .ipx-auth-card { justify-self: center; max-width: 500px; }
body.ipx .ipx-auth-card h2 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; }
.ipx-auth-sub { margin: 4px 0 0; color: rgba(255, 255, 255, .9); font-size: 14px; }

.ipx-tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
    margin: 24px 0; padding: 5px; border-radius: 12px; background: #E8EDF2;
}
body.ipx .ipx-tab {
    min-height: 48px; padding: 8px 10px; border: 0; border-radius: 9px; cursor: pointer;
    background: transparent; color: var(--ipx-ink-2); font-weight: 700; font-size: 15px; line-height: 1.25;
}
body.ipx .ipx-tab[aria-selected="true"] { background: var(--theme-primary-safe); color: #fff; box-shadow: 0 2px 6px rgba(15, 30, 43, .18); }
.ipx-tabpanel[hidden] { display: none !important; }

.ipx-field { margin-bottom: 16px; }
body.ipx .ipx-field label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ipx-ink); }
body.ipx .ipx-field label sup, body.ipx .ipx-req { color: #C0000C; top: 0; font-size: 12px; }
body.ipx input.ipx-input {
    display: block; width: 100%; height: 52px; box-sizing: border-box;
    padding: 0 16px; border: 1.5px solid var(--ipx-line-2); border-radius: 10px;
    background: #fff; color: var(--ipx-ink); font-size: 15px; font-weight: 500; box-shadow: none;
}
body.ipx input.ipx-input::placeholder { color: #66737F; text-transform: none; }
body.ipx input.ipx-input:focus { outline: none; border-color: var(--theme-primary-safe); box-shadow: 0 0 0 4px var(--theme-primary-100); }
body.ipx input.ipx-input[aria-invalid="true"] { border-color: #C0000C; }
body.ipx input.ipx-input--otp { height: 58px; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: .35em; }
body.ipx input.ipx-input--otp::placeholder { letter-spacing: normal; font-size: 14px; font-weight: 500; }
.ipx-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ipx-ink-3); }
body.ipx .ipx-auth-card .text-danger, body.ipx .ipx-field [role="alert"]:not(:empty) {
    display: block; margin: 6px 0 0; color: #B42318; font-size: 12px; font-weight: 600;
}
body.ipx .ipx-auth-card .validation-summary-errors {
    margin: 0 0 16px; padding: 12px 14px; border: 1px solid #F3B4B4; border-radius: 12px; background: #FDECEC;
}
body.ipx .ipx-auth-card .validation-summary-errors ul { margin: 0; padding-left: 18px; }
body.ipx .ipx-auth-card .validation-summary-valid { display: none; }

.ipx-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--ipx-ink-3); font-size: 11.5px; }
.ipx-divider::before, .ipx-divider::after { content: ""; flex: 1; height: 1px; background: var(--ipx-line); }
body.ipx a.ipx-openacc {
    display: flex; align-items: center; gap: 14px; padding: 14px;
    border: 1.5px dashed var(--theme-primary-200); border-radius: 12px; background: var(--theme-primary-50);
    color: var(--ipx-ink); text-decoration: none;
}
body.ipx a.ipx-openacc:hover, body.ipx a.ipx-openacc:focus { border-style: solid; color: var(--ipx-ink); }
.ipx-openacc-icon {
    width: 40px; height: 40px; border-radius: 10px; flex: none; background: #fff; color: var(--theme-primary-safe);
    display: flex; align-items: center; justify-content: center;
}
.ipx-openacc-icon svg { width: 20px; height: 20px; }
.ipx-openacc-text { flex: 1; }
.ipx-openacc-text b { display: block; font-size: 13px; }
.ipx-openacc-text span { font-size: 11.5px; color: var(--ipx-ink-2); }
.ipx-openacc-go { color: var(--theme-primary-safe); font-weight: 700; font-size: 13px; }

.ipx-otp-icon {
    width: 64px; height: 64px; margin: 24px auto 4px; border-radius: 18px;
    background: var(--theme-primary-50); color: var(--theme-primary-safe);
    display: flex; align-items: center; justify-content: center;
}
.ipx-otp-icon svg { width: 30px; height: 30px; }
.ipx-otp-card { text-align: center; }
.ipx-otp-card .ipx-field { text-align: left; margin-top: 22px; }
.ipx-otp-msg { margin: 8px 0 0; color: var(--ipx-ink-2); font-size: 15px; }
.ipx-otp-msg b { color: var(--ipx-ink); white-space: nowrap; }
body.ipx a.ipx-back {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px;
    font-size: 12px; font-weight: 600; color: var(--ipx-ink-3); text-decoration: none;
}
body.ipx a.ipx-back:hover, body.ipx a.ipx-back:focus { color: var(--theme-primary-safe); }
.ipx-back svg { width: 14px; height: 14px; }

/* ---------- Error / status pages ---------- */
.ipx-status { max-width: 560px; margin: 48px auto; padding: 40px 32px; text-align: center; }
.ipx-status-code { font-size: 62px; font-weight: 800; line-height: 1; color: var(--theme-primary-safe); letter-spacing: -.03em; }
body.ipx .ipx-status h1 { margin: 14px 0 6px; font-size: 22px; font-weight: 800; color: var(--ipx-ink); }
.ipx-status p { margin: 0 0 24px; color: var(--ipx-ink-3); }

/* =====================================================================
   Legacy components (bid / modify / print pages keep their markup)
   ===================================================================== */
body.ipx .ipx-body > main > .container,
body.ipx .ipx-body > main > .row > .container,
body.ipx .ipx-body > main > .container-fluid { padding-top: 24px; }

body.ipx .panel {
    border: 1px solid var(--ipx-line); border-radius: var(--ipx-radius);
    box-shadow: var(--ipx-shadow); background: #fff; overflow: hidden; margin-bottom: 20px;
}
body.ipx .panel-body { padding: 20px 22px; }
body.ipx .panel:has(> .card-header-title:first-child) { padding-top: 0 !important; }
body.ipx .panel-heading, body.ipx .ithub-heading {
    background: var(--theme-primary-safe) !important; border-color: var(--theme-primary-safe) !important;
    color: #fff !important; padding: 14px 20px;
}
body.ipx .panel-heading h1, body.ipx .panel-heading h2, body.ipx .panel-heading h3, body.ipx .ithub-head {
    color: #fff !important; font-size: 17px; font-weight: 700; margin: 0;
}

body.ipx .card-header-title {
    background: var(--theme-primary-safe) !important; color: #fff !important;
    padding: 14px 20px; border-radius: var(--ipx-radius) var(--ipx-radius) 0 0;
}
body.ipx .card-header-title .card-title, body.ipx .card-header-title h3 {
    color: #fff !important; font-size: 17px; font-weight: 700; margin: 0;
}
body.ipx .rounded-main-div {
    border: 1px solid var(--ipx-line); border-radius: var(--ipx-radius); background: #fff;
    box-shadow: var(--ipx-shadow); overflow: hidden; margin-bottom: 24px;
}
body.ipx .ithub-title { font-size: 17px; font-weight: 800; color: var(--ipx-ink); margin: 24px 0 12px; }

body.ipx table.table1, body.ipx .table-bordered, body.ipx .table {
    border-collapse: collapse; background: #fff; font-size: 13px; border: 0;
}
body.ipx table.table1 > thead > tr > th, body.ipx .table > thead > tr > th, body.ipx .table-bordered > thead > tr > th, body.ipx tr.trgray > th {
    background: var(--theme-primary-safe) !important; color: #fff !important; box-shadow: none !important;
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    border: 0 !important; padding: 13px 16px !important;
}
body.ipx tr.trgray { background: var(--theme-primary-safe) !important; box-shadow: none; }
body.ipx table.table1 > tbody > tr > td, body.ipx .table > tbody > tr > td, body.ipx .table-bordered > tbody > tr > td {
    border: 0 !important; border-bottom: 1px solid #EEF2F5 !important; padding: 12px 14px; color: var(--ipx-ink); vertical-align: middle;
}
body.ipx .table-striped > tbody > tr:nth-of-type(odd), body.ipx table.table1 > tbody > tr:nth-of-type(odd) { background: #fff; }
body.ipx .table-striped > tbody > tr:nth-of-type(even), body.ipx table.table1 > tbody > tr:nth-of-type(even) { background: #FBFCFD; }

/* Semantic UI forms */
body.ipx .ui.form .field > label, body.ipx .ui.form label { color: var(--ipx-ink); font-size: 12px; font-weight: 700; }
body.ipx .ui.form input[type="text"], body.ipx .ui.form input[type="number"], body.ipx .ui.form input[type="email"],
body.ipx .ui.form input[type="tel"], body.ipx .ui.form input[type="password"], body.ipx .ui.form input[type="date"],
body.ipx .ui.form select, body.ipx .ui.form textarea, body.ipx .form-control {
    min-height: 44px; border: 1.5px solid var(--ipx-line-2) !important; border-radius: 10px !important;
    box-shadow: none !important; font-size: 14px; color: var(--ipx-ink); background: #fff;
}
body.ipx .ui.form textarea { min-height: 88px; }
body.ipx .ui.form input:focus, body.ipx .ui.form select:focus, body.ipx .ui.form textarea:focus, body.ipx .form-control:focus {
    border-color: var(--theme-primary-safe) !important; box-shadow: 0 0 0 4px var(--theme-primary-100) !important; outline: none;
}
body.ipx .ui.form input[disabled], body.ipx .ui.form input[readonly], body.ipx .form-control[disabled], body.ipx .form-control[readonly] {
    background: #F4F6F8; color: #3D4652;
}
body.ipx .ui.form input[type="checkbox"], body.ipx .ui.form input[type="radio"], body.ipx input[type="checkbox"], body.ipx input[type="radio"] {
    accent-color: var(--theme-primary-safe);
}
body.ipx .color-red { color: #C0000C !important; }

/* Kendo widgets used in forms */
body.ipx .k-widget.k-dropdown .k-dropdown-wrap, body.ipx .k-widget.k-combobox .k-dropdown-wrap, body.ipx .k-autocomplete {
    min-height: 42px; border: 1.5px solid var(--ipx-line-2); border-radius: 10px; background: #fff; box-shadow: none;
}
body.ipx .k-widget.k-dropdown .k-dropdown-wrap.k-state-focused, body.ipx .k-autocomplete.k-state-focused {
    border-color: var(--theme-primary-safe); box-shadow: 0 0 0 4px var(--theme-primary-100);
}
body.ipx .k-list .k-item.k-state-selected { background: var(--theme-primary-safe); color: #fff; }

/* Buttons from Semantic UI / Bootstrap / old theme */
body.ipx .ui.button, body.ipx .btn { border-radius: 10px !important; font-weight: 700 !important; min-height: 40px; }
body.ipx .ui.green.button, body.ipx .ui.positive.button:not(.basic), body.ipx .ui.primary.button,
body.ipx .ithub-primary, body.ipx .btn-success, body.ipx .btn-primary, body.ipx .ui.blue.button:not(.basic) {
    background: var(--theme-secondary-safe) !important; border-color: var(--theme-secondary-safe) !important;
    color: #fff !important; background-image: none !important; text-shadow: none !important;
}
body.ipx .ui.green.button:hover, body.ipx .ui.positive.button:not(.basic):hover, body.ipx .ui.primary.button:hover,
body.ipx .ithub-primary:hover, body.ipx .btn-success:hover, body.ipx .btn-primary:hover, body.ipx .ui.blue.button:not(.basic):hover,
body.ipx .ui.green.button:focus, body.ipx .ui.positive.button:not(.basic):focus, body.ipx .ui.primary.button:focus,
body.ipx .ithub-primary:focus, body.ipx .btn-success:focus, body.ipx .btn-primary:focus {
    background: var(--theme-secondary-dark) !important; border-color: var(--theme-secondary-dark) !important; color: #fff !important;
}
body.ipx .ui.basic.positive.button, body.ipx .ui.positive.basic.button, body.ipx .ui.basic.blue.button {
    background: #fff !important; box-shadow: inset 0 0 0 1.5px var(--theme-primary-safe) !important;
    color: var(--theme-primary-safe) !important;
}
body.ipx .ui.basic.positive.button:hover, body.ipx .ui.positive.basic.button:hover, body.ipx .ui.basic.blue.button:hover {
    background: var(--theme-primary-50) !important;
}
body.ipx .ui.secondary.button:not(.ithub-primary):not(.blue):not(.btnIndira), body.ipx .ui.grey.button, body.ipx .btn-default {
    background: #fff !important; color: var(--ipx-ink) !important; box-shadow: inset 0 0 0 1.5px var(--ipx-line-2) !important; border-color: var(--ipx-line-2) !important;
}
body.ipx .ui.secondary.button:not(.ithub-primary):not(.blue):not(.btnIndira):hover, body.ipx .ui.grey.button:hover, body.ipx .btn-default:hover {
    color: var(--theme-primary-safe) !important; box-shadow: inset 0 0 0 1.5px var(--theme-primary-safe) !important;
}
body.ipx input.ui.button.ithub-primary { width: 100%; min-height: 48px; }

/* masked PAN / mobile toggle on bid pages */
body.ipx .eye-btn { color: var(--theme-primary-safe); }
body.ipx .eye-btn:hover { color: var(--theme-primary-dark); }

/* Semantic UI messages */
body.ipx .ui.warning.message {
    background: #FFF8E8 !important; border: 1px solid #F0DBA8 !important; border-radius: 14px !important;
    box-shadow: none !important; color: #5C4410 !important; padding: 18px 20px 18px 20px;
}
body.ipx .ui.warning.message ul { margin: 0; padding-left: 18px; }
body.ipx .ui.warning.message li { margin: 4px 0; line-height: 1.55; }

/* Bootstrap modals and Bootbox */
body.ipx .modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 30, 43, .25); overflow: hidden; }
body.ipx .modal-header { background: var(--theme-primary-50); border-bottom: 1px solid var(--ipx-line); padding: 16px 22px; }
body.ipx .modal-header .modal-title { font-size: 16px; font-weight: 700; color: var(--ipx-ink); }
body.ipx .modal-header .close { width: 36px; height: 36px; border-radius: 50%; opacity: .7; margin-top: -4px; }
body.ipx .modal-header .close:hover { background: #fff; opacity: 1; }
body.ipx .modal-body { padding: 22px; font-size: 14px; color: var(--ipx-ink); }
body.ipx .modal-footer { border-top: 1px solid var(--ipx-line); padding: 14px 22px; display: flex; justify-content: flex-end; gap: 8px; }
body.ipx .modal-footer .btn + .btn { margin-left: 0; }
body.ipx .modal-backdrop.in { opacity: .45; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ipx-nav-toggle { display: inline-flex; }
    .ipx-nav { flex: 1 1 100%; margin-left: 0; }
    .ipx-nav.collapse:not(.in) { display: none; }
    .ipx-nav-list { flex-direction: column; align-items: stretch; padding: 6px 0 4px; }
    body.ipx .ipx-nav-link, body.ipx .ipx-nav .dropdown-toggle { width: 100%; }
    body.ipx .ipx-nav .dropdown-menu { position: static; float: none; box-shadow: none; margin: 4px 0 0 12px; }
    .ipx-user { margin: 8px 0 0; justify-content: space-between; border-radius: 14px; padding: 6px; }
    .ipx-auth { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
    .ipx-auth-card { justify-self: stretch; max-width: none; }
    .ipx-hero-extra { display: none; }
}
@media (min-width: 992px) {
    .ipx-nav.collapse { display: block !important; height: auto !important; }
}
@media (max-width: 600px) {
    .ipx-header-inner, .ipx-page, .ipx-footer-inner { padding-left: 14px; padding-right: 14px; }
    .ipx-page { padding-top: 22px; }
    body.ipx .ipx-page-head h1 { font-size: 21px; }
    body.ipx .ipx-hero h1 { font-size: 28px; }
    .ipx-hero-lead { font-size: 14px; }
    .ipx-auth { padding: 20px 14px 8px; }
    .ipx-auth-card { padding: 0 0 24px; }
    .ipx-auth-card > *:not(.ipx-auth-head) { margin-left: 18px; margin-right: 18px; }
    .ipx-auth-head { padding: 18px; }
    .ipx-empty { padding: 22px 18px; }
    .ipx-brand img { height: 56px; max-height: 56px; max-width: 210px; }
    body.ipx .panel-body { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    body.ipx .ipx-btn { transition: none; }
}

/* small helpers the old broker CDN stylesheet used to provide */
body.ipx .p-top-15 { padding-top: 15px; }
body.ipx .mb-0 { margin-bottom: 0 !important; }
body.ipx .text-white { color: #fff !important; }
body.ipx .ipx-auth-card > .ipx-otp-icon { margin: 24px auto 4px; }

/* ---------- Public IPO page (Home/Index, Home/MIndex) ---------- */
.ipx-hero-band { background: var(--theme-primary-safe); color: #fff; }
.ipx-hero-band-inner {
    max-width: 1320px; margin: 0 auto; padding: 36px 24px 84px; box-sizing: border-box;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
}
body.ipx .ipx-hero-band h1 { margin: 0; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.ipx-hero-band p { margin: 6px 0 0; font-size: 16px; color: rgba(255, 255, 255, .92); }
.ipx-hero-band .ipx-btn--primary { box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.ipx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -56px; margin-bottom: 32px; }
.ipx-stat { padding: 18px 22px; display: flex; align-items: center; gap: 16px; }
.ipx-stat-icon {
    width: 48px; height: 48px; border-radius: 14px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--theme-primary-50); color: var(--theme-primary-safe);
}
.ipx-stat-icon svg { width: 24px; height: 24px; }
.ipx-stat-icon--live { background: var(--theme-secondary-50); color: var(--theme-secondary-safe); }
.ipx-stat b { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ipx-ink); }
.ipx-stat span { font-size: 13px; color: var(--ipx-ink-3); font-weight: 600; }

.ipx-live-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: var(--theme-secondary-safe); box-shadow: 0 0 0 4px var(--theme-secondary-50);
}
.ipx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ipx-ipo-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-top: 4px solid var(--theme-secondary-safe); }
.ipx-ipo-card-head { padding: 20px 22px 14px; display: flex; gap: 14px; align-items: flex-start; }
.ipx-ipo-card-head .ipx-co-logo { width: 52px; height: 52px; }
.ipx-ipo-card-head .ipx-co-logo img { max-width: 44px; max-height: 44px; }
body.ipx .ipx-ipo-card h3 { margin: 4px 0 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--ipx-ink); }
.ipx-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    background: var(--theme-primary-50); color: var(--theme-primary-safe);
}
.ipx-badge--sme { background: var(--theme-secondary-50); color: var(--theme-secondary-safe); }
.ipx-ipo-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--ipx-line); border-top: 1px solid var(--ipx-line); border-bottom: 1px solid var(--ipx-line); }
.ipx-ipo-facts > div { background: #fff; padding: 12px 22px; }
.ipx-ipo-facts > div.is-wide { grid-column: 1 / -1; }
.ipx-ipo-facts dt { font-size: 11.5px; font-weight: 700; color: var(--ipx-ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ipx-ipo-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ipx-ink); }
.ipx-ipo-card-foot { padding: 14px 22px 18px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.ipx-ipo-card-foot .ipx-btn { flex: 1 1 auto; }

.ipx-up-card { padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.ipx-up-date {
    flex: none; width: 56px; padding: 6px 0; border-radius: 12px; text-align: center;
    background: var(--theme-primary-50); color: var(--theme-primary-safe);
}
.ipx-up-date svg { width: 24px; height: 24px; display: block; margin: 0 auto; }
.ipx-up-text { min-width: 0; }
.ipx-up-text b { display: block; font-size: 15px; color: var(--ipx-ink); line-height: 1.3; }
.ipx-up-text span { display: block; font-size: 13px; color: var(--ipx-ink-3); margin-top: 2px; }
.ipx-up-text .ipx-tba { color: var(--ipx-ink-3); font-style: italic; }

.ipx-gain { display: inline-block; min-width: 72px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-align: center; }
.ipx-gain--up { background: #E3F4E8; color: #17663A; }
.ipx-gain--down { background: #FDE8E8; color: #A61B1B; }
.ipx-gain--flat { background: #EEF2F5; color: var(--ipx-ink-2); }

@media (max-width: 767px) {
    .ipx-stats { grid-template-columns: 1fr; margin-top: -48px; }
    .ipx-hero-band-inner { padding: 26px 14px 72px; }
    body.ipx .ipx-hero-band h1 { font-size: 26px; }
}
.ipx-page--flush { padding-top: 0; }

/* =====================================================================
   Apply / modify / confirm IPO pages (ClientPrint Edit, MEdit, Modfiy, MModfiy,
   UpdateClientAPP, MUpdateClientAPP, Index) - markup and scripts unchanged
   ===================================================================== */
body.ipx main#main-content > .container,
body.ipx main#main-content > .row > .container { width: auto; max-width: 1320px; padding: 28px 24px 8px; box-sizing: border-box; }
body.ipx #frmAddProviderUser > .panel,
body.ipx main#main-content > .container > .panel { margin-bottom: 22px; }

/* IPO title block */
body.ipx .card-header-title { padding: 18px 24px; }
body.ipx .card-header-title .card-title, body.ipx .card-header-title h3 { font-size: 20px !important; font-weight: 800 !important; text-align: left !important; }
body.ipx h1.ipop31Head, body.ipx h1.ipop31Head-Web, body.ipx div.ipop31Head {
    display: flex !important; align-items: center; gap: 14px; flex-direction: row;
    max-width: none; margin: 4px 0 6px !important;
    font-size: 24px !important; font-weight: 800 !important; letter-spacing: 0 !important; color: var(--ipx-ink) !important;
}
body.ipx div.ipop31Head {
    margin: 0 !important; padding: 18px 24px; background: var(--theme-primary-safe); color: #fff !important; font-size: 20px !important;
}
body.ipx span.ipop31Head { color: var(--theme-primary-safe) !important; font-weight: 800 !important; }
body.ipx .ipop31Head .user-icon, body.ipx .ipop31Head-Web .user-icon {
    width: 56px; height: 56px; max-width: 56px; object-fit: contain; padding: 6px; box-sizing: border-box;
    border: 1px solid var(--ipx-line); border-radius: 14px; background: #fff; margin: 0;
}
body.ipx h5.show-web { color: var(--ipx-ink-3); font-size: 14px; font-weight: 600; margin: 0 0 6px; }

/* IPO detail strip (MEdit / MModfiy responsive table) */
body.ipx .responsive-table { width: 100%; border-collapse: collapse; margin: 14px 0 0; }
body.ipx .responsive-table__head { background: var(--theme-primary-safe) !important; }
body.ipx .responsive-table__head th, body.ipx .responsive-table__head__title {
    color: #fff !important; background: transparent !important; box-shadow: none !important; border: 0 !important;
    font-size: 12px !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: .04em;
    padding: 13px 16px !important;
}
body.ipx .responsive-table__body .responsive-table__row td { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ipx-ink); border-bottom: 1px solid #EEF2F5; }

/* Celled summary table (UpdateClientAPP) */
body.ipx .ui.celled.table { border: 0; border-radius: 0; margin: 0; }
body.ipx .ui.celled.table tr:first-child td { background: var(--theme-primary-50); color: var(--theme-primary-safe); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
body.ipx .ui.celled.table td { padding: 13px 16px; border-left: 0 !important; font-size: 14px; }

/* Form grid */
body.ipx #frmAddProviderUser .panel-body { padding: 24px 26px; }
body.ipx .ui.form .fields { flex-wrap: wrap; row-gap: 18px; margin: 0 -10px 18px !important; }
body.ipx .ui.form .fields > .field { padding: 0 10px !important; margin-bottom: 0 !important; }
body.ipx .ui.form .field > label, body.ipx .ui.form .fields .field > label { font-size: 13px !important; font-weight: 700 !important; color: var(--ipx-ink-3) !important; margin-bottom: 6px !important; }
/* read-only values shown as plain text (application no., masked PAN/mobile) */
body.ipx .ui.form .field { font-size: 15px; font-weight: 600; color: var(--ipx-ink); }
body.ipx .pii-row { min-height: 44px; }
body.ipx .pii-label { font-weight: 700 !important; letter-spacing: .06em; }
body.ipx .ui.form select.form-control, body.ipx select.form-control { height: 46px; padding: 0 12px; }
body.ipx #UpiCode, body.ipx #Quantity, body.ipx #Upi {
    border-color: var(--theme-primary-safe) !important; box-shadow: 0 0 0 3px var(--theme-primary-100) !important;
}

/* Undertaking + submit */
body.ipx .checkbox-label {
    padding: 14px 16px; border: 1.5px solid var(--ipx-line-2); border-radius: 12px; background: #F8FAFC;
    font-size: 13.5px !important; font-weight: 500 !important; color: var(--ipx-ink) !important; line-height: 1.55;
}
body.ipx .checkbox-label:has(input:checked) { border-color: var(--theme-primary-safe); background: var(--theme-primary-50); }
body.ipx .checkbox-label span { display: inline !important; font-size: inherit !important; font-weight: inherit !important; }
body.ipx #SubmitButton, body.ipx .buttonElement {
    min-height: 52px; padding: 0 24px; font-size: 15px !important; text-transform: uppercase; letter-spacing: .05em;
}
body.ipx #SubmitButton[disabled], body.ipx .buttonElement[disabled] { opacity: .5; cursor: not-allowed; }
body.ipx #frmAddProviderUser ol.ui.list, body.ipx #frmAddProviderUser .panel .panel .ui.list {
    margin: 0; padding: 0 0 0 18px; color: #5C4410; font-size: 13.5px;
}
body.ipx #frmAddProviderUser .panel .panel { background: #FFF8E8; border-color: #F0DBA8; box-shadow: none; }

/* PAN + mobile entry page (ClientPrint/Index) */
body.ipx main#main-content > .container-fluid[style*="#11426b"] { background: transparent !important; }
body.ipx #loginForm .panel { max-width: 520px; margin: 32px auto; }
body.ipx #loginForm .panel-body { padding: 0 0 24px; }
body.ipx #loginForm .Bfsl-Main h2, body.ipx .brdIndira {
    margin: 0 0 8px; padding: 20px 26px !important; background: var(--theme-primary-safe); color: #fff !important;
    font-size: 22px; font-weight: 800; border: 0;
}
body.ipx #loginForm .field.p-top-15 { padding: 14px 26px 0; }
body.ipx #loginForm .ui.form input[type="text"], body.ipx #loginForm .ui.form input[type="number"] { height: 52px; font-size: 15px; }
body.ipx .btnIndira, body.ipx input.btnIndira {
    width: 100%; min-height: 52px; background: var(--theme-secondary-safe) !important; border-color: var(--theme-secondary-safe) !important;
    color: #fff !important; box-shadow: none !important; text-transform: uppercase; letter-spacing: .06em; font-size: 15px !important;
}
body.ipx .btnIndira:hover, body.ipx .btnIndira:focus { background: var(--theme-secondary-dark) !important; }

@media (max-width: 767px) {
    body.ipx main#main-content > .container, body.ipx main#main-content > .row > .container { padding: 18px 12px 4px; }
    body.ipx .ui.form .fields > .field { width: 100% !important; }
    body.ipx h1.ipop31Head-Web { font-size: 19px !important; }
    body.ipx #frmAddProviderUser .panel-body { padding: 18px 14px; }
}

/* show-web / show-mobile helpers (were in the removed broker CDN stylesheet) */
body.ipx .show-mobile { display: none !important; }
@media (max-width: 767px) {
    body.ipx .show-mobile { display: block !important; }
    body.ipx .show-web { display: none !important; }
}
body.ipx #frmAddProviderUser ol.ui.list, body.ipx #frmAddProviderUser ol.ui.list li { text-align: left !important; }

/* old Respon stylesheet turns every span into a column flex box; keep form values inline */
body.ipx .ui.form .field > span:not(.k-widget):not([style*="none"]) { display: inline !important; }
body.ipx .ui.form .field > i.fa-eye { margin-left: 8px; color: var(--theme-primary-safe); }
body.ipx a.ui.button { display: inline-flex !important; align-items: center; justify-content: center; min-height: 46px; text-align: center; }
body.ipx a.ui.basic.button[href*="Modfiy"] { box-shadow: inset 0 0 0 2px var(--theme-secondary-safe) !important; }
body.ipx a.ui.basic.button[href*="Deleteapplication"] { box-shadow: inset 0 0 0 2px #C0362C !important; }
body.ipx a.ui.basic.button[href*="Deleteapplication"]:hover { background: #FDECEC !important; }

/* Powered by IPO Plus */
.ipx-powered { margin: 0; color: var(--ipx-ink-3); font-size: 12px; white-space: nowrap; }
.ipx-powered b { color: var(--ipx-ink); font-weight: 800; }
body.ipx .ipx-powered a { text-decoration: none; }
body.ipx .ipx-powered a b { color: var(--theme-primary-safe); }

/* ---------- IPO name -> details popup ---------- */
body.ipx button.ipx-ipo-link {
    display: inline; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
    font: inherit; font-weight: inherit; color: inherit; text-align: left; line-height: inherit;
    text-decoration: underline; text-decoration-color: var(--theme-primary-200); text-decoration-thickness: 2px; text-underline-offset: 4px;
}
body.ipx button.ipx-ipo-link:hover, body.ipx button.ipx-ipo-link:focus { color: var(--theme-primary-safe); text-decoration-color: currentColor; }
body.ipx .ipx-ipo-modal .modal-dialog { width: auto; max-width: 1080px; margin: 24px auto; padding: 0 12px; }
body.ipx .ipx-ipo-modal .modal-header { background: var(--theme-primary-safe); border-bottom: 0; }
body.ipx .ipx-ipo-modal .modal-header .modal-title { color: #fff; font-size: 18px; font-weight: 800; margin: 0; padding-right: 40px; }
body.ipx .ipx-ipo-modal .modal-header .close { color: #fff; opacity: .9; text-shadow: none; font-size: 26px; }
body.ipx .ipx-ipo-modal .modal-header .close:hover { background: rgba(255, 255, 255, .15); opacity: 1; }
body.ipx .ipx-ipo-modal-body { position: relative; padding: 0; height: 74vh; min-height: 420px; background: #F4F7FA; }
.ipx-ipo-modal-body iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.ipx-ipo-modal-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--ipx-ink-3); font-weight: 600; background: #F4F7FA;
}
body.ipx .ipx-ipo-modal-foot { justify-content: space-between !important; align-items: center; flex-wrap: wrap; }
body.ipx .ipx-ipo-modal-powered { font-size: 13px; }
@media (max-width: 600px) {
    body.ipx .ipx-ipo-modal .modal-dialog { margin: 0; padding: 0; max-width: none; }
    body.ipx .ipx-ipo-modal .modal-content { border-radius: 0; min-height: 100vh; }
    body.ipx .ipx-ipo-modal-body { height: calc(100vh - 130px); }
}
body.ipx button.ipx-ipo-link.ipx-co-name { font-weight: 700; font-size: 14.5px; color: var(--ipx-ink); }
body.ipx button.ipx-ipo-link.ipx-co-name:hover, body.ipx button.ipx-ipo-link.ipx-co-name:focus { color: var(--theme-primary-safe); }
body.ipx .modal-footer::before, body.ipx .modal-footer::after { display: none; }

/* =====================================================================
   Bid form (ClientPrint/Edit) - compact layout
   ===================================================================== */
.ipx-bid { max-width: 980px; padding-top: 20px !important; }
.ipx-bid-hero {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    background: var(--theme-primary-safe); color: #fff; border-radius: 14px 14px 0 0;
    padding: 16px 22px;
}
body.ipx .ipx-bid-hero h1 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; line-height: 1.25; }
.ipx-bid-chips { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ipx-bid-chips li {
    padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .14);
    font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap;
}
.ipx-bid-chips li span { font-weight: 600; opacity: .8; margin-right: 4px; }

.ipx-bid-card { border-radius: 0 0 14px 14px; padding: 18px 22px 16px; margin-bottom: 16px; border-top: 0; }
.ipx-bid-tenor { border-radius: 0; border-top: 1px solid var(--ipx-line); margin-bottom: 0; }
body.ipx .ipx-bid-tenor .ipx-bid-section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 800; color: #A61B1B; }
body.ipx .ipx-bid-tenor .ipx-step-no { display: none; }

/* read-only strip: application no, PAN, mobile */
.ipx-bid-strip {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    padding: 10px 14px; margin-bottom: 16px; border-radius: 10px; background: var(--theme-primary-50);
}
.ipx-bid-strip > div { display: flex; flex-direction: column; min-width: 0; }
body.ipx .ipx-bid-k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ipx-ink-3); }
body.ipx .ipx-bid-v { display: flex; align-items: center; gap: 6px; min-height: 32px; font-size: 15px; font-weight: 800; color: var(--ipx-ink); }
body.ipx .ipx-bid .pii-label { display: inline !important; letter-spacing: .06em; }
body.ipx .ipx-bid .eye-btn { width: 32px; height: 32px; padding: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
body.ipx .ipx-bid .eye-btn:hover, body.ipx .ipx-bid .eye-btn:focus { background: #fff; }

.ipx-bid-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; }
.ipx-bid-field { min-width: 0; grid-column: span 2; }
.ipx-bid-field--half { grid-column: span 3; }
body.ipx .ipx-bid-field > label { display: block; margin: 0 0 5px; font-size: 12px; font-weight: 700; color: var(--ipx-ink-2); }
body.ipx .ipx-bid-field > label small { font-weight: 500; color: var(--ipx-ink-3); font-size: 11px; }
body.ipx .ipx-bid-field input[type="text"], body.ipx .ipx-bid-field input[type="email"], body.ipx .ipx-bid-field select {
    display: block; width: 100%; height: 44px; min-height: 44px; box-sizing: border-box; padding: 0 12px;
    border: 1.5px solid var(--ipx-line-2) !important; border-radius: 9px !important; background: #fff;
    font-size: 14px; font-weight: 600; color: var(--ipx-ink); box-shadow: none !important;
}
body.ipx .ipx-bid-field input:focus, body.ipx .ipx-bid-field select:focus {
    outline: none; border-color: var(--theme-primary-safe) !important; box-shadow: 0 0 0 3px var(--theme-primary-100) !important;
}
body.ipx .ipx-bid #UpiCode, body.ipx .ipx-bid #Quantity, body.ipx .ipx-bid #Upi { border-color: var(--theme-primary-200) !important; box-shadow: none !important; }
body.ipx .ipx-bid .amt_err2 { display: block; margin-top: 4px; border-radius: 6px; font-size: 11.5px; }

.ipx-upi { display: flex; }
body.ipx .ipx-upi #UpiCode { flex: 1 1 auto; min-width: 0; border-radius: 9px 0 0 9px !important; border-right-width: 0 !important; }
body.ipx .ipx-upi #Upi { flex: 0 0 42%; max-width: 190px; border-radius: 0 9px 9px 0 !important; background: var(--theme-primary-50); font-weight: 700; }

.ipx-tenors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
body.ipx .ipx-tenors .tenor-label {
    display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px;
    border: 1.5px solid var(--ipx-line-2); border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ipx-ink); cursor: pointer;
}
body.ipx .ipx-tenors .tenor-label:has(input:checked) { border-color: var(--theme-primary-safe); background: var(--theme-primary-50); }
body.ipx .ipx-tenors .tenor-label input { margin: 0; }

.ipx-bid-submit {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center;
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ipx-line);
}
body.ipx .ipx-bid-submit .checkbox-label {
    display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 0; border: 0; background: none;
    font-size: 12px !important; font-weight: 500 !important; line-height: 1.5; color: var(--ipx-ink-2) !important;
}
body.ipx .ipx-bid-submit .checkbox-label input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; }
body.ipx .ipx-bid-submit #SubmitButton { min-width: 210px; min-height: 48px; border-radius: 10px !important; font-size: 14px !important; }
body.ipx .ipx-bid-submit #SubmitButton[disabled] { opacity: .45; }
.ipx-bid-note { margin: 10px 0 0; font-size: 11.5px; color: var(--ipx-ink-3); }

@media (max-width: 760px) {
    .ipx-bid-chips { margin-left: 0; }
    .ipx-bid-grid { grid-template-columns: minmax(0, 1fr); }
    .ipx-bid-field, .ipx-bid-field--half { grid-column: auto; }
    .ipx-bid-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ipx-bid-submit { grid-template-columns: minmax(0, 1fr); }
    body.ipx .ipx-bid-submit #SubmitButton { width: 100%; min-width: 0; }
    .ipx-bid-hero, .ipx-bid-card { padding-left: 14px; padding-right: 14px; }
}
