@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

/* ==========================================================================
   NGPS — NeGD Payment Gateway Services
   Corporate Government of India design system — NeGD / MeitY visual language:
   Navy blue + saffron, Noto Sans, clean white surfaces.
   Loaded AFTER the base theme so it can override safely.
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
    /* Government of India primary palette */
    --ngps-navy:        #003087;   /* deep navy — primary fill */
    --ngps-navy-dark:   #00236A;   /* darker navy for hover/active */
    --ngps-navy-light:  #1B5CB5;   /* medium navy */
    --ngps-navy-ink:    #00236A;   /* navy for body text links / AA on white */

    --ngps-saffron:     #E86D1F;   /* India saffron — accent */
    --ngps-accent:      #E86D1F;

    --ngps-green:       #1A7A3C;   /* semantic government green */

    /* Surfaces */
    --ngps-surface:         #FFFFFF;
    --ngps-surface-alt:     #F4F7FB;   /* off-white page canvas */
    --ngps-surface-band:    #EAF0FA;   /* light blue-grey section band */
    --ngps-ink:             #0D1E3D;   /* primary body text */
    --ngps-ink-soft:        #4A5568;   /* secondary body text */
    --ngps-line:            #D5E0F0;   /* borders / hairlines */

    /* Deep surface for header / gov strip / footer */
    --ngps-ink-deep:    #002060;
    --ngps-ink-deep-2:  #001244;

    /* Semantic */
    --ngps-primary:          var(--ngps-navy);
    --ngps-primary-contrast: #ffffff;
    --ngps-success:  #1A7A3C;
    --ngps-warning:  #B45309;
    --ngps-danger:   #C0392B;
    --ngps-info:     #1B5CB5;

    /* Type — Noto Sans throughout (GoI standard) */
    --ngps-font:    'Noto Sans', 'Segoe UI', Arial, sans-serif;
    --ngps-display: 'Noto Sans', 'Segoe UI', Arial, sans-serif;

    /* Shape + shadow */
    --ngps-radius:    8px;
    --ngps-radius-lg: 10px;
    --ngps-shadow:    0 2px 8px rgba(0, 48, 135, .10);
    --ngps-focus:     3px solid #E86D1F;
}

/* ------------------------------------------------------------- Base / type */
body, main, main.main {
    font-family: var(--ngps-font);
    color: var(--ngps-ink);
    background-color: var(--ngps-surface) !important;
    background-image: none !important;
    background-attachment: initial !important;
    -webkit-font-smoothing: antialiased;
}
main, main.main {
    font-family: inherit;
    color: inherit;
    background-image: none !important;
}
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--ngps-display);
    letter-spacing: 0;
}
.ngps-font-scale-lg { font-size: 112.5%; }
.ngps-font-scale-sm { font-size: 90%; }

/* Accessible focus (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.btn:focus-visible {
    outline: var(--ngps-focus);
    outline-offset: 2px;
    box-shadow: none;
}

/* Skip-to-main link (WCAG 2.4.1) */
.ngps-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--ngps-ink-deep);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--ngps-radius) 0;
    font-weight: 600;
    text-decoration: none;
}
.ngps-skip-link:focus { left: 0; color: #fff; }

/* ----------------------------------------- Government identity + a11y bar */
.ngps-gov-strip {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #002060;
    color: #E8EFF8;
    font-size: .82rem;
    border-bottom: 3px solid #E86D1F;
}
.ngps-gov-strip a { color: #B8D0EE; text-decoration: none; }
.ngps-gov-strip a:hover { text-decoration: underline; }
.ngps-gov-strip .ngps-gov-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    justify-content: space-between;
    padding: 6px 16px;
    max-width: 1320px;
    margin: 0 auto;
}
.ngps-gov-id {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: .2px;
}
.ngps-gov-id img { height: 28px; width: auto; }

/* Accessibility toolbar */
.ngps-a11y { display: flex; align-items: center; gap: .35rem; }
.ngps-a11y .ngps-a11y-label { opacity: .85; margin-right: .25rem; }
.ngps-a11y button {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
}
.ngps-a11y button:hover { background: rgba(255, 255, 255, .25); }
.ngps-a11y button[aria-pressed="true"] {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--ngps-ink-deep);
    font-weight: 700;
}
.ngps-lang-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,.3);
    margin: 0 .35rem;
}

/* --------------------------------------------------- Bootstrap overrides */
.btn {
    border-radius: var(--ngps-radius);
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn-primary {
    --bs-btn-bg:              var(--ngps-navy);
    --bs-btn-border-color:    var(--ngps-navy);
    --bs-btn-hover-bg:        var(--ngps-navy-dark);
    --bs-btn-hover-border-color: var(--ngps-navy-dark);
    --bs-btn-active-bg:       var(--ngps-navy-dark);
    --bs-btn-active-border-color: var(--ngps-navy-dark);
    background: var(--ngps-navy);
    border: 1px solid var(--ngps-navy);
    color: #fff;
    box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--ngps-navy-dark);
    border-color: var(--ngps-navy-dark);
    color: #fff;
    box-shadow: none;
    transform: none;
    filter: none;
}
.btn-outline-primary {
    color: var(--ngps-navy);
    border: 1.5px solid var(--ngps-navy);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--ngps-navy);
    border-color: var(--ngps-navy);
    color: #fff;
}

.text-primary { color: var(--ngps-navy) !important; }
.bg-primary    { background-color: var(--ngps-navy) !important; background-image: none !important; }
/* The legacy theme recolours every other utility (pink secondary, cyan info,
   purple muted, neon green success) — bring them back to the corporate set. */
.text-secondary { color: #4A5B78 !important; }
.text-success   { color: #1A7A3C !important; }
.text-danger    { color: #C0392B !important; }
.text-warning   { color: #9A5B00 !important; }
.text-info      { color: #0B6283 !important; }
.text-muted     { color: #64748B !important; }
.text-dark      { color: #0F1E3D !important; }
.bg-secondary   { background-color: #4A5B78 !important; color: #fff !important; }
.bg-success     { background-color: #1A7A3C !important; color: #fff; }
.bg-danger      { background-color: #C0392B !important; color: #fff; }
.bg-warning     { background-color: #F2A900 !important; color: #1F2937; }
.bg-info        { background-color: #0B6283 !important; color: #fff; }
.bg-light       { background-color: #F5F8FC !important; }
.bg-dark        { background-color: #0F1E3D !important; }
.border         { border-color: #D9E2EF !important; }
label sub:not(.text-danger) { color: #64748B !important; font-style: normal; }
.badge.bg-primary {
    background-color: var(--ngps-navy) !important;
    background-image: none !important;
    border-radius: 4px;
}
a { color: var(--ngps-navy); }
a:hover { color: var(--ngps-navy-dark); }

/* ------------------------------------------------ Cards & surfaces */
.box2, .card {
    border-radius: var(--ngps-radius);
}
.box2 {
    background-image: none !important;
    animation: none !important;
}
.ngps-stat-card {
    background: var(--ngps-surface);
    border: 1px solid var(--ngps-line);
    border-radius: var(--ngps-radius);
    box-shadow: var(--ngps-shadow);
    transition: box-shadow .15s ease;
}
.ngps-stat-card::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--ngps-navy);
    border-radius: var(--ngps-radius) var(--ngps-radius) 0 0;
    margin: 0;
    position: absolute;
    top: 0; left: 0; right: 0;
}
/* ── Kill UniPay animated border effects ─────────────────────────────────── */
.box, .box2 {
    animation: none !important;
    background-image: none !important;
}
.text-center.box2:hover, .box2:hover {
    transform: none !important;
    transition: box-shadow .15s ease !important;
}
/* ─────────────────────────────────────────────────────────────────────────── */

.ngps-stat-card { position: relative; overflow: hidden; }
.ngps-stat-card:hover { box-shadow: 0 6px 18px rgba(0, 48, 135, .14); transform: none; }
.ngps-stat-card h3 { color: var(--ngps-navy) !important; font-weight: 800; }

.card-box-back {
    background: var(--ngps-surface) !important;
    border: 1px solid var(--ngps-line);
    border-radius: var(--ngps-radius);
    box-shadow: var(--ngps-shadow);
    transition: box-shadow .15s ease;
}
.card-box-back:hover { box-shadow: 0 4px 16px rgba(0, 48, 135, .12); transform: none; }

.card {
    background: var(--ngps-surface);
    border: 1px solid var(--ngps-line);
    border-radius: var(--ngps-radius);
}
.card-body.bg-pat {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid var(--ngps-line) !important;
    border-radius: var(--ngps-radius) !important;
    opacity: 1 !important;
}

/* --- Section headings helper — accent underline */
.ngps-section-title {
    position: relative;
    font-weight: 700;
    color: var(--ngps-ink);
}
.ngps-section-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--ngps-saffron);
    border-radius: 2px;
    margin-top: .55rem;
}
.ngps-section-title.text-center::after { margin-left: auto; margin-right: auto; }

/* --- Section eye-brow labels */
h5.text-danger.text-uppercase,
h6.text-danger.text-uppercase {
    color: var(--ngps-saffron) !important;
    letter-spacing: 1.6px;
    font-weight: 700;
    font-size: .78rem;
    margin-bottom: .35rem;
}

section h2 { color: var(--ngps-ink); font-weight: 700; }

/* --- Section bands */
.bg-back {
    background-color: var(--ngps-surface-alt) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid var(--ngps-line);
    border-bottom: 1px solid var(--ngps-line);
}

/* --- Back-to-top */
.box-loader span { background: var(--ngps-saffron) !important; }

/* ------------------------------------------------ Public Navbar */
.main > .navbar.sticky-top {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 2px solid var(--ngps-navy) !important;
    box-shadow: 0 2px 6px rgba(0, 48, 135, .08) !important;
}
.main > .navbar .nav-link {
    color: var(--ngps-ink) !important;
    font-weight: 600;
    position: relative;
    transition: color .15s ease;
}
.main > .navbar .nav-link:hover,
.main > .navbar .nav-link.active { color: var(--ngps-navy) !important; }
.main > .navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .75rem; right: .75rem;
    bottom: 2px;
    height: 2px;
    background: var(--ngps-saffron);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
}
.main > .navbar .nav-link:hover::after { transform: scaleX(1); }
.main > .navbar .navbar-brand { font-weight: 700; }

/* ==========================================================================
   HERO CAROUSEL — pure CSS government corporate banner (no SVG dependency)
   ========================================================================== */
.ngps-carousel {
    position: relative;
    background: #001244;
}

/* Hide the violet SVG slide images entirely — CSS background replaces them */
.ngps-carousel .ngps-slide-img {
    display: none !important;
}

/* Each slide is a full-height navy CSS banner */
.ngps-carousel .carousel-item {
    min-height: 480px;
    background:
        radial-gradient(ellipse 50% 65% at 78% 50%, rgba(27,92,181,.28) 0%, transparent 70%),
        linear-gradient(118deg, #001244 0%, #003087 50%, #001E6E 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle dot-grid texture */
.ngps-carousel .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

/* Lighter right-side accent band */
.ngps-carousel .carousel-item::before {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 44%;
    background: linear-gradient(to left, rgba(0,48,135,.35) 0%, transparent 100%);
    border-left: 1px solid rgba(255,255,255,.05);
    z-index: 1;
    pointer-events: none;
}

.ngps-carousel .carousel-caption { z-index: 2; }

@media (max-width: 991.98px) { .ngps-carousel .carousel-item { min-height: 400px; } }
@media (max-width: 575.98px) { .ngps-carousel .carousel-item { min-height: 320px; } }

/* Caption: dark panel, saffron left border */
.ngps-carousel .carousel-caption.ngps-caption {
    right: auto;
    left: 7%;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 560px;
    padding: 28px 32px;
    background: rgba(0, 18, 68, .68);
    border-left: 4px solid var(--ngps-saffron);
    border-radius: 0 var(--ngps-radius) var(--ngps-radius) 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
@media (max-width: 767.98px) {
    .ngps-carousel .carousel-caption.ngps-caption {
        left: 4%; right: 4%;
        max-width: none;
        text-align: center;
        padding: 20px;
        border-left: 0;
        border-top: 4px solid var(--ngps-saffron);
        border-radius: var(--ngps-radius);
    }
}
.ngps-caption-title {
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: .75rem;
}
.ngps-caption-text {
    color: #C8D8F0;
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    margin-bottom: 1.4rem;
    line-height: 1.55;
}
.ngps-caption-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 767.98px) { .ngps-caption-actions { justify-content: center; } }
.ngps-caption .btn-light {
    color: var(--ngps-navy);
    font-weight: 600;
    background: #fff;
    border-color: #fff;
}
.ngps-caption .btn-light:hover { background: var(--ngps-surface-alt); }

/* Controls + indicators */
.ngps-carousel .carousel-control-prev,
.ngps-carousel .carousel-control-next { width: 6%; opacity: .9; z-index: 3; }
.ngps-carousel .carousel-control-prev-icon,
.ngps-carousel .carousel-control-next-icon {
    background-color: rgba(0, 18, 68, .55);
    border-radius: 3px;
    padding: 16px;
    background-size: 50% 50%;
}
.ngps-carousel .carousel-indicators { z-index: 3; }
.ngps-carousel .carousel-indicators [data-bs-target] {
    width: 28px; height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, .4);
    border: 0;
}
.ngps-carousel .carousel-indicators .active { background-color: var(--ngps-saffron); }

/* ==========================================================================
   HOW NGPS WORKS — numbered step cards
   ========================================================================== */
.ngps-step-card {
    position: relative;
    border-radius: var(--ngps-radius);
    transition: box-shadow .15s ease;
}
.ngps-step-card:hover {
    box-shadow: 0 6px 20px rgba(0, 48, 135, .12);
}
.ngps-step-badge {
    position: absolute;
    top: 12px; right: 14px;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ngps-line);
    pointer-events: none;
}
.ngps-step-ico {
    width: 52px; height: 52px;
    border-radius: var(--ngps-radius);
    display: flex; align-items: center; justify-content: center;
    background: var(--ngps-surface-band);
    border: 1px solid var(--ngps-line);
    color: var(--ngps-navy);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.ngps-step-card:hover .ngps-step-ico {
    background: var(--ngps-navy);
    border-color: var(--ngps-navy);
    color: #ffffff;
}

/* ==========================================================================
   PORTAL TRANSACTION HIGHLIGHTS — card carousel
   ========================================================================== */
.ngps-portal-carousel { padding-bottom: 46px; }
.ngps-portal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ngps-portal-avatar {
    position: relative;
    width: 72px; height: 72px;
    margin-bottom: 14px;
    border-radius: var(--ngps-radius);
    display: flex; align-items: center; justify-content: center;
    background: var(--ngps-navy);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 48, 135, .20);
}
.ngps-portal-avatar img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 10px; background: #fff;
}
.ngps-portal-mono {
    font-family: var(--ngps-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: .5px;
}
.ngps-portal-avatar img + .ngps-portal-mono { display: none; }
.ngps-portal-avatar.is-mono .ngps-portal-mono { display: block; }
.ngps-portal-name {
    font-weight: 700;
    color: var(--ngps-ink);
    font-size: 1rem;
    margin-bottom: 16px;
}
.ngps-portal-stats { display: flex; gap: 10px; width: 100%; margin-top: auto; }
.ngps-portal-stat {
    flex: 1 1 0; min-width: 0;
    background: var(--ngps-surface-band);
    border: 1px solid var(--ngps-line);
    border-radius: var(--ngps-radius);
    padding: 12px 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.ngps-portal-val {
    font-family: var(--ngps-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ngps-navy);
    line-height: 1.1;
}
.ngps-portal-lbl {
    font-size: .72rem;
    color: var(--ngps-ink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.ngps-portal-lbl i { color: var(--ngps-saffron); margin-right: 3px; }
.ngps-portal-dots { position: absolute; bottom: 6px; margin: 0; }
.ngps-portal-dots [data-bs-target] {
    width: 28px; height: 4px;
    border-radius: 2px; border: 0;
    background-color: var(--ngps-line);
}
.ngps-portal-dots .active { background-color: var(--ngps-navy); }

/* ==========================================================================
   NGPS WORKFLOW — connected timeline
   ========================================================================== */
.ngps-flow {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: flex-start; position: relative;
}
.ngps-flow-step {
    flex: 1 1 0; min-width: 0;
    text-align: center;
    padding: 0 10px; position: relative;
}
.ngps-flow-step::before {
    content: "";
    position: absolute; top: 34px; left: -50%;
    width: 100%; height: 2px;
    background: var(--ngps-line);
    z-index: 0;
}
.ngps-flow-step:first-child::before { display: none; }
.ngps-flow-node {
    position: relative; z-index: 1;
    width: 68px; height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--ngps-navy);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(0, 48, 135, .22);
    transition: box-shadow .18s ease;
}
.ngps-flow-step:hover .ngps-flow-node {
    box-shadow: 0 6px 20px rgba(0, 48, 135, .30);
}
.ngps-flow-num {
    position: absolute; top: -6px; right: -6px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--ngps-saffron);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.ngps-flow-step h5 { font-weight: 700; color: var(--ngps-ink); font-size: .95rem; margin-bottom: .4rem; }
.ngps-flow-step p  { color: var(--ngps-ink-soft); font-size: .84rem; margin: 0; line-height: 1.5; }
@media (max-width: 991.98px) {
    .ngps-flow { flex-direction: column; gap: 24px; padding-left: 6px; }
    .ngps-flow-step {
        display: grid;
        grid-template-columns: 68px 1fr;
        text-align: left; align-items: start;
        gap: 2px 18px; padding: 0;
    }
    .ngps-flow-node { grid-row: 1 / span 3; margin: 0; }
    .ngps-flow-step h5, .ngps-flow-step p { grid-column: 2; }
    .ngps-flow-step::before { top: 68px; left: 33px; width: 2px; height: calc(100% + 24px); }
}

/* ==========================================================================
   CONTACT US — info cards
   ========================================================================== */
.ngps-contact-card {
    border-radius: var(--ngps-radius);
    transition: box-shadow .15s ease;
}
.ngps-contact-card:hover { box-shadow: 0 6px 18px rgba(0, 48, 135, .12); }
.ngps-contact-card a { color: var(--ngps-navy); word-break: break-word; }

/* ==========================================================================
   GIGW-COMPLIANT FOOTER
   ========================================================================== */
.ngps-footer {
    background: var(--ngps-ink-deep);
    color: #C5D3E8;
    font-size: .9rem;
    border-top: 3px solid var(--ngps-saffron);
}
.ngps-footer a { color: #BED0EA; text-decoration: none; }
.ngps-footer a:hover { color: #fff; text-decoration: underline; }
.ngps-footer h5 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.ngps-footer .ngps-footer-top { padding: 36px 0 20px; }
.ngps-footer ul { list-style: none; padding: 0; margin: 0; }
.ngps-footer ul li { margin-bottom: .5rem; }
.ngps-footer-links a { display: inline-flex; align-items: center; gap: .4rem; }
.ngps-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 12px 0;
    font-size: .8rem;
    background: var(--ngps-ink-deep-2);
}
.ngps-footer-bottom .ngps-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
    justify-content: space-between;
    align-items: center;
}
.ngps-emblem-line { display: flex; align-items: center; gap: 10px; }
.ngps-emblem-line img { height: 34px; }

/* ==========================================================================
   ADMIN DASHBOARD (pcoded shell) — NeGD corporate KPI cards
   ========================================================================== */
.pcoded-navbar { background: var(--ngps-ink-deep) !important; }
.pcoded-header.navbar,
.header-navbar .navbar-wrapper { background: var(--ngps-navy) !important; }
/* Single-row header: logo | nav-items (flex:1) | icons — all in one bar. */
.pcoded-header.navbar { height: 56px !important; min-height: 56px; padding: 0 !important; flex-wrap: nowrap !important; }
/* inner navbar-wrapper = flex row so navbar-logo and navbar-container sit side by side */
.header-navbar .navbar-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    min-height: 56px;
    background: var(--ngps-navy) !important;
}
/* Logo: sized to content, no float */
.header-navbar .navbar-wrapper .navbar-logo {
    float: none !important;
    flex-shrink: 0 !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 12px 0 16px !important;
}
.pcoded .pcoded-navbar .pcoded-item > li.active > a,
.pcoded .pcoded-navbar .pcoded-item > li:hover > a { border-left-color: var(--ngps-saffron) !important; }
/* hide the redundant "Navigation" section label at the top of the sidebar */
.pcoded-inner-navbar .pcoded-navigatio-lavel { display: none !important; }

/* Kill the wavy texture on every card layer */
.pcoded .card-box,
.pcoded .tile-box,
.pcoded .tile-box-alt,
.pcoded .widget { background-image: none !important; }

.pcoded .tile-box,
.pcoded .tile-box-alt,
.pcoded .widget {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.pcoded .pcoded-content { background: var(--ngps-surface-alt) !important; }
.pcoded .pcoded-content,
.pcoded .pcoded-inner-content,
.pcoded .main-body,
.pcoded .page-body,
.pcoded fieldset,
.pcoded fieldset > div,
.pcoded .postion-rel { background-image: none !important; }
.pcoded .pcoded-inner-content,
.pcoded .main-body,
.pcoded .page-body { background-color: transparent !important; }

.pcoded .card-box,
.pcoded .card-box.card-bordeer {
    background: #ffffff !important;
    border: 1px solid var(--ngps-line) !important;
    border-radius: var(--ngps-radius) !important;
    box-shadow: var(--ngps-shadow) !important;
}
.pcoded .card-bordeer {
    overflow: hidden;
    transition: box-shadow .15s ease;
}
.pcoded .card-bordeer:hover {
    box-shadow: 0 4px 16px rgba(0, 48, 135, .14) !important;
    border-color: var(--ngps-navy-light) !important;
}
.pcoded .card-content,
.pcoded .tile-content-wrapper,
.pcoded .tile-content-wrapper ul { background: transparent !important; }

/* KPI numbers */
.pcoded .card-content h4,
.pcoded .tile-content-wrapper h4,
.pcoded .card-content .count-num,
.pcoded .card-content h4[class*="color"] {
    color: var(--ngps-navy) !important;
    font-weight: 800 !important;
}
.pcoded .card-content .Amount { color: var(--ngps-navy-light) !important; }
.pcoded .card-content p,
.pcoded .tile-content-wrapper p {
    color: var(--ngps-ink-soft) !important;
    font-weight: 500;
}

/* Neutralize coloured gradient footer bars */
.pcoded a.tile-footer,
.pcoded a.tile-footer[class*="bg-"],
.pcoded .tile-footer.title-footer {
    background: var(--ngps-navy) !important;
    background-image: none !important;
    color: #fff;
    border-top: 1px solid var(--ngps-line) !important;
    border-radius: 0 0 var(--ngps-radius) var(--ngps-radius) !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    padding: 9px 12px !important;
    font-size: .76rem !important;
    font-weight: 500;
    letter-spacing: .2px;
    text-align: center;
}
.pcoded a.tile-footer:hover {
    background: var(--ngps-navy-dark) !important;
    color: #fff !important;
}

/* Section legends */
.pcoded fieldset { border: 0 !important; padding: 0 !important; margin-bottom: 1.25rem; }
.pcoded fieldset > legend {
    color: var(--ngps-navy) !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    width: auto !important;
    border: 0 !important;
    border-bottom: 2px solid var(--ngps-line) !important;
    padding: 0 0 6px 0 !important;
    margin-bottom: 1rem !important;
}

.pcoded .card { background: #ffffff; border: 1px solid var(--ngps-line); }

/* KPI card icon chip */
.pcoded .card-box .card-content {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    padding: 32px 16px !important;
}
.pcoded .card-content .icon {
    flex: 0 0 auto;
    width: 54px; height: 54px;
    border-radius: var(--ngps-radius);
    background: var(--ngps-surface-band) !important;
    border: 1px solid var(--ngps-line);
    box-shadow: none;
    display: flex; align-items: center; justify-content: center;
    margin: 0 !important;
}
.pcoded .card-content .icon img {
    width: 26px; height: 26px; object-fit: contain; margin: 0 !important;
}
.pcoded .card-bordeer:hover .card-content .icon {
    background: var(--ngps-navy) !important;
    border-color: var(--ngps-navy) !important;
}
.pcoded .card-bordeer:hover .card-content .icon img { filter: brightness(0) invert(1); }
.pcoded .card-content .tile-content-wrapper { flex: 1 1 auto; min-width: 0; }
.pcoded .tile-content-wrapper ul {
    display: flex; flex-wrap: wrap;
    margin: 0 !important; padding: 0 !important; list-style: none;
}
.pcoded .tile-content-wrapper ul li {
    flex: 1 1 0; min-width: 0;
    text-align: center;
    padding: 2px 10px;
    border-left: 1px solid var(--ngps-line);
}
.pcoded .tile-content-wrapper ul li:first-child {
    border-left: 0; text-align: left; padding-left: 0;
}
.pcoded .tile-content-wrapper h4 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1.1;
    margin: 0 0 4px !important;
    white-space: nowrap;
    color: var(--ngps-navy) !important;
}
.pcoded .tile-content-wrapper p {
    font-size: .68rem !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin: 0 !important;
    line-height: 1.3;
    color: var(--ngps-ink-soft) !important;
}
.pcoded .card-box .card-content .tile-footer {
    flex: 1 0 100%;
    margin: 2px -16px -14px;
}

/* DataTables */
.pcoded div.dt-buttons { gap: 6px; display: inline-flex; flex-wrap: wrap; }
.pcoded .dt-button,
.pcoded div.dt-buttons > .dt-button,
.pcoded .dt-buttons .btn,
.pcoded button.dt-button,
.pcoded a.dt-button {
    background: #ffffff !important;
    background-image: none !important;
    color: var(--ngps-navy) !important;
    border: 1px solid var(--ngps-line) !important;
    border-radius: var(--ngps-radius) !important;
    box-shadow: none !important;
    font-weight: 600 !important;
    font-size: .8rem !important;
    padding: .34rem .72rem !important;
    margin: 0 !important;
}
.pcoded .dt-button:hover,
.pcoded .dt-button:focus,
.pcoded .dt-button.active {
    background: var(--ngps-navy) !important;
    color: #ffffff !important;
    border-color: var(--ngps-navy) !important;
}
.pcoded table.dataTable { border-collapse: separate !important; border-spacing: 0; }
.pcoded table.dataTable thead th,
.pcoded table.dataTable thead td {
    background: var(--ngps-navy) !important;
    color: #ffffff !important;
    border-color: var(--ngps-navy-dark) !important;
    font-weight: 600;
    font-size: .82rem;
    vertical-align: middle;
}
.pcoded table.dataTable thead th:first-child { border-top-left-radius: var(--ngps-radius); }
.pcoded table.dataTable thead th:last-child  { border-top-right-radius: var(--ngps-radius); }
.pcoded table.dataTable tbody td { font-size: .84rem; color: var(--ngps-ink); }
.pcoded table.dataTable tbody tr:nth-child(even) { background: var(--ngps-surface-alt); }
.pcoded table.dataTable tbody tr:hover { background: var(--ngps-surface-band); }
.pcoded .dataTables_filter input,
.pcoded .dataTables_length select {
    border: 1px solid var(--ngps-line) !important;
    border-radius: var(--ngps-radius) !important;
    padding: .3rem .55rem !important;
    outline: none;
}
.pcoded .dataTables_paginate .paginate_button {
    border-radius: var(--ngps-radius) !important;
    border: 1px solid transparent !important;
    padding: .25rem .6rem !important;
    color: var(--ngps-navy) !important;
}
.pcoded .dataTables_paginate .paginate_button.current,
.pcoded .dataTables_paginate .paginate_button.current:hover {
    background: var(--ngps-navy) !important;
    color: #ffffff !important;
    border-color: var(--ngps-navy) !important;
}
.pcoded .dataTables_paginate .paginate_button:hover {
    background: var(--ngps-surface-band) !important;
    color: var(--ngps-navy) !important;
    border-color: var(--ngps-line) !important;
}
.pcoded .dataTables_info,
.pcoded .dataTables_length,
.pcoded .dataTables_filter label { color: var(--ngps-ink-soft); font-size: .82rem; }

/* ------------------------------------------------------ High-contrast mode */
body.ngps-contrast { background: #000 !important; color: #fff !important; }
body.ngps-contrast a,
body.ngps-contrast .text-primary,
body.ngps-contrast .text-800,
body.ngps-contrast .text-200,
body.ngps-contrast h1, body.ngps-contrast h2, body.ngps-contrast h3,
body.ngps-contrast h4, body.ngps-contrast h5, body.ngps-contrast p,
body.ngps-contrast span, body.ngps-contrast li, body.ngps-contrast label { color: #ffff00 !important; }
body.ngps-contrast .btn-primary,
body.ngps-contrast .bg-primary,
body.ngps-contrast .ngps-footer,
body.ngps-contrast .ngps-gov-strip,
body.ngps-contrast section,
body.ngps-contrast .box2,
body.ngps-contrast .ngps-stat-card,
body.ngps-contrast .card { background: #000 !important; border-color: #ffff00 !important; }
body.ngps-contrast .btn-primary { color: #000 !important; background: #ffff00 !important; border-color: #ffff00 !important; }
body.ngps-contrast img.bg-holder,
body.ngps-contrast .bg-holder { opacity: .25; }

/* -------------------------------------------------------------- Responsive */
@media (max-width: 767.98px) {
    .ngps-gov-strip .ngps-gov-inner { justify-content: center; }
    .ngps-a11y .ngps-a11y-label { display: none; }
    .ngps-footer-bottom .ngps-meta { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   PCODED HEADER — Module nav links + redesigned app popup + user profile
   ========================================================================== */

/* ── Module navigation links in header bar ───────────────────────────────── */
.ngps-nav-module {
    float: left;
    line-height: 1 !important;
    padding: 0 !important;
}
.ngps-nav-module > a {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 0 11px !important;
    height: 56px;
    font-size: .78rem !important;
    font-weight: 600;
    color: rgba(255,255,255,.82) !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
    white-space: nowrap;
    line-height: 56px;
}
.ngps-nav-module > a:hover {
    color: #fff !important;
    border-bottom-color: #E86D1F;
    background: rgba(255,255,255,.07);
}
.ngps-nav-module > a i { font-size: .85rem; line-height: 1; }
.ngps-nav-module > a span { display: none; }
@media (min-width: 1200px) { .ngps-nav-module > a span { display: inline; } }
@media (min-width: 992px) and (max-width: 1199px) {
    .ngps-nav-module > a { padding: 0 8px !important; }
}

/* ── Fullscreen icon colour fix ───────────────────────────────────────────── */
.pcoded-header .nav-left > li > a {
    color: rgba(255,255,255,.85) !important;
}
.pcoded-header .nav-left > li > a:hover { color: #fff !important; }

/* ── App Switcher popup — modern card grid ────────────────────────────────── */
.ngps-app-switcher-li .more_app-icon i {
    font-size: 1.05rem;
    color: rgba(255,255,255,.88);
}
.ngps-app-menu {
    width: 286px !important;
    min-width: 286px !important;
    max-width: 286px !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 36px rgba(0,32,96,.20) !important;
    border: 1px solid rgba(0,48,135,.10) !important;
    overflow: hidden;
    right: 0 !important;
    left: auto !important;
}
.ngps-app-menu-header {
    background: var(--ngps-navy);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 10px 16px;
}
.ngps-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e0e9f7;
}
.ngps-app-tile-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 6px 14px !important;
    background: #fff;
    text-decoration: none !important;
    color: #0D1E3D !important;
    transition: background .14s ease, color .14s ease;
    gap: 8px;
    border: none !important;
    border-top: none !important;
    line-height: 1 !important;
}
.ngps-app-tile-item:hover {
    background: #eaf0fa !important;
    color: #003087 !important;
}
.ngps-app-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eaf0fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #003087;
    transition: background .14s ease, color .14s ease;
    flex-shrink: 0;
}
.ngps-app-tile-item:hover .ngps-app-tile-icon {
    background: #003087;
    color: #fff;
}
.ngps-app-tile-item > span {
    font-size: .68rem !important;
    font-weight: 600 !important;
    text-align: center;
    line-height: 1.3 !important;
    color: inherit !important;
    white-space: normal;
}
/* override default notification-view list styles inside the new grid popup */
.ngps-app-menu ul { display: none !important; }

/* ── User profile toggle ──────────────────────────────────────────────────── */
.ngps-user-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}
.ngps-user-toggle .img-radius {
    width: 32px !important;
    height: 32px !important;
    border: 2px solid rgba(255,255,255,.35) !important;
    object-fit: cover;
    flex-shrink: 0;
}
.ngps-user-name {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ngps-user-toggle .feather.icon-chevron-down {
    color: rgba(255,255,255,.6);
    font-size: .65rem;
}

/* Profile dropdown header row */
.ngps-profile-header {
    background: var(--ngps-navy) !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border-bottom: none !important;
    cursor: default;
    pointer-events: none;
}
.ngps-profile-header i { color: rgba(255,255,255,.75); font-size: .9rem; }
.ngps-profile-header strong { color: #fff; font-size: .88rem; font-weight: 700; flex: 1; }
.ngps-role-badge {
    display: inline-block;
    background: rgba(255,255,255,.18);
    color: #fff !important;
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
}

/* hide legacy PCODED blocks that no longer appear in this layout */
.header-navbar .name-with-degi { display: none !important; }
.header-navbar .degignation { display: none !important; }
/* hide the portal heading li in nav-left — the inline nav items provide context */
.header-navbar .navbar-container .nav-left li:nth-child(2) { display: none !important; }
/* mobile-only elements: ensure they never show on desktop */
.header-navbar .navbar-wrapper .navbar-logo .mobile-options,
.header-navbar .navbar-wrapper .navbar-logo .mobile-search { display: none !important; }

/* ── navbar-container fills the rest of the header (flex:1) and is itself a flex row ── */
.pcoded-header .navbar-wrapper .navbar-container {
    flex: 1 1 0 !important;
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
    width: auto !important;   /* override container-fluid width:100% */
    max-width: none !important;
    min-width: 0;
}
.pcoded-header .navbar-wrapper .navbar-container .nav-left,
.pcoded-header .navbar-wrapper .navbar-container .nav-right {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0;
}

/* ==========================================================================
   HORIZONTAL DROPDOWN NAV — inline in pcoded-header bar (between nav-left and nav-right)
   ========================================================================== */
/* Nav row is a flex child of .navbar-container; flex:1 fills the center space. */
.ngps-header-nav-row {
    flex: 1 1 0;
    align-self: stretch;
    display: flex;
    align-items: stretch;
    overflow: visible;
    background: transparent;
    min-width: 0;
}

/* Nav list */
.ngps-horiz-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 4px;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

/* Top-level nav items */
.ngps-horiz-nav-item {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}
.ngps-horiz-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.85) !important;
    text-decoration: none !important;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color .14s ease, border-color .14s ease, background .14s ease;
    cursor: pointer;
}
.ngps-horiz-nav-link i:not(.ngps-caret) { font-size: .8rem; }
.ngps-horiz-nav-link:hover,
.ngps-horiz-nav-item:hover > .ngps-horiz-nav-link {
    color: #fff !important;
    border-bottom-color: #E86D1F;
    background: rgba(255,255,255,.1);
}
.ngps-caret { font-size: .62rem !important; margin-left: 2px; }

/* First-level dropdown */
.ngps-horiz-dd {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 24px rgba(0,32,96,.16);
    border: 1px solid rgba(0,48,135,.10);
    border-top: 3px solid #E86D1F;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    z-index: 1050;
}
.ngps-horiz-dd.ngps-dd-open { display: block; }
.ngps-horiz-nav-item:hover > .ngps-horiz-dd { display: block; }

.ngps-horiz-dd-item { position: relative; }
.ngps-horiz-dd-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: .8rem;
    color: #0D1E3D !important;
    text-decoration: none !important;
    transition: background .12s ease, color .12s ease;
    white-space: nowrap;
    cursor: pointer;
}
.ngps-horiz-dd-link:hover {
    background: #EAF0FA;
    color: #003087 !important;
}
.ngps-sub-arrow { font-size: .65rem !important; color: #8FADD0; flex-shrink: 0; }

/* Second-level (submenu) */
.ngps-horiz-sub-dd {
    display: none;
    position: absolute;
    left: 100%;
    top: -4px;
    min-width: 200px;
    background: #fff;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 6px 24px rgba(0,32,96,.16);
    border: 1px solid rgba(0,48,135,.10);
    border-left: 3px solid #E86D1F;
    list-style: none;
    padding: 4px 0;
    margin: 0;
    z-index: 1060;
}
.ngps-horiz-sub-dd.ngps-dd-open { display: block; }

/* Divider between first level items */
.ngps-horiz-dd-item + .ngps-horiz-dd-item {
    border-top: 1px solid #E8F0FE;
}

/* ==========================================================================
   MARGIN-TOP CORRECTION — remove gray gap between header and content
   Header is now single-row (56px). gov-strip (40px) is in page flow above.
   Effective offset = 56 - 40 = 16px for both modes.
   JS adjustOffset() re-measures on every toggle for precision.
   ========================================================================== */
.pcoded-main-container { margin-top: 56px !important; }

/* CSS pre-flight: sidebar top before JS runs. PCODED JS sets top=headerH (56px) which is
   wrong — it must be govH(40)+headerH(56)=96px. JS adjustOffset() corrects it on load. */
.pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"] {
    top: 96px !important;
}

/* ── Sidebar toggle: ngps-nav-top = sidebar hidden, full-width content ── */
#pcoded.ngps-nav-top .pcoded-navbar          { display: none !important; width: 0 !important; }
#pcoded.ngps-nav-top .pcoded-content         { margin-left: 0 !important; }
#pcoded.ngps-nav-top .pcoded-main-container  { margin-left: 0 !important; margin-top: 56px !important; }

/* ==========================================================================
   CARD CONTAINERS — Navy gradient header + saffron accent border
   Covers: .card (Bootstrap), .card-box.card-bordeer (PCODED), fieldset>legend
   ========================================================================== */

/* Bootstrap .card (used by Create_User, Branch_Registration, etc.) */
.pcoded .card {
    border: 1px solid var(--ngps-line) !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 14px rgba(0,48,135,.08) !important;
    background: #fff !important;
    margin-bottom: 1.5rem;
    overflow: visible; /* visible so multiselect/dropdown panels are not clipped */
}
.pcoded .card-header {
    background: linear-gradient(118deg, #002F87 55%, #1B5CB5 100%) !important;
    border-bottom: 3px solid #E86D1F !important;
    border-radius: 10px 10px 0 0 !important; /* re-clip top corners since card is now overflow:visible */
    padding: 13px 22px !important;
    overflow: hidden; /* clips the gradient to the rounded header corners */
}
.pcoded .card-header h5,
.pcoded .card-header h4,
.pcoded .card-header h3 {
    color: #fff !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcoded .card-header h5 i,
.pcoded .card-header h4 i { color: rgba(255,255,255,.82) !important; }
.pcoded .card-block,
.pcoded .card-body {
    padding: 22px 22px 10px !important;
    background: #fff !important;
    background-image: none !important;
}

/* Fieldset (Signatory, SFTP, etc. — full-box card treatment) */
.pcoded fieldset {
    border: 1px solid var(--ngps-line) !important;
    border-radius: 10px !important;
    padding: 0 !important;
    margin-bottom: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,48,135,.08);
    overflow: visible; /* allow dropdown panels inside fieldsets to overflow */
}
.pcoded fieldset > legend {
    background: linear-gradient(118deg, #002F87 55%, #1B5CB5 100%) !important;
    border-bottom: 3px solid #E86D1F !important;
    border-top: 0 !important; border-left: 0 !important; border-right: 0 !important;
    border-radius: 10px 10px 0 0 !important; /* re-clip top corners since fieldset is now overflow:visible */
    overflow: hidden;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: .88rem !important;
    letter-spacing: .3px;
    width: 100% !important;
    padding: 13px 22px !important;
    margin-bottom: 20px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcoded fieldset > legend i { color: rgba(255,255,255,.82) !important; }
.pcoded fieldset .row,
.pcoded fieldset > div { padding: 0 12px; }

/* card-box.card-bordeer (PCODED's own variant) */
.pcoded .card-box.card-bordeer {
    border-radius: 10px !important;
    padding: 0 !important;
    overflow: visible; /* allow dropdown panels to overflow */
    background: #fff !important;
}
.pcoded .card-box .card-header,
.pcoded .card-box .block-header {
    background: linear-gradient(118deg, #002F87 55%, #1B5CB5 100%) !important;
    border-bottom: 3px solid #E86D1F !important;
    color: #fff !important;
    padding: 13px 22px !important;
    border-radius: 10px 10px 0 0 !important;
    overflow: hidden;
    margin: 0 !important;
}
.pcoded .card-box .card-header h5,
.pcoded .card-box .block-header h5 {
    color: #fff !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}
.pcoded .card-box .card-block,
.pcoded .card-box .card-body {
    padding: 22px 22px 10px !important;
    background: #fff !important;
    background-image: none !important;
}

/* ==========================================================================
   LABELS — Clear hierarchy: small-caps weight, navy-slate colour
   ========================================================================== */
/* :not(.switch) prevents these overrides from breaking the toggle-switch label */
.pcoded label:not(.switch),
.pcoded .form-group > label:not(.switch),
.pcoded .col-form-label,
.pcoded label.block {
    font-size: .76rem !important;
    font-weight: 700 !important;
    color: #2D4268 !important;
    margin-bottom: .28rem !important;
    display: inline-block !important; /* inline-block lets tooltip spans flow after the label on the same line */
    vertical-align: middle !important; /* prevent taller siblings (toggle) from raising the label in the line box */
    letter-spacing: .12px;
    line-height: 1.45;
}
/* Required asterisk */
.pcoded label .text-danger,
.pcoded label > span[class*="danger"] {
    color: #C0392B !important;
    font-weight: 700;
    margin-left: 1px;
}

/* ==========================================================================
   FORM GROUP spacing
   ========================================================================== */
.pcoded .form-group {
    margin-bottom: 1.05rem;
    position: relative;
}

/* ==========================================================================
   ALL FORM CONTROLS (.form-control targets ASP.NET TextBox, DropDownList, etc.)
   ========================================================================== */
.pcoded .form-control {
    height: 38px !important;
    padding: .44rem .72rem !important;
    font-size: .82rem !important;
    font-weight: 500;
    color: var(--ngps-ink) !important;
    background: #ffffff !important;
    border: 1.5px solid #B8CBDF !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0,48,135,.05) !important;
    transition: border-color .16s ease, box-shadow .16s ease !important;
    line-height: 1.45;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}
/* Textarea overrides */
.pcoded textarea.form-control {
    height: auto !important;
    min-height: 84px;
    resize: vertical;
    padding: .55rem .72rem !important;
}
/* Select — custom chevron, removes browser default */
.pcoded select.form-control {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpolyline points='1,1 6,6 11,1' fill='none' stroke='%23002F87' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right .72rem center !important;
    padding-right: 2.25rem !important;
    cursor: pointer;
}
/* Focus — navy border + soft glow */
.pcoded .form-control:focus {
    outline: none !important;
    border-color: #002F87 !important;
    box-shadow: 0 0 0 3px rgba(0,47,135,.14), 0 1px 4px rgba(0,47,135,.10) !important;
    background: #ffffff !important;
}
/* Readonly */
.pcoded .form-control[readonly] {
    background: #F1F5FB !important;
    color: var(--ngps-ink-soft) !important;
    border-color: #CDD8E8 !important;
    cursor: default;
    box-shadow: none !important;
}
/* Disabled */
.pcoded .form-control:disabled,
.pcoded select.form-control:disabled {
    background: #F1F5FB !important;
    color: #8898AA !important;
    opacity: 1 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}
/* Placeholder */
.pcoded .form-control::placeholder {
    color: #A8BCCE !important;
    font-weight: 400;
    font-size: .79rem;
}
/* Validation states */
.pcoded .has-error .form-control { border-color: #C0392B !important; box-shadow: 0 0 0 3px rgba(192,57,43,.11) !important; }
.pcoded .has-success .form-control { border-color: #1A7A3C !important; }

/* ==========================================================================
   INPUT GROUPS (prefix / suffix icons or text)
   ========================================================================== */
.pcoded .input-group .form-control {
    border-radius: 6px 0 0 6px !important;
    border-right-width: 0 !important;
}
.pcoded .input-group-text,
.pcoded .input-group-addon {
    background: #EBF0F9 !important;
    border: 1.5px solid #B8CBDF !important;
    border-left: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    color: var(--ngps-ink-soft) !important;
    font-size: .82rem;
    padding: .44rem .75rem;
    line-height: 1.45;
}

/* ==========================================================================
   BUTTONS — consolidated, professional government palette
   ========================================================================== */
.pcoded .btn {
    font-size: .8rem !important;
    font-weight: 600 !important;
    padding: .44rem 1.15rem !important;
    border-radius: 6px !important;
    letter-spacing: .2px;
    transition: background .14s ease, border-color .14s ease, box-shadow .14s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pcoded .btn i,
.pcoded .btn .fa,
.pcoded .btn .feather { font-size: .82rem; }
.pcoded .btn-success { background: #1A7A3C !important; border-color: #1A7A3C !important; color: #fff !important; }
.pcoded .btn-success:hover { background: #155F30 !important; border-color: #155F30 !important; }
.pcoded .btn-primary { background: var(--ngps-navy) !important; border-color: var(--ngps-navy) !important; color: #fff !important; }
.pcoded .btn-primary:hover { background: var(--ngps-navy-dark) !important; border-color: var(--ngps-navy-dark) !important; }
.pcoded .btn-info { background: #1B5CB5 !important; border-color: #1B5CB5 !important; color: #fff !important; }
.pcoded .btn-info:hover { background: #134A96 !important; border-color: #134A96 !important; }
.pcoded .btn-danger { background: #C0392B !important; border-color: #C0392B !important; color: #fff !important; }
.pcoded .btn-danger:hover { background: #A93226 !important; border-color: #A93226 !important; }
.pcoded .btn-warning { background: #D97706 !important; border-color: #D97706 !important; color: #fff !important; }
.pcoded .btn-warning:hover { background: #B45309 !important; border-color: #B45309 !important; }
.pcoded .btn-default,
.pcoded .btn-secondary {
    background: #fff !important;
    border: 1.5px solid #B8CBDF !important;
    color: var(--ngps-ink) !important;
    box-shadow: 0 1px 3px rgba(0,48,135,.06) !important;
}
.pcoded .btn-default:hover,
.pcoded .btn-secondary:hover { background: #EBF0F9 !important; }

/* Action buttons aligned right in forms */
.pcoded .btn-row,
.pcoded .form-actions { text-align: right; padding: 6px 0 6px; border-top: 1px solid var(--ngps-line); margin-top: 8px; }
.pcoded center .btn { margin: 0 4px; }

/* ==========================================================================
   PAGE HEADER & BREADCRUMB — saffron left-bar accent
   ========================================================================== */
.pcoded .page-header {
    background: #EBF1FB !important;
    background-image: none !important;
    border-left: 4px solid var(--ngps-saffron);
    border-radius: 0 6px 6px 0;
    padding: 9px 18px !important;
    margin-bottom: 1.4rem;
    box-shadow: none !important;
}
.pcoded .page-header-breadcrumb { padding: 0; }
.pcoded .breadcrumb-title {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    font-size: .77rem;
}
.pcoded .breadcrumb-title li a,
.pcoded .breadcrumb-title a {
    color: #4A6080 !important;
    font-weight: 500;
    text-decoration: none !important;
}
.pcoded .breadcrumb-title a:hover { color: var(--ngps-navy) !important; text-decoration: underline !important; }
.pcoded .breadcrumb-title li:last-child > a { color: var(--ngps-navy) !important; font-weight: 700; }

/* ==========================================================================
   SECTION DIVIDERS within forms
   ========================================================================== */
.pcoded .col-form-hr,
.pcoded hr.ngps-divider {
    border: 0;
    border-top: 1px solid var(--ngps-line);
    margin: .75rem 0 1rem;
}

/* ==========================================================================
   DataTables search input (inside card-box) — should match form-control style
   ========================================================================== */
.pcoded .dataTables_filter input[type="search"],
.pcoded .dataTables_filter input {
    height: 34px !important;
    padding: .35rem .65rem !important;
    font-size: .8rem !important;
    border: 1.5px solid #B8CBDF !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0,48,135,.05) !important;
    color: var(--ngps-ink) !important;
    background: #fff !important;
}
.pcoded .dataTables_filter input:focus {
    border-color: #002F87 !important;
    box-shadow: 0 0 0 3px rgba(0,47,135,.13) !important;
    outline: none !important;
}
.pcoded .dataTables_length select {
    height: 34px !important;
    padding: .35rem 2rem .35rem .65rem !important;
    font-size: .8rem !important;
    border: 1.5px solid #B8CBDF !important;
    border-radius: 6px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpolyline points='1,1 6,6 11,1' fill='none' stroke='%23002F87' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right .65rem center !important;
    cursor: pointer;
}

/* ==========================================================================
   corp14 — Toggle switch + tooltip redesign + 20X form enhancements
   ========================================================================== */

/* ── Label + tooltip inline alignment ────────────────────────────────────── */
/* Wrapper for label+tooltip that appears in many fields */
.pcoded .ngps-field-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: .3rem;
}

/* ── Tooltip ? icon — circular info badge ─────────────────────────────────── */
.pcoded span[data-toggle="tooltip"],
.pcoded a[data-toggle="tooltip"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 17px !important;
    height: 17px !important;
    background: #EBF2FB !important;
    border: 1.5px solid #B8CBDF !important;
    border-radius: 50% !important;
    vertical-align: middle !important;
    margin-left: 4px !important;
    cursor: help !important;
    flex-shrink: 0;
    text-decoration: none !important;
    transition: background .15s, border-color .15s !important;
    line-height: 1 !important;
}
.pcoded span[data-toggle="tooltip"] i,
.pcoded a[data-toggle="tooltip"] i,
.pcoded span[data-toggle="tooltip"] .fa,
.pcoded a[data-toggle="tooltip"] .fa {
    font-size: 9px !important;
    color: #1B5CB5 !important;
    line-height: 1 !important;
    display: block !important;
}
.pcoded span[data-toggle="tooltip"]:hover,
.pcoded a[data-toggle="tooltip"]:hover {
    background: var(--ngps-navy, #002F87) !important;
    border-color: var(--ngps-navy, #002F87) !important;
}
.pcoded span[data-toggle="tooltip"]:hover i,
.pcoded a[data-toggle="tooltip"]:hover i,
.pcoded span[data-toggle="tooltip"]:hover .fa,
.pcoded a[data-toggle="tooltip"]:hover .fa {
    color: #fff !important;
}

/* ── Toggle switch container — remove dashed box ─────────────────────────── */
.pcoded .border-switch {
    background: transparent !important;
    border: none !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important; /* aligns the whole toggle row with adjacent label text */
    gap: 10px;
    min-height: 30px;
}

/* Toggle wrapper label (the .switch label contains the hidden checkbox) */
.pcoded label.switch {
    position: relative !important;
    display: inline-block !important;
    width: 46px !important;
    height: 26px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    flex-shrink: 0;
    font-size: inherit !important;
    color: inherit !important;
    font-weight: inherit !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
}

/* Hidden native checkbox */
.pcoded .switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}

/* Track */
.pcoded .switch .slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: #CDD6E0 !important;
    border-radius: 34px !important;
    transition: background .2s ease !important;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.1) !important;
}

/* Knob */
.pcoded .switch .slider::before {
    content: "" !important;
    position: absolute !important;
    height: 20px !important;
    width: 20px !important;
    left: 3px !important;
    bottom: 3px !important;
    background: #fff !important;
    border-radius: 50% !important;
    transition: transform .2s ease !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.22) !important;
}

/* OFF state — muted grey already set above */

/* ON state — government green (accessible, clear "active") */
.pcoded .switch input:checked + .slider {
    background: #1A7A3C !important;
}
.pcoded .switch input:checked + .slider::before {
    transform: translateX(20px) !important;
}

/* Focus ring */
.pcoded .switch input:focus + .slider {
    box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 0 3px rgba(26,122,60,.22) !important;
}

/* ON/OFF text label next to the toggle */
.pcoded .border-switch::after {
    content: "No";
    font-size: .72rem;
    font-weight: 700;
    color: #8898AA;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1;
}
/* When the checkbox inside is checked, show "Yes" in green */
.pcoded .border-switch:has(input:checked)::after {
    content: "Yes";
    color: #1A7A3C;
}

/* ── Required field asterisk styling ─────────────────────────────────────── */
.pcoded label:not(.switch) .text-danger,
.pcoded label:not(.switch) span.required {
    color: #C0392B !important;
    font-size: .85em;
    margin-left: 2px;
    font-weight: 700;
}

/* ── Readonly / disabled inputs ──────────────────────────────────────────── */
.pcoded .form-control[readonly],
.pcoded .form-control:disabled {
    background: #F4F7FB !important;
    color: #6B7A99 !important;
    border-color: #D5DFF0 !important;
    cursor: not-allowed;
}

/* ── Input add-on groups (input-group) ───────────────────────────────────── */
.pcoded .input-group .input-group-addon,
.pcoded .input-group .input-group-text {
    background: #EBF2FB !important;
    border: 1.5px solid #B8CBDF !important;
    border-radius: 6px 0 0 6px !important;
    color: #2D4268 !important;
    font-size: .82rem !important;
    padding: .45rem .75rem !important;
    height: 38px !important;
    display: flex;
    align-items: center;
}
.pcoded .input-group .form-control:not(:first-child) {
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
}

/* ── Help / hint text below fields ───────────────────────────────────────── */
.pcoded .help-block,
.pcoded .form-text,
.pcoded small.form-text {
    font-size: .72rem !important;
    color: #7A91B5 !important;
    margin-top: .2rem !important;
    display: block;
    line-height: 1.4;
}

/* ── Inline radio / checkbox lists ───────────────────────────────────────── */
.pcoded .radio label,
.pcoded .checkbox label,
.pcoded .radio-inline,
.pcoded .checkbox-inline {
    font-size: .8rem !important;
    color: #3D4E6C !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding-left: 22px;
    position: relative;
    display: inline-block !important;
    letter-spacing: normal !important;
    margin-bottom: 0 !important;
}

/* ── Card action footer (buttons row at bottom of card) ──────────────────── */
.pcoded .card-footer,
.pcoded .card-block .form-actions {
    background: #F7F9FC !important;
    border-top: 1px solid #DDE6F0 !important;
    padding: .85rem 1.25rem !important;
    border-radius: 0 0 8px 8px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Form section dividers inside card-block ─────────────────────────────── */
.pcoded .card-block hr,
.pcoded .card-body hr {
    border: none !important;
    border-top: 1.5px solid #DDE6F0 !important;
    margin: 1rem 0 !important;
}

/* ── Validation state colours ─────────────────────────────────────────────── */
.pcoded .has-error .form-control {
    border-color: #C0392B !important;
    box-shadow: 0 0 0 3px rgba(192,57,43,.12) !important;
}
.pcoded .has-success .form-control {
    border-color: #1A7A3C !important;
    box-shadow: 0 0 0 3px rgba(26,122,60,.12) !important;
}
.pcoded .has-warning .form-control {
    border-color: #D4A017 !important;
    box-shadow: 0 0 0 3px rgba(212,160,23,.12) !important;
}
.pcoded .has-error .help-block   { color: #C0392B !important; }
.pcoded .has-success .help-block { color: #1A7A3C !important; }
.pcoded .has-warning .help-block { color: #D4A017 !important; }

/* ── Alert / notice boxes inside cards ───────────────────────────────────── */
.pcoded .alert {
    border-radius: 6px !important;
    font-size: .82rem !important;
    padding: .65rem 1rem !important;
    border-width: 0 0 0 4px !important;
    border-style: solid !important;
}
.pcoded .alert-info    { background: #EBF5FB !important; border-color: #1B5CB5 !important; color: #1B3A72 !important; }
.pcoded .alert-success { background: #EAF7EE !important; border-color: #1A7A3C !important; color: #144D27 !important; }
.pcoded .alert-warning { background: #FEF9E7 !important; border-color: #D4A017 !important; color: #7D5A07 !important; }
.pcoded .alert-danger  { background: #FDEDEB !important; border-color: #C0392B !important; color: #7B241C !important; }

/* ── Badges / status pills in tables and forms ───────────────────────────── */
.pcoded .badge,
.pcoded .label {
    border-radius: 20px !important;
    font-size: .68rem !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
    padding: .25em .65em !important;
    text-transform: uppercase;
}
.pcoded .badge-success, .pcoded .label-success { background: #D4EFDF !important; color: #145A32 !important; }
.pcoded .badge-primary, .pcoded .label-primary { background: #D6E4F7 !important; color: #1A3C6E !important; }
.pcoded .badge-danger,  .pcoded .label-danger  { background: #FADADD !important; color: #922B21 !important; }
.pcoded .badge-warning, .pcoded .label-warning { background: #FEF5CA !important; color: #7D5A07 !important; }
.pcoded .badge-info,    .pcoded .label-info    { background: #D6EAF8 !important; color: #1B4F72 !important; }
.pcoded .badge-default, .pcoded .label-default { background: #E8ECF4 !important; color: #3D4E6C !important; }

/* ── jQuery Validate success/error icons (ValidationClassesNewV2.js) ─────── */
/*
 * Both indicators are position:absolute so they take ZERO flow space —
 * no layout shift, no pushing other controls down.
 *
 * Success: small green icon overlaid inside the input's right side.
 *   bottom: 10px + icon-height/2 (8.5px) = 18.5px from form-group bottom
 *   ≈ vertical centre of a 38px input that sits at the bottom of form-group.
 *   right: 42px keeps it clear of the select chevron arrow (≈ 30px wide).
 *
 * Error: red text floats at top:100% of the form-group, appearing in the
 *   margin gap between rows (margin-bottom: 1.05rem) with z-index so it
 *   layers over whatever is beneath without causing reflow.
 */

/* Success — absolute overlay inside input, no layout space consumed */
.pcoded .form-group [id^="ei"].success,
.pcoded .form-group div.success {
    position: absolute !important;
    bottom: 10px !important;          /* centres 17px icon within 38px input */
    right: 42px !important;           /* inside the input, clear of chevron arrow */
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;          /* hide any injected text; show only the icon */
    pointer-events: none;
    z-index: 5 !important;
    transform: none !important;
    max-width: none !important;
    line-height: 1 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* "Valid" text injected by ::before — suppress it; border colour is enough feedback */
.pcoded .form-group [id^="ei"].success::before,
.pcoded .form-group div.success::before { content: none !important; }

.pcoded .form-group [id^="ei"].success i,
.pcoded .form-group div.success i,
.pcoded .form-group [id^="ei"].success .fa,
.pcoded .form-group div.success .fa {
    font-size: 16px !important;
    color: #1A7A3C !important;
    display: block !important;
    line-height: 1 !important;
}

/* Error — sits in the margin gap below the form-group (margin-bottom ≈ 16.8px)
   bottom: -15px places it in that gap; no flow space added, no next-row overlap */
.pcoded .form-group [id^="ei"].error,
.pcoded .form-group div.error {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -15px !important;         /* inside the 16.8px margin-bottom gap */
    top: auto !important;
    height: 14px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    border-left: 2px solid #C0392B !important;
    border-radius: 0 !important;
    padding: 0 4px 0 6px !important;
    margin: 0 !important;
    color: #C0392B !important;
    font-size: .67rem !important;
    font-weight: 700 !important;
    line-height: 14px !important;
    z-index: 50 !important;
    display: block !important;
    pointer-events: none;
    box-shadow: none !important;
    max-width: 100% !important;
}

/* Dropdown multiselect panel — ensure it can overflow card/fieldset */
.pcoded .dropdown { position: relative; overflow: visible; }
.pcoded .dropdown-label.form-control {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpolyline points='1,1 6,6 11,1' fill='none' stroke='%23002F87' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right .75rem center !important;
    background-size: 12px 7px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 2rem !important;
    user-select: none;
}
/* Multiselect panel */
#dv_multi_select_aggregator_type,
[id^="dv_multi_select_"] {
    position: absolute !important;
    z-index: 1055 !important;
    background: #fff !important;
    border: 1.5px solid #B8CBDF !important;
    border-radius: 0 0 6px 6px !important;
    box-shadow: 0 6px 18px rgba(0,47,135,.14) !important;
    min-width: 100% !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    padding: 6px 0 !important;
}

/* ==========================================================================
   SweetAlert2 — NGPS corporate theme  (corp19)
   Replaces the plain grey SweetAlert v1 popup across the whole portal.
   ========================================================================== */
.ngps-swal-popup {
    border-radius: 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 48, 135, .22), 0 4px 16px rgba(0, 48, 135, .12) !important;
    font-family: 'Noto Sans', sans-serif !important;
    max-width: 440px !important;
}

/* Coloured top bar — icon colour per alert type */
.ngps-swal-popup::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--ngps-navy) 0%, var(--ngps-navy-light) 100%);
}
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-warning { color: var(--ngps-saffron) !important; border-color: var(--ngps-saffron) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-warning .swal2-icon-content { color: var(--ngps-saffron) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-error   { border-color: #C0392B !important; color: #C0392B !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-error .swal2-x-mark-line-right { background-color: #C0392B !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-success { border-color: var(--ngps-green) !important; color: var(--ngps-green) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(26,122,60,.25) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--ngps-green) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-info    { border-color: var(--ngps-navy-light) !important; color: var(--ngps-navy-light) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-info .swal2-icon-content { color: var(--ngps-navy-light) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-question { border-color: var(--ngps-navy) !important; color: var(--ngps-navy) !important; }
.swal2-popup.ngps-swal-popup .swal2-icon.swal2-question .swal2-icon-content { color: var(--ngps-navy) !important; }

/* Popup body padding */
.swal2-popup.ngps-swal-popup .swal2-icon { margin-top: 24px !important; }

.ngps-swal-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--ngps-ink) !important;
    padding: 4px 28px 0 !important;
    line-height: 1.35 !important;
}

.ngps-swal-body {
    font-size: .9rem !important;
    color: var(--ngps-ink-soft) !important;
    padding: 6px 28px 4px !important;
    line-height: 1.6 !important;
}

/* Action buttons row */
.swal2-popup.ngps-swal-popup .swal2-actions {
    gap: 10px !important;
    padding: 10px 28px 24px !important;
    margin: 0 !important;
    justify-content: center !important; /* icon, title and text are centred — keep the actions on the same axis */
}

/* Confirm = navy gradient */
.ngps-swal-confirm {
    background: linear-gradient(135deg, var(--ngps-navy-light) 0%, var(--ngps-navy) 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 9px 24px !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    letter-spacing: .3px !important;
    cursor: pointer !important;
    transition: opacity .15s ease !important;
    box-shadow: 0 3px 10px rgba(0,48,135,.28) !important;
}
.ngps-swal-confirm:hover { opacity: .88 !important; }
.ngps-swal-confirm:focus { outline: none !important; }
.ngps-swal-confirm:focus-visible { outline: none !important; box-shadow: 0 0 0 3px rgba(0, 48, 135, .28) !important; }

/* Cancel = white + navy border */
.ngps-swal-cancel {
    background: #fff !important;
    color: var(--ngps-navy) !important;
    border: 1.5px solid var(--ngps-navy) !important;
    border-radius: 8px !important;
    padding: 9px 24px !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .15s ease, color .15s ease !important;
}
.ngps-swal-cancel:hover { background: var(--ngps-surface-band) !important; }
.ngps-swal-cancel:focus { outline: none !important; }
.ngps-swal-cancel:focus-visible { box-shadow: 0 0 0 3px rgba(0, 48, 135, .22) !important; }

/* Close (×) button */
.swal2-popup.ngps-swal-popup .swal2-close {
    color: var(--ngps-ink-soft) !important;
    font-size: 1.4rem !important;
    top: 12px !important;
    right: 16px !important;
}
.swal2-popup.ngps-swal-popup .swal2-close:hover { color: var(--ngps-navy) !important; }

/* ==========================================================================
   HOME PAGE (corp20) — scoped to body.ngps-home, class prefix .ngh-
   Fresh class names keep the legacy theme.css/style.css rules (Raleway,
   orange !important buttons, animated .box borders) from reaching this page.
   ========================================================================== */
:root {
    --ngps-saffron-ink:  #B5520F;   /* saffron for small text on white — 5:1 */
    --ngps-saffron-deep: #C2560F;   /* saffron fill behind white text — 4.5:1 */
    --ngps-green-soft:   #E8F5EC;
}

.ngps-home {
    font-family: var(--ngps-font);
    color: var(--ngps-ink);
    background: #fff !important;
}
.ngps-home :where(h1, h2, h3, h4, h5, h6, p, li, a, button, span, small, strong, b, label, input) {
    font-family: var(--ngps-font);
}
.ngps-home .ngps-gov-strip { position: relative; }

/* ---- Buttons ---------------------------------------------------------- */
.ngh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-weight: 600;
    font-size: .9rem;
    line-height: 1;
    padding: .72rem 1.15rem;
    border-radius: 8px;
    border: 1.5px solid transparent;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.ngh-btn i, .ngh-btn svg { font-size: .85em; }
.ngh-btn-lg { padding: .92rem 1.45rem; font-size: 1rem; }
.ngh-btn-primary { background: var(--ngps-navy); border-color: var(--ngps-navy); color: #fff !important; }
.ngh-btn-primary:hover { background: var(--ngps-navy-dark); border-color: var(--ngps-navy-dark); box-shadow: 0 6px 16px rgba(0, 48, 135, .22); }
.ngh-btn-accent { background: var(--ngps-saffron-deep); border-color: var(--ngps-saffron-deep); color: #fff !important; }
.ngh-btn-accent:hover { background: #A84A0C; border-color: #A84A0C; box-shadow: 0 8px 20px rgba(194, 86, 15, .35); }
.ngh-btn-light { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.ngh-btn-light:hover { background: #fff; border-color: #fff; color: var(--ngps-navy) !important; }
.ngh-btn-ghost { background: #fff; border-color: var(--ngps-line); color: var(--ngps-navy) !important; }
.ngh-btn-ghost:hover { border-color: var(--ngps-navy); background: var(--ngps-surface-band); }

/* ---- Header ----------------------------------------------------------- */
.ngh-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid var(--ngps-line);
    transition: box-shadow .2s ease;
}
.ngh-nav.is-scrolled { box-shadow: 0 6px 20px rgba(0, 32, 96, .08); }
.ngh-nav .navbar { padding: 10px 0; }
.ngh-brand { padding: 0; margin-right: 1.5rem; }
.ngh-brand img { height: 48px; width: auto; display: block; }
.ngh-nav-list .nav-link {
    position: relative;
    color: var(--ngps-ink) !important;
    font-weight: 600;
    font-size: .92rem;
    padding: .55rem .85rem !important;
}
.ngh-nav-list .nav-link::after {
    content: "";
    position: absolute;
    left: .85rem; right: .85rem; bottom: 1px;
    height: 2px;
    border-radius: 2px;
    background: var(--ngps-saffron);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.ngh-nav-list .nav-link:hover { color: var(--ngps-navy) !important; }
.ngh-nav-list .nav-link:hover::after { transform: scaleX(1); }
.ngh-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 1rem; }
.ngh-toggler {
    border: 1px solid var(--ngps-line);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--ngps-navy);
    background: #fff;
}
.ngh-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
    .ngh-brand img { height: 40px; }
    .ngh-nav-list { padding: 10px 0; margin-top: 10px; border-top: 1px solid var(--ngps-line); }
    .ngh-nav-list .nav-link::after { display: none; }
    .ngh-nav-actions { margin: 0 0 14px; }
    .ngh-nav-actions .ngh-btn { flex: 1 1 0; }
}

/* ---- Hero ------------------------------------------------------------- */
.ngh-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 76px 0 128px;
    background:
        radial-gradient(60% 85% at 88% 35%, rgba(27, 92, 181, .45) 0%, transparent 70%),
        linear-gradient(118deg, #001244 0%, #00256F 55%, #003087 100%);
}
.ngh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.2px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
            mask-image: linear-gradient(100deg, transparent 15%, #000 70%);
    pointer-events: none;
}
/* Logo motif: saffron (collection) and green (disbursement) arcs */
.ngh-hero::after {
    content: "";
    position: absolute;
    width: 760px; height: 760px;
    right: -220px; top: -180px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(242, 140, 40, .35);
    border-left-color: rgba(242, 140, 40, .18);
    border-bottom-color: rgba(19, 136, 8, .30);
    transform: rotate(-20deg);
    pointer-events: none;
}
.ngh-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    gap: 64px;
    align-items: center;
}
.ngh-hero-copy .carousel-item { min-height: 318px; }
.ngh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #F7A35C;
    margin-bottom: 18px;
}
.ngh-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ngh-hero-title {
    font-size: clamp(2rem, 4.1vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 18px;
    max-width: 17ch;
    text-wrap: balance;
}
.ngh-hero-lead {
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    line-height: 1.65;
    color: #C9D7EE;
    max-width: 52ch;
    margin: 0 0 30px;
}
.ngh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ngh-hero-controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.ngh-hero .ngh-dots {
    position: static;
    margin: 0;
    justify-content: flex-start;
    gap: 6px;
}
.ngh-hero .ngh-dots [data-bs-target] {
    width: 26px;
    height: 4px;
    margin: 0;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, .38);
    opacity: 1;
    transition: width .25s ease, background-color .25s ease;
}
.ngh-hero .ngh-dots .active { width: 46px; background-color: var(--ngps-saffron); }
.ngh-pause {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    cursor: pointer;
    transition: background .15s ease;
}
.ngh-pause:hover { background: rgba(255, 255, 255, .14); }

/* Lifecycle panel */
.ngh-panel {
    position: relative;
    background: #fff;
    color: var(--ngps-ink);
    border-radius: 16px;
    padding: 24px 24px 18px;
    box-shadow: 0 30px 70px rgba(0, 8, 40, .40);
}
.ngh-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #F28C28 0 50%, #138808 50% 100%);
}
.ngh-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.ngh-panel-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ngps-ink-soft); }
.ngh-panel-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 600;
    color: #14632F; background: var(--ngps-green-soft);
    padding: 5px 10px; border-radius: 999px;
}
.ngh-life { list-style: none; margin: 0; padding: 0; }
.ngh-life li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
}
.ngh-life li + li { border-top: 1px dashed var(--ngps-line); }
.ngh-life-ico {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--ngps-surface-band);
    color: var(--ngps-navy);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
}
.ngh-life li.is-active .ngh-life-ico { background: var(--ngps-navy); color: #fff; }
.ngh-life-text strong { display: block; font-size: .93rem; font-weight: 700; color: var(--ngps-ink); line-height: 1.3; }
.ngh-life-text small { display: block; font-size: .78rem; color: var(--ngps-ink-soft); margin-top: 2px; }
.ngh-pill { font-size: .7rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.ngh-pill-ok { background: var(--ngps-green-soft); color: #14632F; }
.ngh-pill-live { display: inline-flex; align-items: center; gap: 6px; background: #FFF1E6; color: #93460C; }
.ngh-pill-live::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ngps-saffron);
    animation: nghPulse 1.8s ease-out infinite;
}
@keyframes nghPulse {
    0%   { box-shadow: 0 0 0 0 rgba(232, 109, 31, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(232, 109, 31, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 109, 31, 0); }
}
.ngh-panel-foot {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 10px; padding-top: 14px;
    border-top: 1px solid var(--ngps-line);
    font-size: .78rem; color: var(--ngps-ink-soft);
}
.ngh-panel-foot b {
    font-size: .74rem; font-weight: 700;
    color: var(--ngps-navy);
    background: var(--ngps-surface-band);
    padding: 4px 10px; border-radius: 6px;
}
@media (max-width: 991.98px) {
    .ngh-hero { padding: 52px 0 104px; }
    .ngh-hero-grid { grid-template-columns: 1fr; gap: 0; }
    .ngh-panel { display: none; }
    .ngh-hero-copy .carousel-item { min-height: 300px; }
    .ngh-hero::after { width: 520px; height: 520px; right: -260px; top: -120px; }
}
@media (max-width: 575.98px) {
    .ngh-hero-copy .carousel-item { min-height: 360px; }
    .ngh-hero-actions .ngh-btn { flex: 1 1 100%; }
}

/* ---- Ticker spacing --------------------------------------------------- */
.ngh-ticker { padding: 24px 0 0; }

/* ---- At-a-glance stats (overlaps the hero) ---------------------------- */
.ngh-stats-wrap { position: relative; z-index: 2; margin-top: -64px; }
.ngh-ticker + .ngh-stats-wrap { margin-top: 24px; }
.ngh-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: var(--ngps-line);
    border: 1px solid var(--ngps-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 32, 96, .12);
}
.ngh-stat { background: #fff; padding: 24px 22px 22px; min-width: 0; }
.ngh-stat-ico {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--ngps-surface-band);
    color: var(--ngps-navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: 16px;
}
.ngh-stat-num {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--ngps-navy);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ngh-cur { font-size: 1.15rem; font-weight: 700; margin-right: 3px; }
.ngh-unit { font-size: .82rem; font-weight: 700; color: var(--ngps-ink-soft); margin-left: 5px; letter-spacing: .02em; }
.ngh-stat-label {
    margin: 6px 0 0;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ngps-ink-soft);
}
@media (max-width: 991.98px) {
    .ngh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ngh-stat:last-child { grid-column: 1 / -1; }
}

/* ---- Section scaffolding ---------------------------------------------- */
.ngh-section { padding: 88px 0; }
.ngh-stats-wrap + .ngh-section { padding-top: 96px; }
.ngh-band {
    background: var(--ngps-surface-alt);
    border-top: 1px solid var(--ngps-line);
    border-bottom: 1px solid var(--ngps-line);
}
.ngh-band + .ngh-band { border-top: 0; }
.ngh-head { max-width: 720px; margin-bottom: 52px; }
.ngh-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.ngh-kicker {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ngps-saffron-ink);
    margin: 0 0 10px;
}
.ngh-h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.015em;
    color: var(--ngps-ink);
    margin: 0 0 14px;
    text-wrap: balance;
}
.ngh-lead { font-size: 1.05rem; line-height: 1.7; color: var(--ngps-ink-soft); margin: 0; }
@media (max-width: 767.98px) {
    .ngh-section { padding: 64px 0; }
    .ngh-head { margin-bottom: 36px; }
}

/* ---- How NGPS works --------------------------------------------------- */
.ngh-intro { position: sticky; top: 112px; }
.ngh-intro .ngh-lead { margin-bottom: 28px; }
.ngh-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ngps-line); }
.ngh-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 48px;
    gap: 20px;
    align-items: center;
    padding: 24px 12px;
    border-bottom: 1px solid var(--ngps-line);
    transition: background .2s ease;
}
.ngh-step:hover { background: var(--ngps-surface-alt); }
.ngh-step-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: #9DB3D6;
    font-variant-numeric: tabular-nums;
    transition: color .2s ease;
}
.ngh-step:hover .ngh-step-num { color: var(--ngps-saffron); }
.ngh-step-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--ngps-ink); margin: 0 0 4px; }
.ngh-step-body p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ngps-ink-soft); }
.ngh-step-ico {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--ngps-surface-band);
    color: var(--ngps-navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    transition: background .2s ease, color .2s ease;
}
.ngh-step:hover .ngh-step-ico { background: var(--ngps-navy); color: #fff; }
@media (max-width: 991.98px) { .ngh-intro { position: static; } }
@media (max-width: 575.98px) {
    .ngh-step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 4px; }
    .ngh-step-ico { display: none; }
    .ngh-step-num { font-size: 1.3rem; }
}

/* ---- Workflow timeline (saffron → navy → green, as in the logo) ------- */
.ngh-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}
.ngh-flow::before {
    content: "";
    position: absolute;
    top: 34px; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #F28C28, var(--ngps-navy-light) 50%, #138808);
}
.ngh-flow-step { position: relative; text-align: center; }
.ngh-flow-node {
    position: relative;
    z-index: 1;
    width: 68px; height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ngps-navy);
    color: var(--ngps-navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 0 0 8px var(--ngps-surface-alt);
    transition: background .2s ease, color .2s ease;
}
.ngh-flow-step:hover .ngh-flow-node { background: var(--ngps-navy); color: #fff; }
.ngh-flow-num {
    position: absolute;
    top: -4px; right: -6px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--ngps-saffron-deep);
    border: 2px solid var(--ngps-surface-alt);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ngh-flow-step h3 { font-size: 1rem; font-weight: 700; color: var(--ngps-ink); margin: 0 0 6px; }
.ngh-flow-step p { font-size: .88rem; line-height: 1.55; color: var(--ngps-ink-soft); margin: 0; }
@media (max-width: 991.98px) {
    .ngh-flow { grid-template-columns: 1fr; gap: 0; }
    .ngh-flow::before {
        top: 34px; bottom: 64px; left: 33px; right: auto;
        width: 2px; height: auto;
        background: linear-gradient(180deg, #F28C28, var(--ngps-navy-light) 50%, #138808);
    }
    .ngh-flow-step {
        display: grid;
        grid-template-columns: 68px minmax(0, 1fr);
        column-gap: 20px;
        text-align: left;
        padding-bottom: 28px;
    }
    .ngh-flow-node { grid-row: 1 / span 2; margin: 0; }
    .ngh-flow-step h3 { margin-top: 10px; }
}

/* ---- About ------------------------------------------------------------ */
.ngh-prose { margin-bottom: 28px; }
.ngh-prose p { font-size: 1rem; line-height: 1.75; color: var(--ngps-ink-soft); margin: 0 0 16px; max-width: 65ch; }
.ngh-prose strong { color: var(--ngps-ink); }
.ngh-glance {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #002060 0%, #003087 100%);
    color: #fff;
    border-radius: 16px;
    padding: 30px 28px;
    box-shadow: 0 20px 44px rgba(0, 32, 96, .20);
}
.ngh-glance::after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    right: -110px; top: -110px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: rgba(242, 140, 40, .45);
    border-bottom-color: rgba(19, 136, 8, .45);
    pointer-events: none;
}
.ngh-glance-title {
    font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: #F7A35C;
    margin: 0 0 18px;
}
.ngh-glance-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.ngh-glance-list li { display: flex; gap: 14px; align-items: flex-start; }
.ngh-glance-ico {
    flex: 0 0 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.ngh-glance-list li > span:last-child { font-size: .88rem; line-height: 1.5; color: #C9D7EE; }
.ngh-glance-list strong { display: block; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ngh-glance-sub {
    font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: #9FB4D8;
    margin: 0 0 12px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.ngh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ngh-chips li {
    font-size: .76rem; font-weight: 600;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #fff;
}

/* ---- Contact ---------------------------------------------------------- */
.ngh-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ngh-contact {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ngps-line);
    border-radius: 14px;
    padding: 24px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ngh-contact:hover { border-color: #B9CBE6; box-shadow: 0 12px 28px rgba(0, 32, 96, .08); }
.ngh-contact > div { min-width: 0; }
.ngh-contact-ico {
    flex: 0 0 46px; height: 46px;
    border-radius: 12px;
    background: var(--ngps-navy);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.ngh-contact h3 {
    font-size: .76rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--ngps-ink-soft);
    margin: 3px 0 6px;
}
.ngh-contact p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ngps-ink); }
.ngh-contact a { color: var(--ngps-navy); font-weight: 600; word-break: break-word; }
@media (max-width: 991.98px) { .ngh-contacts { grid-template-columns: 1fr; } }

/* ---- Portal highlight cards (rendered by uc_Default_PortalOnboarding) -- */
.ngps-home .ngps-portal-card {
    background: #fff;
    border: 1px solid var(--ngps-line);
    border-radius: 14px;
    box-shadow: none;
}
.ngps-home .ngps-portal-card:hover { box-shadow: 0 12px 28px rgba(0, 32, 96, .08); }

/* ---- Footer, modal, back-to-top -------------------------------------- */
.ngh-footer-logo {
    height: 46px; width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    margin-bottom: 16px;
}
.ngps-home .ngps-footer h5 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.ngh-modal { border: 0; border-radius: 14px; overflow: hidden; }
/* Header follows the global white dialog header (see "Dialogs" in INTERNAL PAGES) */
.ngh-modal .modal-title { font-weight: 700; font-size: 1.05rem; }
.ngps-home .scrollToTop.ngh-totop {
    width: 44px; height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--ngps-navy);
    color: #fff;
    text-align: center;
    line-height: 44px;
    box-shadow: 0 8px 20px rgba(0, 32, 96, .25);
}
.ngps-home .scrollToTop.ngh-totop svg { color: #fff; font-size: 16px; margin: 0; vertical-align: middle; }
.ngps-home .scrollToTop.ngh-totop:hover { background: var(--ngps-navy-dark); }

/* ---- High-contrast mode ---------------------------------------------- */
body.ngps-contrast .ngh-nav,
body.ngps-contrast .ngh-hero,
body.ngps-contrast .ngh-stats,
body.ngps-contrast .ngh-stat,
body.ngps-contrast .ngh-panel,
body.ngps-contrast .ngh-band,
body.ngps-contrast .ngh-glance,
body.ngps-contrast .ngh-contact,
body.ngps-contrast .ngh-step:hover { background: #000 !important; border-color: #ffff00 !important; box-shadow: none !important; }
body.ngps-contrast .ngh-btn { background: #ffff00 !important; border-color: #ffff00 !important; color: #000 !important; }
body.ngps-contrast .ngh-btn * { color: #000 !important; }

/* ==========================================================================
   OVERVIEW DASHBOARD (corp20) — Administrator & Portal Admin, prefix .ngd-
   ========================================================================== */
.ngd {
    --ngd-orange: #E86D1F;  --ngd-orange-bg: #FFF4EC; --ngd-orange-line: #FAD9C2;
    --ngd-blue:   #1B5CB5;  --ngd-blue-bg:   #EEF4FD; --ngd-blue-line:   #C9DBF5;
    --ngd-green:  #1A7A3C;  --ngd-green-bg:  #EEF8F1; --ngd-green-line:  #C6E6D0;
    --ngd-purple: #5B4BD6;  --ngd-purple-bg: #F3F2FD; --ngd-purple-line: #D9D5F7;
    --ngd-red:    #C0392B;  --ngd-red-bg:    #FDEEEC;
    font-family: var(--ngps-font);
    color: var(--ngps-ink);
}
.pcoded .ngd .card, .ngd .ngd-card {
    background: #fff !important;
    border: 1px solid var(--ngps-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 32, 96, .04) !important;
    margin: 0;
    min-width: 0;
}

/* Page head */
.ngd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
.ngd-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; color: var(--ngps-ink); margin: 0; line-height: 1.15; }
.ngd-sub { margin: 4px 0 0; font-size: .95rem; color: var(--ngps-ink-soft); }
.ngd-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ngd-range {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--ngps-line); border-radius: 10px;
    padding: 6px 10px 6px 12px; font-size: .88rem; font-weight: 600; color: var(--ngps-ink);
}
.ngd-range i { color: var(--ngps-navy); }
.pcoded .ngd .ngd-range input[type="date"],
.pcoded .ngd .ngd-filters select {
    border: 0 !important; box-shadow: none !important; background: transparent !important;
    height: 30px !important; padding: 0 4px !important; font-size: .86rem !important; font-weight: 600;
    color: var(--ngps-ink) !important; width: auto !important;
}
.pcoded .ngd .ngd-filters select.ngd-select {
    border: 1px solid var(--ngps-line) !important; border-radius: 10px !important;
    background-color: #fff !important; height: 44px !important; padding: 0 2.2rem 0 12px !important; min-width: 170px;
}
.ngd-range .ngd-sep { color: var(--ngps-ink-soft); font-weight: 500; }
.pcoded .ngd .ngd-apply { height: 44px; border-radius: 10px !important; padding: 0 18px !important; }
.ngd-presets { display: inline-flex; background: #fff; border: 1px solid var(--ngps-line); border-radius: 10px; padding: 3px; gap: 2px; }
.pcoded .ngd .ngd-presets a {
    font-size: .8rem; font-weight: 600; color: var(--ngps-ink-soft) !important;
    padding: 8px 12px; border-radius: 8px; text-decoration: none !important; white-space: nowrap;
}
.pcoded .ngd .ngd-presets a:hover { background: var(--ngps-surface-band); color: var(--ngps-navy) !important; }
.pcoded .ngd .ngd-presets a.is-on { background: var(--ngps-navy); color: #fff !important; }

/* Grid */
.ngd-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.ngd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ngd-row-a { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, .8fr); }
.ngd-row-b { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ngd-row-c { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1399.98px) { .ngd-row-a { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ngd-row-a > :last-child { grid-column: 1 / -1; } }
@media (max-width: 1199.98px) { .ngd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ngd-row-b, .ngd-row-c { grid-template-columns: 1fr; } }
@media (max-width: 767.98px)  { .ngd-kpis, .ngd-row-a { grid-template-columns: 1fr; } .ngd-title { font-size: 1.5rem; } }

/* KPI cards */
.ngd-kpi {
    position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px;
    padding: 20px 20px 18px; border-radius: 12px; border: 1px solid; min-width: 0;
}
.ngd-kpi.k-orange { background: var(--ngd-orange-bg); border-color: var(--ngd-orange-line); --k: var(--ngd-orange); }
.ngd-kpi.k-blue   { background: var(--ngd-blue-bg);   border-color: var(--ngd-blue-line);   --k: var(--ngd-blue); }
.ngd-kpi.k-green  { background: var(--ngd-green-bg);  border-color: var(--ngd-green-line);  --k: var(--ngd-green); }
.ngd-kpi.k-purple { background: var(--ngd-purple-bg); border-color: var(--ngd-purple-line); --k: var(--ngd-purple); }
.ngd-kpi-ico {
    grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
    color: var(--k); background: color-mix(in srgb, var(--k) 14%, #fff);
}
.ngd-kpi.k-green .ngd-kpi-ico { background: var(--k); color: #fff; }
.ngd-kpi-label { font-size: .86rem; font-weight: 700; color: var(--ngps-ink); margin: 2px 0 2px; }
.ngd-kpi-num { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--ngps-ink); font-variant-numeric: tabular-nums; margin: 0; }
.ngd-kpi-delta { font-size: .8rem; color: var(--ngps-ink-soft); margin: 6px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngd-kpi-delta b { font-weight: 700; margin-right: 4px; }
.ngd-kpi-delta b.up   { color: var(--ngd-green); }
.ngd-kpi-delta b.down { color: var(--ngd-red); }
.ngd-kpi-delta b.flat { color: var(--ngps-ink-soft); }
.ngd-kpi-bars { position: absolute; right: 20px; top: 44px; display: flex; align-items: flex-end; gap: 3px; opacity: .45; }
.ngd-kpi-bars span { width: 6px; border-radius: 2px; background: var(--k); }
.ngd-kpi-bars span:nth-child(1) { height: 10px; } .ngd-kpi-bars span:nth-child(2) { height: 16px; }
.ngd-kpi-bars span:nth-child(3) { height: 22px; } .ngd-kpi-bars span:nth-child(4) { height: 30px; }

/* Panel cards */
.ngd-card { padding: 18px 20px 20px; display: flex; flex-direction: column; }
.ngd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ngd-card-title { font-size: 1.08rem; font-weight: 700; color: var(--ngps-ink); margin: 0; display: flex; align-items: center; gap: 10px; }
.ngd-card-title i { color: var(--ngps-navy); }
.ngd-chip { font-size: .76rem; font-weight: 600; color: var(--ngps-ink-soft); border: 1px solid var(--ngps-line); border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.pcoded .ngd a.ngd-link { font-size: .86rem; font-weight: 700; color: var(--ngps-navy-light) !important; text-decoration: none !important; }
.pcoded .ngd a.ngd-link:hover { text-decoration: underline !important; }

/* Donut + legend */
.ngd-donut-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 18px; flex: 1; }
.ngd-donut { position: relative; height: 200px; }
.ngd-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ngd-donut-center b { font-size: 1.7rem; font-weight: 800; color: var(--ngps-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.ngd-donut-center span { font-size: .78rem; color: var(--ngps-ink-soft); margin-top: 4px; }
.ngd-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ngd-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .86rem; }
.ngd-legend i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.ngd-legend b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 575.98px) { .ngd-donut-wrap { grid-template-columns: 1fr; } }

.ngd-trend { height: 230px; flex: 1; }
.ngd-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 160px; color: var(--ngps-ink-soft); font-size: .88rem; text-align: center; }
.ngd-empty i { font-size: 1.5rem; color: #9DB3D6; }

/* Quick actions */
.ngd-actions { display: grid; gap: 12px; }
.pcoded .ngd a.ngd-action {
    display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; align-items: center; gap: 12px;
    padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--ngps-navy);
    color: var(--ngps-navy) !important; font-weight: 600; font-size: .9rem; text-decoration: none !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pcoded .ngd a.ngd-action:hover { background: var(--ngps-surface-band); }
.pcoded .ngd a.ngd-action.is-primary { background: var(--ngps-saffron-deep); border-color: var(--ngps-saffron-deep); color: #fff !important; }
.pcoded .ngd a.ngd-action.is-primary:hover { background: #A84A0C; border-color: #A84A0C; }
.ngd-action i:first-child { font-size: 1.05rem; text-align: center; }
.ngd-action span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tables */
.ngd-table-wrap { overflow-x: auto; margin: 0 -4px; }
.pcoded .ngd table.ngd-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pcoded .ngd .ngd-table th {
    background: var(--ngps-surface-alt) !important; color: var(--ngps-ink) !important; font-weight: 700; font-size: .8rem;
    text-align: left; padding: 10px 12px; border: 0 !important; white-space: nowrap;
}
.pcoded .ngd .ngd-table td { padding: 10px 12px; border: 0 !important; border-bottom: 1px solid #EEF2F8 !important; color: var(--ngps-ink); vertical-align: middle; }
.pcoded .ngd .ngd-table tbody tr:last-child td { border-bottom: 0 !important; }
.pcoded .ngd .ngd-table tbody tr:hover { background: var(--ngps-surface-alt); }
.ngd-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ngd-nowrap { white-space: nowrap; }
.ngd-trunc { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngd-bar { display: inline-block; width: 4px; height: 18px; border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.ngd-mono { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* Status pills */
.ngd-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ngd-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ngd-pill.s-pending   { background: var(--ngd-orange-bg); color: #9A4A0E; }
.ngd-pill.s-ready     { background: var(--ngd-blue-bg);   color: #144A92; }
.ngd-pill.s-signed    { background: var(--ngd-green-bg);  color: #14632F; }
.ngd-pill.s-submitted { background: var(--ngd-purple-bg); color: #4234B0; }
.ngd-pill.s-rejected  { background: var(--ngd-red-bg);    color: #9B2C20; }
.ngd-pill.s-active    { background: var(--ngd-green-bg);  color: #14632F; }
.ngd-pill.s-inactive  { background: #EEF1F5; color: #4A5568; }

/* Bank response tiles */
.ngd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ngd-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; background: var(--ngps-surface-alt); min-width: 0; }
.ngd-tile-ico { flex: 0 0 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.ngd-tile-ico.t-blue   { background: var(--ngd-blue-bg);   color: var(--ngd-blue); }
.ngd-tile-ico.t-green  { background: var(--ngd-green-bg);  color: var(--ngd-green); }
.ngd-tile-ico.t-red    { background: var(--ngd-red-bg);    color: var(--ngd-red); }
.ngd-tile-ico.t-purple { background: var(--ngd-purple-bg); color: var(--ngd-purple); }
.ngd-tile-label { display: block; font-size: .8rem; font-weight: 600; color: var(--ngps-ink-soft); }
.ngd-tile-num { display: block; font-size: 1.35rem; font-weight: 800; color: var(--ngps-ink); line-height: 1.2; font-variant-numeric: tabular-nums; }
@media (max-width: 1599.98px) { .ngd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Notifications */
.ngd-notes { list-style: none; margin: 0; padding: 0; }
.ngd-notes li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; font-size: .86rem; border-bottom: 1px solid #EEF2F8; }
.ngd-notes li:last-child { border-bottom: 0; }
.ngd-notes i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.ngd-notes span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngd-notes time { font-size: .78rem; color: var(--ngps-ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

body.ngps-contrast .ngd-kpi, body.ngps-contrast .ngd-card, body.ngps-contrast .ngd-tile { background: #000 !important; border-color: #ffff00 !important; }

/* ==========================================================================
   INTERNAL PAGES v2 (corp21) — one component system for every role
   (Administrator, Portal Admin, Maker/Checker, Approver, Department, Scheme Admin).
   All internal masters inherit NGPS.master, so these rules reach every page.
   Placed last so they win over the earlier corp14/19 rules at equal specificity.
   ========================================================================== */
:root {
    --ngi-canvas: #F3F6FA;
    --ngi-border: #DCE4EF;
    --ngi-field-border: #C5D1E2;
    --ngi-field-hover: #9FB1CC;
    --ngi-label: #2B3A55;
    --ngi-muted: #64748B;
    --ngi-ring: 0 0 0 3px rgba(0, 48, 135, .16);
    --ngi-radius: 8px;
    --ngi-h: 40px;
}

/* ---- Base ---------------------------------------------------------------- */
.pcoded, .pcoded input, .pcoded select, .pcoded textarea, .pcoded button, .pcoded .btn,
.pcoded table, .pcoded h1, .pcoded h2, .pcoded h3, .pcoded h4, .pcoded h5, .pcoded h6, .pcoded label {
    font-family: var(--ngps-font) !important;
}
.pcoded .pcoded-content { background: var(--ngi-canvas) !important; }
.pcoded .pcoded-inner-content { padding: 20px 24px 32px !important; }
.pcoded .main-body .page-wrapper { padding: 0 !important; }
@media (max-width: 767.98px) { .pcoded .pcoded-inner-content { padding: 14px 12px 24px !important; } }

/* ---- Header -------------------------------------------------------------- */
.pcoded .pcoded-header.navbar,
.pcoded .header-navbar .navbar-wrapper { background: #002A78 !important; box-shadow: 0 2px 10px rgba(0, 18, 68, .25) !important; }
.pcoded .header-navbar .navbar-wrapper .navbar-logo { display: flex !important; align-items: center !important; gap: 10px; }
.pcoded .header-navbar .navbar-logo img#imgLogo,
.pcoded .header-navbar .navbar-logo a > img.img-fluid {
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    height: 38px !important;
    max-height: 38px !important;
    width: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.pcoded .header-navbar #spnPortalName { color: #fff !important; font-size: .98rem !important; }
.pcoded .header-navbar .navbar-logo .mobile-menu {
    width: 36px; height: 36px; border-radius: 8px;
    display: inline-flex !important; align-items: center; justify-content: center;
    color: #fff !important; background: rgba(255, 255, 255, .08);
}
/* The theme pins this toggle absolutely (right: 5px), on top of the logo chip.
   Keep it in flow: after the logo on desktop (left/top nav switch), before it on mobile (see <992 rule). */
.pcoded .header-navbar .navbar-wrapper .navbar-logo .mobile-menu {
    position: static !important; order: 2; flex: 0 0 36px;
    margin: 0 !important; padding: 0 !important; font-size: 18px !important; line-height: 1;
}
.pcoded .header-navbar .navbar-logo .mobile-menu:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 2px; }
.pcoded .header-navbar .navbar-logo .mobile-menu:hover { background: rgba(255, 255, 255, .16); }
.pcoded-header .nav-left > li > a { padding: 0 10px !important; }
/* Top navigation */
.ngps-horiz-nav-list { padding: 0 6px; gap: 2px; }
.ngps-horiz-nav-link {
    font-size: .8rem !important;
    font-weight: 600 !important;
    padding: 0 12px !important;
    color: rgba(255, 255, 255, .86) !important;
    border-bottom: 3px solid transparent;
    border-top: 3px solid transparent;
    letter-spacing: .1px;
}
.ngps-horiz-nav-link:hover,
.ngps-horiz-nav-item:hover > .ngps-horiz-nav-link { background: rgba(255, 255, 255, .08) !important; border-bottom-color: var(--ngps-saffron) !important; }
.ngps-horiz-dd, .ngps-horiz-sub-dd {
    border-radius: 10px !important;
    border: 1px solid var(--ngi-border) !important;
    border-top: 3px solid var(--ngps-saffron) !important;
    box-shadow: 0 14px 34px rgba(0, 32, 96, .18) !important;
    padding: 6px !important;
    min-width: 230px !important;
}
.ngps-horiz-sub-dd { border-top: 1px solid var(--ngi-border) !important; border-left: 3px solid var(--ngps-saffron) !important; }
.ngps-horiz-dd-item + .ngps-horiz-dd-item { border-top: 0 !important; }
.ngps-horiz-dd-link { border-radius: 6px; padding: 9px 12px !important; font-size: .84rem !important; font-weight: 500; }
.ngps-horiz-dd-link:hover { background: var(--ngps-surface-band) !important; color: var(--ngps-navy) !important; }
/* Narrower screens: icons only on the top nav, then hand over to the sidebar */
@media (max-width: 1399.98px) { .ngps-horiz-nav-link { padding: 0 9px !important; font-size: .76rem !important; } .ngps-horiz-nav-link > i:first-child { display: none; } }
@media (max-width: 1199.98px) { #pcoded:not(.ngps-nav-top) .ngps-header-nav-row { display: none !important; } }
.pcoded .nav-right .ngps-user-toggle { padding: 6px 10px !important; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.pcoded .nav-right .ngps-user-toggle:hover { background: rgba(255, 255, 255, .16); }
/* Small screens: menu button sits in the row before the logo; drop non-essential header items */
@media (max-width: 991.98px) {
    .pcoded .header-navbar .navbar-wrapper .navbar-logo { padding: 0 8px !important; }
    .pcoded .header-navbar .navbar-wrapper .navbar-logo .mobile-menu { position: static !important; flex-shrink: 0; order: -1; }
    .pcoded-header .navbar-container .nav-left { display: none !important; }
    .pcoded .nav-right .ngps-user-name,
    .pcoded .nav-right .ngps-user-toggle .icon-chevron-down { display: none !important; }
    .pcoded .nav-right .ngps-user-toggle { padding: 4px !important; }
    .pcoded .navbar-container { justify-content: flex-end; }
    /* PCODED makes the sidebar position:absolute inside the content area here, so the desktop header offset must not apply */
    .pcoded[theme-layout="vertical"] .pcoded-navbar[pcoded-navbar-position="fixed"] { top: 0 !important; }
}

/* ---- Sidebar ------------------------------------------------------------- */
.pcoded .pcoded-navbar { background: #0B2259 !important; box-shadow: 1px 0 0 rgba(255, 255, 255, .04); }
.pcoded .pcoded-navbar .pcoded-inner-navbar { padding: 12px 10px !important; }
.pcoded .pcoded-navbar .pcoded-item { margin: 0 !important; padding: 0 !important; }
.pcoded .pcoded-navbar .pcoded-item > li { margin: 2px 0 !important; }
.pcoded .pcoded-navbar .pcoded-item > li > a {
    display: flex !important; align-items: center; gap: 10px;
    min-height: 42px; padding: 8px 12px !important;
    border-radius: 8px; border-left: 3px solid transparent !important;
    color: rgba(255, 255, 255, .82) !important;
    font-size: .86rem !important; font-weight: 500;
    background: transparent !important;
}
.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-micon { width: 22px !important; margin: 0 !important; display: inline-flex !important; justify-content: center; }
.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-micon i { color: #9DB3D6 !important; font-size: 1rem !important; }
.pcoded .pcoded-navbar .pcoded-item > li > a .pcoded-mtext { color: inherit !important; font-weight: inherit; position: static !important; left: auto !important; top: auto !important; opacity: 1 !important; visibility: visible !important; white-space: normal; line-height: 1.3; }
.pcoded .pcoded-navbar .pcoded-item > li:hover > a { background: rgba(255, 255, 255, .06) !important; color: #fff !important; }
.pcoded .pcoded-navbar .pcoded-item > li.active > a,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-trigger > a {
    background: rgba(255, 255, 255, .10) !important;
    border-left-color: var(--ngps-saffron) !important;
    color: #fff !important; font-weight: 600;
}
.pcoded .pcoded-navbar .pcoded-item > li.active > a .pcoded-micon i,
.pcoded .pcoded-navbar .pcoded-item > li.pcoded-trigger > a .pcoded-micon i { color: #F7A35C !important; }
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu { background: transparent !important; padding: 4px 0 6px 0 !important; margin: 0 !important; }
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li a {
    display: flex !important; align-items: center; gap: 10px;
    padding: 7px 12px 7px 46px !important; border-radius: 6px;
    color: rgba(255, 255, 255, .72) !important; font-size: .82rem !important;
    background: transparent !important; position: relative;
}
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li a::before {
    content: ""; position: absolute; left: 30px; top: 50%;
    width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: translateY(-50%);
}
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li a:hover { color: #fff !important; background: rgba(255, 255, 255, .05) !important; }
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li.active > a { color: #fff !important; font-weight: 600; }
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li.active > a::before { background: var(--ngps-saffron); }
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li a .pcoded-micon,
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li a > i { display: none !important; }
.pcoded .pcoded-navbar .pcoded-hasmenu > a::after { color: rgba(255, 255, 255, .45) !important; }

/* ---- Breadcrumb bar ------------------------------------------------------ */
.pcoded .page-header {
    background: #fff !important;
    border: 1px solid var(--ngi-border) !important;
    border-left: 4px solid var(--ngps-saffron) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    margin: 0 0 18px !important;
    box-shadow: 0 1px 2px rgba(0, 32, 96, .04) !important;
}
.pcoded .page-header .row { margin: 0; }
.pcoded .page-header .row > [class*="col-"] { padding: 0; }
.pcoded .page-header-breadcrumb { float: none !important; display: block !important; }
.pcoded .breadcrumb-title { font-size: .82rem !important; color: #94A3B8; gap: 6px !important; justify-content: flex-start !important; }
.pcoded .breadcrumb-title .breadcrumb-item + .breadcrumb-item::before { content: none !important; display: none !important; }
.pcoded .breadcrumb-title .breadcrumb-item { padding: 0 !important; }
.pcoded .breadcrumb-title > span:first-child .breadcrumb-item a::before,
.pcoded .breadcrumb-title > li:first-child a::before {
    content: "\e87a"; font-family: feather !important; margin-right: 6px; color: var(--ngps-navy); font-weight: 400;
}
.pcoded .breadcrumb-title li a { color: var(--ngi-muted) !important; }
.pcoded .breadcrumb-title li:last-child > a,
.pcoded .breadcrumb-title > span:last-child { color: var(--ngps-ink) !important; font-weight: 700 !important; }

/* ---- Cards ---------------------------------------------------------------- */
.pcoded .card,
.pcoded .card-box.card-bordeer {
    background: #fff !important;
    border: 1px solid var(--ngi-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 32, 96, .04), 0 4px 14px rgba(0, 32, 96, .04) !important;
    margin-bottom: 20px !important;
}
.pcoded .card-header,
.pcoded .card-box .card-header,
.pcoded .card-box .block-header {
    background: #fff !important;
    background-image: none !important;
    border-bottom: 1px solid var(--ngi-border) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 14px 20px !important;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    position: relative;
}
.pcoded .card-header::before,
.pcoded .card-box .block-header::before {
    content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 4px; border-radius: 0 3px 3px 0; background: var(--ngps-saffron);
}
.pcoded .card-header h5, .pcoded .card-header h4, .pcoded .card-header h3,
.pcoded .card-box .card-header h5, .pcoded .card-box .block-header h5 {
    color: var(--ngps-ink) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
}
.pcoded .card-header h5 i, .pcoded .card-header h4 i { color: var(--ngps-navy) !important; }
.pcoded .card-header .card-header-right { position: static !important; }
.pcoded .card-block,
.pcoded .card-body,
.pcoded .card-box .card-block,
.pcoded .card-box .card-body { padding: 20px !important; }
.pcoded .card .card-block > .row:last-child > [class*="col-"] > .form-group:last-child { margin-bottom: 4px; }
/* section sub-titles inside a card */
.pcoded .sub-title, .pcoded h6.sub-title {
    font-size: .76rem !important; font-weight: 700 !important; letter-spacing: .08em !important;
    text-transform: uppercase; color: var(--ngi-muted) !important;
    border-bottom: 1px solid var(--ngi-border) !important;
    padding-bottom: 8px !important; margin: 0 0 16px !important;
}
.pcoded .sub-title i { color: var(--ngps-navy); margin-right: 4px; }
/* Fieldset = same card treatment */
.pcoded fieldset {
    border: 1px solid var(--ngi-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 32, 96, .04), 0 4px 14px rgba(0, 32, 96, .04) !important;
    padding: 0 0 6px !important;
    margin-bottom: 20px !important;
}
.pcoded fieldset > legend {
    background: #fff !important; background-image: none !important;
    color: var(--ngps-ink) !important;
    font-size: 1rem !important; font-weight: 700 !important;
    border: 0 !important; border-bottom: 1px solid var(--ngi-border) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 14px 20px 14px 22px !important;
    margin-bottom: 18px !important;
    position: relative; float: none;
}
.pcoded fieldset > legend::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: var(--ngps-saffron); }
.pcoded fieldset > legend i { color: var(--ngps-navy) !important; }
.pcoded fieldset .row, .pcoded fieldset > div { padding: 0 8px; }

/* ---- Labels & form groups --------------------------------------------- */
.pcoded .form-group { margin-bottom: 1.35rem !important; }
.pcoded label:not(.switch):not(.btn):not(.ngd-range),
.pcoded .col-form-label,
.pcoded .form-control-label {
    font-size: .8rem !important;
    font-weight: 600 !important;
    color: var(--ngi-label) !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}
.pcoded label .text-danger, .pcoded label sub.text-danger { color: #C0392B !important; }
.pcoded sub.text-danger { font-size: .7rem; font-weight: 500; bottom: 0; }

/* ---- Text boxes & dropdowns ------------------------------------------- */
.pcoded .form-control,
.pcoded select.form-control,
.pcoded input.form-control,
.pcoded .dropdown-label.form-control {
    height: var(--ngi-h) !important;
    min-height: var(--ngi-h);
    padding: 0 12px !important;
    font-size: .875rem !important;
    font-weight: 400 !important;
    color: var(--ngps-ink) !important;
    background-color: #fff !important;
    border: 1px solid var(--ngi-field-border) !important;
    border-radius: var(--ngi-radius) !important;
    box-shadow: none !important;
    transition: border-color .15s ease, box-shadow .15s ease !important;
}
.pcoded select.form-control,
.pcoded .dropdown-label.form-control {
    padding-right: 36px !important;
    background-position: right 12px center !important;
    line-height: calc(var(--ngi-h) - 2px) !important;
}
.pcoded .form-control:hover:not(:disabled):not([readonly]) { border-color: var(--ngi-field-hover) !important; }
.pcoded .form-control:focus,
.pcoded .dropdown-label.form-control:focus {
    border-color: var(--ngps-navy) !important;
    box-shadow: var(--ngi-ring) !important;
    outline: none !important;
}
.pcoded textarea.form-control { height: auto !important; min-height: 84px !important; padding: 10px 12px !important; line-height: 1.5 !important; }
.pcoded .form-control::placeholder { color: #94A3B8 !important; font-size: .85rem !important; }
.pcoded .form-control[readonly],
.pcoded .form-control:disabled,
.pcoded select.form-control:disabled {
    background-color: #F1F5F9 !important;
    color: #475569 !important;
    border-color: #D9E1EC !important;
    cursor: not-allowed;
}
/* multi-line selects (ListBox) keep their height */
.pcoded select.form-control[multiple], .pcoded select.form-control[size] { height: auto !important; padding: 6px !important; background-image: none !important; }
/* Validation */
.pcoded .form-control.error,
.pcoded .has-error .form-control,
.pcoded .form-control.input-validation-error { border-color: #C0392B !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12) !important; }
.pcoded .form-group [id^="ei"].error,
.pcoded .form-group div.error { bottom: -19px !important; font-size: .7rem !important; border-left: 0 !important; padding-left: 0 !important; font-weight: 600 !important; }

/* Input groups */
.pcoded .input-group { flex-wrap: nowrap; box-shadow: none !important; }
.pcoded .input-group .input-group-prepend,
.pcoded .input-group .input-group-append { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; margin: 0 !important; }
.pcoded .input-group .input-group-prepend .input-group-text,
.pcoded .input-group .input-group-append .input-group-text,
.pcoded .input-group .input-group-addon {
    height: var(--ngi-h) !important;
    background: #F1F5FA !important;
    border: 1px solid var(--ngi-field-border) !important;
    color: var(--ngps-navy) !important;
    padding: 0 12px !important;
    font-size: .9rem !important;
}
.pcoded .input-group .input-group-prepend .input-group-text { border-radius: var(--ngi-radius) 0 0 var(--ngi-radius) !important; border-right: 0 !important; }
.pcoded .input-group .input-group-append .input-group-text { border-radius: 0 var(--ngi-radius) var(--ngi-radius) 0 !important; border-left: 0 !important; }
.pcoded .input-group .input-group-prepend + .form-control,
.pcoded .input-group .input-group-prepend ~ select.form-control { border-radius: 0 var(--ngi-radius) var(--ngi-radius) 0 !important; border-left: 1px solid var(--ngi-field-border) !important; }
.pcoded .input-group > .form-control:first-child:not(:last-child) { border-radius: var(--ngi-radius) 0 0 var(--ngi-radius) !important; border-right-width: 1px !important; }
.pcoded .input-group > .form-control:only-child { border-radius: var(--ngi-radius) !important; border-right-width: 1px !important; }

/* ---- File upload (asp:FileUpload) ------------------------------------- */
.pcoded input[type="file"]:not([style*="display: none"]):not([style*="display:none"]) {
    display: block;
    width: 100%;
    height: var(--ngi-h);
    padding: 0 12px 0 0;
    font-size: .84rem;
    color: var(--ngi-muted);
    background: #fff;
    border: 1px dashed var(--ngi-field-hover);
    border-radius: var(--ngi-radius);
    cursor: pointer;
    line-height: calc(var(--ngi-h) - 2px);
}
.pcoded input[type="file"]:hover { border-color: var(--ngps-navy); background: #F8FAFD; }
.pcoded input[type="file"]::file-selector-button {
    height: 100%;
    margin: 0 12px 0 0;
    padding: 0 14px;
    border: 0;
    border-right: 1px solid var(--ngi-field-border);
    border-radius: var(--ngi-radius) 0 0 var(--ngi-radius);
    background: var(--ngps-surface-band);
    color: var(--ngps-navy);
    font: 600 .82rem var(--ngps-font);
    cursor: pointer;
}
.pcoded input[type="file"]::file-selector-button:hover { background: var(--ngps-navy); color: #fff; }
.pcoded input[type="file"]:focus-visible { outline: none; box-shadow: var(--ngi-ring); border-color: var(--ngps-navy); }

/* ---- Checkboxes, radios, toggle -------------------------------------- */
.pcoded input[type="checkbox"]:not(.switch input),
.pcoded input[type="radio"] {
    accent-color: var(--ngps-navy);
    width: 16px; height: 16px;
    vertical-align: -3px;
    cursor: pointer;
    margin: 0 6px 0 0;
}
.pcoded .switch input[type="checkbox"] { width: 0 !important; height: 0 !important; }
.pcoded span.checkbox, .pcoded span.radio { display: inline-flex; align-items: center; gap: 2px; }
.pcoded span.checkbox label, .pcoded span.radio label,
.pcoded table.radio label, .pcoded table.checkbox label,
.pcoded .form-group > span > input[type="checkbox"] + label {
    font-weight: 500 !important; font-size: .85rem !important; color: var(--ngps-ink) !important;
    margin: 0 18px 0 0 !important; display: inline; padding: 0 !important; cursor: pointer;
}
.pcoded table.radio, .pcoded table.checkbox { border: 0 !important; margin: 4px 0 0; }
.pcoded table.radio td, .pcoded table.checkbox td { border: 0 !important; padding: 6px 0 !important; background: transparent !important; }
.pcoded .border-switch { min-height: var(--ngi-h) !important; }
/* a toggle sits on the line of its label: no form-group bottom margin (it lifted the toggle above the label text) and
   no label bottom margin on that line */
.pcoded .form-group.border-switch { margin-bottom: 0 !important; }
.pcoded label:not(.switch):not(.btn):not(.ngd-range):has(~ .border-switch) { margin-bottom: 0 !important; }
.pcoded .switch .slider { background: #CBD5E1 !important; }

/* ---- Buttons --------------------------------------------------------- */
.pcoded .btn {
    height: var(--ngi-h);
    min-height: var(--ngi-h);
    padding: 0 18px !important;
    font-size: .84rem !important;
    font-weight: 600 !important;
    letter-spacing: .1px !important;
    line-height: 1 !important;
    border-radius: var(--ngi-radius) !important;
    border-width: 1px !important;
    display: inline-flex;   /* no !important: pages hide buttons with jQuery .hide() (inline display:none) */
    align-items: center;
    justify-content: center;
    gap: 7px !important;
    box-shadow: none !important;
    white-space: nowrap;
    vertical-align: middle;
    margin: 2px 3px;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease !important;
}
.pcoded .btn:hover { box-shadow: 0 4px 12px rgba(0, 32, 96, .16) !important; }
.pcoded .btn:focus-visible { box-shadow: 0 0 0 3px rgba(232, 109, 31, .35) !important; outline: none !important; }
.pcoded .btn i, .pcoded .btn .fa, .pcoded .btn .feather { font-size: .95em !important; margin: 0 !important; }
.pcoded .btn.btn-round { border-radius: var(--ngi-radius) !important; }
.pcoded .btn.btn-sm, .pcoded .btn-group-sm > .btn { height: 32px; min-height: 32px; padding: 0 12px !important; font-size: .78rem !important; }
.pcoded .btn.btn-lg { height: 46px; padding: 0 24px !important; font-size: .95rem !important; }
.pcoded .btn.btn-icon { width: 36px; height: 36px; min-height: 36px; padding: 0 !important; }
.pcoded table .btn.btn-icon, .pcoded table .btn.btn-sm { width: 32px; height: 32px; min-height: 32px; margin: 1px 2px; }
.pcoded table .btn:not(.btn-icon) { height: 32px; min-height: 32px; padding: 0 12px !important; font-size: .78rem !important; }
.pcoded .btn-primary { background: var(--ngps-navy) !important; border-color: var(--ngps-navy) !important; color: #fff !important; }
.pcoded .btn-primary:hover { background: var(--ngps-navy-dark) !important; border-color: var(--ngps-navy-dark) !important; }
.pcoded .btn-success { background: #1A7A3C !important; border-color: #1A7A3C !important; color: #fff !important; }
.pcoded .btn-success:hover { background: #135E2E !important; border-color: #135E2E !important; }
.pcoded .btn-info { background: var(--ngps-navy-light) !important; border-color: var(--ngps-navy-light) !important; color: #fff !important; }
.pcoded .btn-info:hover { background: #154A93 !important; border-color: #154A93 !important; }
.pcoded .btn-danger { background: #C0392B !important; border-color: #C0392B !important; color: #fff !important; }
.pcoded .btn-danger:hover { background: #A12F23 !important; border-color: #A12F23 !important; }
.pcoded .btn-warning { background: var(--ngps-saffron-deep, #C2560F) !important; border-color: var(--ngps-saffron-deep, #C2560F) !important; color: #fff !important; }
.pcoded .btn-warning:hover { background: #A84A0C !important; border-color: #A84A0C !important; }
.pcoded .btn-dark, .pcoded .btn-inverse { background: #1E293B !important; border-color: #1E293B !important; color: #fff !important; }
.pcoded .btn-dark:hover, .pcoded .btn-inverse:hover { background: #0F172A !important; }
.pcoded .btn-default, .pcoded .btn-secondary, .pcoded .btn-light, .pcoded .btn-outline-primary {
    background: #fff !important; border: 1px solid var(--ngi-field-border) !important; color: var(--ngps-navy) !important;
}
.pcoded .btn-default:hover, .pcoded .btn-secondary:hover, .pcoded .btn-light:hover, .pcoded .btn-outline-primary:hover {
    background: var(--ngps-surface-band) !important; border-color: var(--ngps-navy) !important;
}
.pcoded .btn.disabled, .pcoded .btn:disabled, .pcoded .btn-disabled { opacity: .55 !important; box-shadow: none !important; cursor: not-allowed; }
/* asp:Button renders <input type="submit" class="btn …"> */
.pcoded input.btn { line-height: calc(var(--ngi-h) - 2px) !important; }
/* button rows */
.pcoded .btn-set, .pcoded .text-center > .btn:first-child { margin-left: 0; }
.pcoded .card-block .text-center:has(> .btn) { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 6px; }
.pcoded .card-block .text-center:has(> .btn) > .btn { margin: 0; }

/* ---- Tables (GridView + DataTables) --------------------------------- */
.pcoded .table-responsive { border: 1px solid var(--ngi-border); border-radius: 10px; }
.pcoded .dataTables_wrapper .table-responsive, .pcoded .table-responsive .dataTables_wrapper { border: 0; }
.pcoded table.table { margin: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; border: 0 !important; background: #fff; }
.pcoded table.table th,
.pcoded table.table thead th,
.pcoded table.dataTable thead th,
.pcoded table.dataTable thead td {
    background: #EEF3FA !important;
    color: var(--ngps-ink) !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    text-transform: none;
    border: 0 !important;
    border-bottom: 1px solid var(--ngi-border) !important;
    padding: 11px 12px !important;
    vertical-align: middle !important;
    white-space: nowrap;
}
.pcoded table.table th a { color: var(--ngps-ink) !important; }
.pcoded table.dataTable thead th:first-child, .pcoded table.table tr:first-child th:first-child { border-top-left-radius: 0 !important; }
.pcoded table.table td {
    font-size: .84rem !important;
    color: var(--ngps-ink) !important;
    border: 0 !important;
    border-bottom: 1px solid #EDF1F7 !important;
    padding: 10px 12px !important;
    vertical-align: middle !important;
    background: transparent;
}
.pcoded table.table tbody tr:nth-child(even) td { background: #FAFBFD !important; }
.pcoded table.table tbody tr:hover td { background: #F1F6FD !important; }
.pcoded table.table tbody tr:last-child td { border-bottom: 0 !important; }
.pcoded table.table .text-success { color: #1A7A3C !important; font-weight: 600; }
.pcoded table.table .text-danger { color: #C0392B !important; font-weight: 600; }
/* GridView pager row */
.pcoded table.table tr.pagination-ys td, .pcoded table.table tr[align="center"] td table td { border: 0 !important; }

/* DataTables chrome */
.pcoded .dataTables_wrapper { padding: 0; }
/* Scrolling mode: the body keeps an invisible sizing header that must stay 0px tall */
.pcoded .dataTables_scrollBody table.table.dataTable thead th,
.pcoded .dataTables_scrollBody table.table.dataTable thead td,
.pcoded .dataTables_scrollBody table.table.dataTable thead tr,
.pcoded .dataTables_scrollBody table.table thead th {
    padding-top: 0 !important; padding-bottom: 0 !important;
    height: 0 !important; line-height: 0 !important;
    border: 0 !important; background: transparent !important;
}
.pcoded .dataTables_scroll { clear: both; width: 100%; border: 1px solid var(--ngi-border); border-radius: 10px; overflow: hidden; }
.pcoded .dataTables_scrollHead { background: #EEF3FA; }
.pcoded .dataTables_scrollBody { border-bottom: 0 !important; }
.pcoded .dataTables_wrapper .dtsb-searchBuilder {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    background: #F8FAFD; border: 1px dashed var(--ngi-field-border); border-radius: 10px;
    padding: 8px 12px !important; margin-bottom: 14px !important; min-height: 0 !important;
}
.pcoded .dataTables_wrapper .dtsb-searchBuilder > .dtsb-group { flex: 1 1 auto; padding-top: 0 !important; margin: 0 !important; }
.pcoded .dataTables_wrapper .dtsb-searchBuilder .dtsb-titleRow { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 0 !important; height: auto !important; }
.pcoded .dataTables_wrapper .dtsb-searchBuilder .dtsb-title { font-size: .8rem !important; font-weight: 700; color: var(--ngi-muted); padding: 0 !important; margin: 0 !important; text-transform: uppercase; letter-spacing: .06em; }
.pcoded .dataTables_wrapper .dtsb-searchBuilder .dtsb-group { padding-top: 6px !important; }
.pcoded .dataTables_wrapper .dtsb-button,
.pcoded .dataTables_wrapper .dtsb-add {
    background: #fff !important; border: 1px solid var(--ngi-field-border) !important; border-radius: 8px !important;
    color: var(--ngps-navy) !important; font: 600 .78rem var(--ngps-font) !important; height: 32px; padding: 0 12px !important; box-shadow: none !important;
}
.pcoded .dataTables_wrapper .dtsb-add::before { content: "+ "; }
.pcoded .dataTables_wrapper .dtsb-button:hover { border-color: var(--ngps-navy) !important; background: var(--ngps-surface-band) !important; }
.pcoded .dataTables_wrapper .dtsb-dropDown, .pcoded .dataTables_wrapper .dtsb-input, .pcoded .dataTables_wrapper .dtsb-value {
    height: 32px !important; border: 1px solid var(--ngi-field-border) !important; border-radius: 8px !important; font-size: .8rem !important; padding: 0 8px !important; background-color: #fff !important;
}
.pcoded div.dt-buttons, .pcoded .dt-buttons.btn-group { display: inline-flex !important; flex-wrap: wrap; gap: 6px !important; margin-bottom: 12px; }
.pcoded .dt-buttons .btn, .pcoded .dt-buttons .dt-button, .pcoded .dt-buttons > .btn-group > .btn {
    height: 34px !important; min-height: 34px; padding: 0 12px !important; margin: 0 !important;
    background: #fff !important; color: var(--ngps-ink) !important;
    border: 1px solid var(--ngi-field-border) !important; border-radius: 8px !important;
    font-size: .78rem !important; font-weight: 600 !important; box-shadow: none !important;
}
.pcoded .dt-buttons .btn:hover, .pcoded .dt-buttons .dt-button:hover { border-color: var(--ngps-navy) !important; color: var(--ngps-navy) !important; background: var(--ngps-surface-band) !important; }
.pcoded .dt-buttons .buttons-excel i, .pcoded .dt-buttons .buttons-excel .fa { color: #1A7A3C !important; }
.pcoded .dt-buttons .buttons-pdf i, .pcoded .dt-buttons .buttons-pdf .fa { color: #C0392B !important; }
.pcoded .dt-buttons .buttons-print i, .pcoded .dt-buttons .buttons-print .fa { color: var(--ngps-navy) !important; }
.pcoded .dataTables_filter { text-align: right; }
.pcoded .dataTables_filter label { display: inline-flex !important; align-items: center; gap: 8px; font-size: .8rem !important; color: var(--ngi-muted) !important; font-weight: 600 !important; margin: 0 0 12px !important; }
.pcoded .dataTables_filter input {
    height: 34px !important; width: 220px !important; margin: 0 !important;
    border: 1px solid var(--ngi-field-border) !important; border-radius: 8px !important; padding: 0 10px 0 32px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center !important;
}
.pcoded .dataTables_filter input:focus { border-color: var(--ngps-navy) !important; box-shadow: var(--ngi-ring) !important; }
.pcoded .dataTables_info { font-size: .8rem !important; color: var(--ngi-muted) !important; padding-top: 12px !important; float: left; line-height: 34px; white-space: nowrap; }
.pcoded div.dataTables_wrapper div.dataTables_info { top: 0 !important; display: block; } /* legacy bundle nudged it down 22px */
.pcoded .dataTables_paginate { padding-top: 12px !important; float: right; }
.pcoded .dataTables_paginate .pagination { float: none !important; }
.pcoded .dataTables_wrapper::after { content: ""; display: table; clear: both; }
.pcoded .dataTables_paginate .pagination { gap: 4px; margin: 0; }
.pcoded .dataTables_paginate .page-item .page-link,
.pcoded .dataTables_paginate .paginate_button {
    min-width: 34px; height: 34px; padding: 0 10px !important;
    display: inline-flex !important; align-items: center; justify-content: center;
    border: 1px solid var(--ngi-border) !important; border-radius: 8px !important;
    background: #fff !important; color: var(--ngps-ink) !important; font-size: .8rem !important; font-weight: 600; box-shadow: none !important;
}
.pcoded .dataTables_paginate .page-item.active .page-link,
.pcoded .dataTables_paginate .paginate_button.current {
    background: var(--ngps-navy) !important; border-color: var(--ngps-navy) !important; color: #fff !important;
}
.pcoded .dataTables_paginate .page-item.disabled .page-link { color: #A0AEC0 !important; background: #F8FAFC !important; }
.pcoded .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover { border-color: var(--ngps-navy) !important; color: var(--ngps-navy) !important; }
.pcoded .dataTables_length select { height: 34px !important; border-radius: 8px !important; }

/* ---- Alerts, modals, tooltips --------------------------------------- */
.pcoded .alert { border-radius: 10px !important; padding: 12px 16px !important; font-size: .85rem !important; border-width: 1px 1px 1px 4px !important; }
.pcoded .alert-info    { border-color: #C9DBF5 #C9DBF5 #C9DBF5 var(--ngps-navy-light) !important; }
.pcoded .alert-success { border-color: #C6E6D0 #C6E6D0 #C6E6D0 #1A7A3C !important; }
.pcoded .alert-warning { border-color: #F5DFA8 #F5DFA8 #F5DFA8 #B45309 !important; }
.pcoded .alert-danger  { border-color: #F3C9C4 #F3C9C4 #F3C9C4 #C0392B !important; }
.modal-content { border: 0 !important; border-radius: 14px !important; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 18, 68, .28) !important; }
.modal-header { background: #fff !important; border-bottom: 1px solid var(--ngi-border) !important; padding: 16px 20px !important; }
.modal-header .modal-title { color: var(--ngps-ink) !important; font-weight: 700 !important; font-size: 1.05rem !important; }
.modal-footer { border-top: 1px solid var(--ngi-border) !important; background: #F8FAFD; padding: 12px 20px !important; }
.tooltip-inner { background: #0D1E3D !important; border-radius: 6px !important; font-size: .78rem !important; padding: 6px 10px !important; }

/* ---- Footer ---------------------------------------------------------- */
.pcoded ~ .ngps-footer, body > form > .ngps-footer { border-top-width: 2px; }

/* ---- High contrast --------------------------------------------------- */
body.ngps-contrast .pcoded .card, body.ngps-contrast .pcoded .card-header, body.ngps-contrast .pcoded fieldset,
body.ngps-contrast .pcoded .form-control, body.ngps-contrast .pcoded table.table td, body.ngps-contrast .pcoded table.table th,
body.ngps-contrast .pcoded .page-header { background: #000 !important; color: #ffff00 !important; border-color: #ffff00 !important; }

/* ==========================================================================
   INTERNAL PAGES v2.1 (corp22) — detail pass: identity, menus, dialogs,
   multi-select, date picker, grid chrome.
   ========================================================================== */

/* ---- Initials avatar -------------------------------------------------- */
.ngps-avatar {
    width: 34px; height: 34px; flex: 0 0 34px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--ngps-navy);
    font: 800 .78rem/1 var(--ngps-font); letter-spacing: .03em;
    box-shadow: 0 0 0 2px rgba(247, 163, 92, .9);
    user-select: none;
}
.ngps-avatar-lg { width: 46px; height: 46px; flex-basis: 46px; font-size: 1rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }

/* ---- Header account control ------------------------------------------ */
.pcoded .header-navbar .navbar-wrapper .navbar-container .nav-right > li { padding: 0 4px !important; display: flex !important; align-items: center; }
.pcoded .header-navbar .nav-right .user-profile .dropdown-primary { display: flex; align-items: center; }
.pcoded .nav-right .ngps-user-toggle {
    height: 42px; min-width: 0;
    padding: 4px 12px 4px 4px !important;
    gap: 10px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .08) !important;
    border: 1px solid rgba(255, 255, 255, .16);
    line-height: 1 !important;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.pcoded .nav-right .ngps-user-toggle:hover,
.pcoded .nav-right .dropdown.show .ngps-user-toggle { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .3); }
.pcoded .nav-right .ngps-user-toggle::after { display: none !important; }
.ngps-user-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.pcoded .ngps-user-meta .ngps-user-name { font-size: .8rem !important; font-weight: 700 !important; color: #fff !important; max-width: 150px; line-height: 1.1; }
.ngps-user-role { font-size: .68rem; font-weight: 500; color: #C9D7EE; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
.ngps-user-role:empty { display: none; }
.pcoded .nav-right .ngps-user-toggle .icon-chevron-down { color: rgba(255, 255, 255, .7) !important; font-size: .8rem !important; }
@media (max-width: 1279.98px) { .ngps-user-meta { display: none; } .pcoded .nav-right .ngps-user-toggle { padding: 4px !important; } }
/* Keep the account group on the right edge when the top-nav row is hidden */
.pcoded .pcoded-header .navbar-container > .nav-right { margin-left: auto !important; }

/* App switcher button */
.pcoded .ngps-app-switcher-li .more_app-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex !important; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    cursor: pointer; transition: background .15s ease;
}
.pcoded .ngps-app-switcher-li .more_app-icon:hover { background: rgba(255, 255, 255, .16); }
.pcoded .ngps-app-switcher-li .more_app-icon::after { display: none !important; }

/* ---- Profile menu ------------------------------------------------------ */
.pcoded .header-navbar .profile-notification {
    width: 300px !important; min-width: 300px;
    padding: 0 0 6px !important;
    border-radius: 14px !important;
    border: 1px solid var(--ngi-border) !important;
    box-shadow: 0 20px 44px rgba(0, 18, 68, .22) !important;
    overflow: hidden;
    margin-top: 8px !important;
}
.pcoded .header-navbar .profile-notification .ngps-profile-header {
    display: flex !important; align-items: center; gap: 14px;
    padding: 18px 18px !important;
    background: linear-gradient(135deg, #00236A 0%, #003087 100%) !important;
    border: 0 !important; margin: 0 0 6px !important;
    pointer-events: none;
}
.ngps-profile-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ngps-profile-id strong { color: #fff; font-size: .95rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ngps-profile-id small { color: #C9D7EE; font-size: .76rem; overflow-wrap: anywhere; }
.ngps-profile-id .ngps-role-badge {
    align-self: flex-start; margin-top: 4px;
    background: rgba(247, 163, 92, .18) !important; color: #FFD9B8 !important;
    border: 1px solid rgba(247, 163, 92, .45);
    border-radius: 999px; padding: 3px 10px; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
}
.ngps-profile-id .ngps-role-badge:empty { display: none; }
.pcoded .header-navbar .profile-notification li:not(.ngps-profile-header) { padding: 0 6px !important; border: 0 !important; }
.pcoded .header-navbar .profile-notification li:not(.ngps-profile-header) > a {
    display: flex !important; align-items: center; gap: 12px;
    padding: 10px 12px !important; border-radius: 8px;
    color: var(--ngps-ink) !important; font-size: .86rem !important; font-weight: 500;
}
.pcoded .header-navbar .profile-notification li:not(.ngps-profile-header) > a i { color: var(--ngps-navy) !important; font-size: 1rem !important; width: 18px; text-align: center; margin: 0 !important; }
.pcoded .header-navbar .profile-notification li:not(.ngps-profile-header) > a:hover { background: var(--ngps-surface-band) !important; color: var(--ngps-navy) !important; }
.pcoded .header-navbar .profile-notification li:last-child { border-top: 1px solid var(--ngi-border) !important; margin-top: 6px; padding-top: 6px !important; }
.pcoded .header-navbar .profile-notification li:last-child > a,
.pcoded .header-navbar .profile-notification li:last-child > a i { color: #B42318 !important; }
.pcoded .header-navbar .profile-notification li:last-child > a:hover { background: #FDEEEC !important; }

/* App switcher menu */
.ngps-app-menu { border-radius: 14px !important; box-shadow: 0 20px 44px rgba(0, 18, 68, .22) !important; border: 1px solid var(--ngi-border) !important; margin-top: 8px !important; }
.ngps-app-menu-header { background: #fff !important; color: var(--ngi-muted) !important; border-bottom: 1px solid var(--ngi-border); padding: 12px 16px !important; }
.ngps-app-grid { background: var(--ngi-border) !important; }
.ngps-app-tile-item { padding: 16px 6px 14px !important; }
.ngps-app-tile-icon { border-radius: 12px !important; }

/* ---- Dialogs: undo the legacy bundle (black 80% .modal wrapper, orange
        37%-wide "tab" header pulled up 32px), sit above the fixed header --- */
.modal {
    z-index: 1070 !important; background: transparent !important;
    opacity: 1; min-height: 0 !important; overflow-x: hidden; overflow-y: auto;
}
.modal.fade:not(.show) { opacity: 0; }
.modal-backdrop { z-index: 1065 !important; background: #0B1530 !important; }
.modal-backdrop.fade { opacity: 0 !important; }
.modal-backdrop.show { opacity: .55 !important; }
.modal-dialog { width: auto !important; max-width: 520px !important; margin: 1.75rem auto !important; }
.modal-dialog.modal-sm { max-width: 320px !important; }
.modal-dialog.modal-lg { max-width: 820px !important; }
.modal-dialog.modal-xl { max-width: 1140px !important; }
.modal-dialog-centered { display: flex !important; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-dialog > .modal-content { width: 100% !important; background: #fff !important; background-image: none !important; }
.modal-header a { position: static !important; }
/* Same legacy `button.close` hits dismissible alerts: keep it in flow there too */
.alert button.close { position: static !important; width: auto; height: auto; background: transparent !important; border: 0 !important; color: inherit !important; font-size: 1.25rem; opacity: .6; float: right; }
.alert button.close:hover { opacity: 1; }
@media (max-width: 1180px) { .modal-dialog.modal-xl, .modal-dialog.modal-lg { max-width: calc(100% - 32px) !important; } }
@media (max-width: 575.98px) { .modal-dialog { max-width: calc(100% - 24px) !important; margin: 12px auto !important; } }
.modal-header {
    width: auto !important; margin: 0 !important; text-align: left !important; color: var(--ngps-ink) !important;
    display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 12px;
}
.modal-header::before, .modal-header::after { display: none !important; }
.modal-header .modal-title { width: auto !important; margin: 0 !important; line-height: 1.35; }
/* Bootstrap 4 text "×" button */
.modal-header .close {
    float: none !important; order: 2; margin: 0 0 0 auto !important; padding: 0 !important;
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important; border: 1px solid transparent !important;
    color: var(--ngi-muted) !important; opacity: 1 !important; text-shadow: none !important;
    font-size: 1.5rem !important; font-weight: 400 !important; line-height: 1 !important; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.modal-header button.close { position: static !important; top: auto !important; right: auto !important; }
.modal-header .close:hover { background: #EEF2F8 !important; color: var(--ngps-ink) !important; }
.modal-header .close:focus-visible, .modal-header .btn-close:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 2px; box-shadow: none; }
/* Bootstrap 5 .btn-close draws its × as a background image — position only, keep the icon */
.modal-header .btn-close {
    position: static !important; order: 2; margin: 0 0 0 auto !important;
    width: 14px; height: 14px; padding: 10px !important; border-radius: 50%;
    border: 0 !important; filter: none !important; opacity: .55; box-sizing: content-box;
}
.modal-header .btn-close:hover { opacity: 1; background-color: #EEF2F8; }
.modal-body { padding: 20px !important; }
.modal-body > .table:last-child, .modal-body > .table-responsive:last-child { margin-bottom: 0; }
.modal-footer { display: flex !important; justify-content: flex-end !important; gap: 8px; }
.modal-footer > * { margin: 0 !important; }
/* A footer "Close" that only dismisses is a secondary action, not a destructive one */
.modal-footer .btn-danger[data-dismiss="modal"], .modal-footer .btn-danger[data-bs-dismiss="modal"] {
    background: #fff !important; color: var(--ngps-ink) !important; border: 1px solid var(--ngi-border) !important; box-shadow: none !important;
}
.modal-footer .btn-danger[data-dismiss="modal"]:hover { background: #F1F5FB !important; }
/* Tables inside dialogs: same treatment as page tables, whether or not the
   dialog sits inside .pcoded */
.modal table.table { margin: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; border: 1px solid var(--ngi-border) !important; border-radius: 10px; overflow: hidden; background: #fff; }
.modal table.table th, .modal table.table thead th {
    background: #EEF3FA !important; background-image: none !important; color: var(--ngps-ink) !important;
    font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .02em;
    border: 0 !important; border-bottom: 1px solid var(--ngi-border) !important;
    padding: 11px 12px !important; vertical-align: middle !important; white-space: nowrap;
}
.modal table.table td { font-size: .84rem !important; color: var(--ngps-ink) !important; border: 0 !important; border-bottom: 1px solid #EDF1F7 !important; padding: 10px 12px !important; vertical-align: middle !important; }
.modal table.table tbody tr:nth-child(even) td { background: #FAFBFD !important; }
.modal table.table tbody tr:last-child td { border-bottom: 0 !important; }
.ngps-profile-modal .modal-dialog.modal-lg { max-width: 720px !important; }
.ngps-profile-modal .modal-content { border-radius: 16px !important; }
.ngps-profile-modal .modal-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px !important;
    background: linear-gradient(135deg, #00236A 0%, #003087 100%) !important;
    border: 0 !important;
}
.ngps-pm-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ngps-profile-modal .modal-header .modal-title { color: #fff !important; font-size: 1.15rem !important; margin: 0; }
.ngps-pm-sub { color: #C9D7EE; font-size: .8rem; }
.ngps-modal-close {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
    font-size: 1.05rem; cursor: pointer; transition: background .15s ease;
}
.ngps-modal-close:hover { background: rgba(255, 255, 255, .24); }
.ngps-modal-close:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 2px; }
.ngps-profile-modal .modal-body { padding: 8px 24px 20px !important; }
.ngps-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; margin: 0; }
.ngps-dl-item { padding: 14px 0; border-bottom: 1px solid #EDF1F7; min-width: 0; }
.ngps-dl dt { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ngi-muted); margin: 0 0 4px; }
.ngps-dl dd { margin: 0; font-size: .92rem; font-weight: 600; color: var(--ngps-ink); overflow-wrap: anywhere; }
.ngps-dl dd span:empty::before { content: "—"; color: #A0AEC0; font-weight: 400; }
.ngps-profile-modal .modal-footer { justify-content: flex-end; }
@media (max-width: 575.98px) { .ngps-dl { grid-template-columns: 1fr; } }

/* ---- Sidebar submenu bullet (beats the theme's active-item bar) ------- */
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li > a::before,
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li.active > a::before,
.pcoded .pcoded-navbar[active-item-theme] .pcoded-item .pcoded-submenu li.active > a::before {
    content: "" !important; position: absolute !important;
    width: 5px !important; height: 5px !important;
    left: 30px !important; top: 50% !important; bottom: auto !important;
    transform: translateY(-50%) !important;
    border-radius: 50% !important; border: 0 !important;
    background: rgba(255, 255, 255, .35) !important;
}
.pcoded .pcoded-navbar .pcoded-item .pcoded-submenu li.active > a::before,
.pcoded .pcoded-navbar[active-item-theme] .pcoded-item .pcoded-submenu li.active > a::before { background: var(--ngps-saffron) !important; width: 6px !important; height: 6px !important; }
.pcoded .pcoded-navbar .pcoded-item > li > a::before { background: transparent !important; width: 0 !important; }

/* ---- Multi-select dropdown (UserMultiSelect*) ------------------------
   Both the box and the option rows are <label>s, so these selectors carry
   the `label` type to out-rank the generic field-label rule above
   (.pcoded label:not(.switch):not(.btn):not(.ngd-range) → padding 0, .8rem). */
.pcoded .dropdown > label.dropdown-label.form-control {
    display: block !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    height: var(--ngi-h) !important;
    line-height: calc(var(--ngi-h) - 2px) !important;
    padding: 0 36px 0 12px !important;
    margin: 0 !important;
    font-size: .875rem !important; font-weight: 400 !important; letter-spacing: 0;
    color: var(--ngps-ink) !important;
}
.pcoded .dropdown > .dropdown-label::before { content: none !important; display: none !important; }
.pcoded .dropdown.open > .dropdown-label.form-control { border-color: var(--ngps-navy) !important; box-shadow: var(--ngi-ring) !important; }
.pcoded .dropdown .dropdown-list {
    top: calc(100% + 6px) !important; left: 0; right: 0;
    padding: 6px !important;
    max-height: 280px !important;
    background: #fff !important;
    border: 1px solid var(--ngi-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 34px rgba(0, 32, 96, .16) !important;
    z-index: 1040 !important;
}
.pcoded .dropdown .dropdown-list .checkbox { opacity: 1 !important; margin: 0 !important; transition: none !important; }
.pcoded .dropdown .dropdown-list .checkbox:first-child { border-bottom: 1px solid #EDF1F7; margin-bottom: 4px !important; padding-bottom: 4px; }
.pcoded .dropdown .dropdown-list .checkbox:first-child label.checkbox-custom-label { font-weight: 700 !important; }
.pcoded .dropdown .checkbox label.checkbox-custom-label {
    display: flex !important; align-items: center; gap: 10px;
    width: 100%; margin: 0 !important; padding: 8px 10px !important;
    border-radius: 6px; position: relative;
    font-size: .84rem !important; font-weight: 500 !important; line-height: 1.3 !important;
    color: var(--ngps-ink) !important; cursor: pointer;
}
.pcoded .dropdown .checkbox .checkbox-custom-label:hover { background: var(--ngps-surface-band); }
.pcoded .dropdown .checkbox .checkbox-custom + .checkbox-custom-label::before {
    width: 16px !important; height: 16px !important; flex: 0 0 16px;
    margin: 0 !important; border: 1.5px solid #9FB1CC !important; border-radius: 4px !important;
    background: #fff !important;
}
/* Tick drawn into the box itself (no absolutely-placed ::after to drift) */
.pcoded .dropdown .checkbox .checkbox-custom:checked + .checkbox-custom-label::before {
    background: var(--ngps-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpolyline points='1.5,5.2 4.6,8.2 10.5,1.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 8px no-repeat !important;
    border-color: var(--ngps-navy) !important;
}
.pcoded .dropdown .checkbox .checkbox-custom + .checkbox-custom-label::after { content: none !important; display: none !important; }
.pcoded .dropdown .checkbox .checkbox-custom:focus-visible + .checkbox-custom-label { outline: 2px solid var(--ngps-saffron); outline-offset: -2px; }

/* ---- Date picker (UserBootStrapCalendar) ------------------------------ */
.pcoded .input-group.date { flex-wrap: nowrap; }
.pcoded .input-group.date > .form-control { border-radius: var(--ngi-radius) 0 0 var(--ngi-radius) !important; border-right: 0 !important; }
.pcoded .input-group.date > .input-group-addon {
    display: flex !important; align-items: center; justify-content: center;
    width: 44px; flex: 0 0 44px; margin: 0 !important;
    border-left: 1px solid var(--ngi-field-border) !important;
    border-radius: 0 var(--ngi-radius) var(--ngi-radius) 0 !important;
    cursor: pointer;
}
.pcoded .input-group.date > .input-group-addon:hover { background: var(--ngps-surface-band) !important; }
.pcoded .glyphicon-calendar::before { font-family: feather !important; content: "\e83a" !important; font-style: normal; }
.bootstrap-datetimepicker-widget.dropdown-menu {
    border: 1px solid var(--ngi-border) !important; border-radius: 12px !important;
    box-shadow: 0 16px 34px rgba(0, 32, 96, .18) !important; padding: 8px !important; font-family: var(--ngps-font);
}
.bootstrap-datetimepicker-widget table td.active, .bootstrap-datetimepicker-widget table td.active:hover,
.bootstrap-datetimepicker-widget table td span.active { background: var(--ngps-navy) !important; color: #fff !important; border-radius: 8px; }
.bootstrap-datetimepicker-widget table td.day:hover, .bootstrap-datetimepicker-widget table td span:hover { background: var(--ngps-surface-band) !important; border-radius: 8px; }
.bootstrap-datetimepicker-widget table td.today::before { border-bottom-color: var(--ngps-saffron) !important; }

/* ---- Grid chrome corrections ----------------------------------------- */
.pcoded .table-responsive:has(.dataTables_wrapper) { border: 0 !important; }
.pcoded .dataTables_paginate li.paginate_button,
.pcoded .dataTables_paginate .pagination > li.page-item {
    border: 0 !important; background: transparent !important; padding: 0 !important;
    min-width: 0 !important; height: auto !important; box-shadow: none !important; margin: 0 !important;
}
.pcoded .dataTables_filter input.form-control,
.pcoded .dataTables_filter input[type="search"] { height: 34px !important; min-height: 34px !important; line-height: 34px !important; }
.pcoded .dataTables_wrapper .row:first-child { align-items: center; }
.pcoded .dt-buttons .btn, .pcoded .dt-buttons .btn span { color: var(--ngps-ink) !important; opacity: 1 !important; }
.pcoded .dt-buttons .btn.btn-dark, .pcoded .dt-buttons .btn.btn-danger, .pcoded .dt-buttons .btn.btn-warning, .pcoded .dt-buttons .btn.btn-success { background: #fff !important; }

/* ---- Fieldset content aligns with card content ---------------------- */
.pcoded fieldset > .row, .pcoded fieldset > div { padding: 0 20px !important; }

/* ==========================================================================
   PUBLIC PAGES (MasterPages/NGPSPublic.master) — corp24
   Same gov strip / header / footer as Default.aspx; canvas + content area.
   ========================================================================== */
body.ngps-public {
    background: var(--ngps-surface-alt) !important;
    background-image: none !important;
    font-family: var(--ngps-font);
    color: var(--ngps-ink);
    min-height: 100vh;
}
body.ngps-public > form { min-height: 100vh; display: flex; flex-direction: column; }
.ngps-public .ngp-main { flex: 1 0 auto; outline: none; background: transparent !important; }
.ngps-public .ngp-content { padding-top: 40px; padding-bottom: 56px; }
.ngps-public .ngp-footer .ngps-footer-bottom { border-top: 0; }
.ngps-public .ngp-footer-links { display: inline-flex; flex-wrap: wrap; gap: 18px; }
/* assets/css/app.css (old template) hides every <header> below 992px */
header.ngh-nav { display: block !important; }

/* ---- Sign-in (Portal/AdminLogin.aspx) ----------------------------------- */
.ngl-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ngps-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 32, 96, .12);
}
.ngl-brand {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 48px 44px 40px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(27, 92, 181, .5) 0%, transparent 70%),
        linear-gradient(150deg, #001244 0%, #00256F 60%, #003087 100%);
}
.ngl-brand::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .08) 1px, transparent 1.2px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(160deg, transparent 30%, #000 85%);
            mask-image: linear-gradient(160deg, transparent 30%, #000 85%);
    pointer-events: none;
}
.ngl-brand::after { /* logo motif: saffron (collection) and green (disbursement) arcs */
    content: "";
    position: absolute;
    width: 420px; height: 420px; right: -260px; top: -230px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(242, 140, 40, .45);
    border-left-color: rgba(242, 140, 40, .2);
    border-bottom-color: rgba(19, 136, 8, .4);
    transform: rotate(-20deg);
    pointer-events: none;
}
.ngl-brand > * { position: relative; z-index: 1; }
.ngl-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #F7A35C; margin-bottom: 16px;
}
.ngl-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.ngl-title {
    font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.15;
    letter-spacing: -.015em; color: #fff; margin: 0 0 12px; text-wrap: balance;
}
.ngl-lead { color: #C9D7EE; font-size: .98rem; line-height: 1.6; margin: 0 0 30px; max-width: 40ch; }
.ngl-points { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 18px; }
.ngl-points li { display: flex; gap: 14px; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: #B8C9E6; }
.ngl-points strong { display: block; color: #fff; font-size: .93rem; font-weight: 700; margin-bottom: 2px; }
.ngl-point-icon {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
    color: #F7A35C; font-size: 1rem;
}
.ngl-brand-foot {
    margin: auto 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14);
    display: flex; gap: 8px; align-items: center; font-size: .78rem; color: #9FB4D8;
}

.ngl-form { padding: 48px 48px 36px; display: flex; flex-direction: column; }
.ngl-form-title { font-size: 1.55rem; font-weight: 800; color: var(--ngps-ink); margin: 0 0 6px; letter-spacing: -.01em; }
.ngl-form-sub { font-size: .9rem; color: var(--ngps-ink-soft); margin: 0 0 28px; }
.ngl-field { margin-bottom: 18px; }
.ngl-label { display: block; font-size: .82rem; font-weight: 600; color: #2D4268; margin: 0 0 6px; }
.ngl-input { position: relative; }
.ngl-input > .feather {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #7A8BA8; font-size: 1rem; pointer-events: none; z-index: 1;
}
.ngl-form .form-control {
    height: 46px; width: 100%;
    padding: 0 14px 0 42px;
    font-size: .95rem; color: var(--ngps-ink);
    background: #fff; border: 1px solid #C9D5E8; border-radius: 10px;
    box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.ngl-form .form-control::placeholder { color: #94A3B8; }
.ngl-form .form-control:hover { border-color: #9FB1CC; }
.ngl-form .form-control:focus { border-color: var(--ngps-navy); box-shadow: 0 0 0 3px rgba(0, 48, 135, .15); outline: none; }
.ngl-form .form-control.error, .ngl-form .form-control.input-validation-error { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }
.ngl-input:has(.ngl-reveal) .form-control { padding-right: 50px; }
.ngl-reveal {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; border-radius: 8px;
    background: transparent; color: #64748B; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.ngl-reveal:hover { background: var(--ngps-surface-band); color: var(--ngps-navy); }
.ngl-reveal:focus-visible, .ngl-captcha-refresh:focus-visible, .ngl-submit:focus-visible, .ngl-links a:focus-visible {
    outline: 3px solid var(--ngps-saffron); outline-offset: 2px;
}
.ngl-captcha { display: flex; align-items: stretch; gap: 8px; }
.ngl-captcha-img {
    height: 46px; width: auto; flex: 0 0 auto;
    border: 1px solid #C9D5E8; border-radius: 10px; background: #F8FAFD;
}
.ngl-captcha-refresh {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #C9D5E8; background: #fff; color: var(--ngps-navy) !important; text-decoration: none !important;
}
.ngl-captcha-refresh:hover { background: var(--ngps-surface-band); border-color: #9FB1CC; }
.ngl-form .ngl-captcha-input { padding-left: 14px; flex: 1 1 auto; min-width: 0; letter-spacing: .08em; }
.ngl-submit {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 48px; margin-top: 8px;
    background: var(--ngps-navy); border-radius: 10px;
    color: #fff !important; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(0, 48, 135, .22);
    transition: background .15s ease, box-shadow .15s ease;
}
.ngl-submit:hover { background: var(--ngps-navy-dark); box-shadow: 0 10px 22px rgba(0, 48, 135, .3); }
.ngl-warning {
    margin: 22px 0 0; padding: 12px 14px;
    font-size: .76rem; line-height: 1.55; color: #6B4A12;
    background: #FFF8EC; border: 1px solid #F6DFB5; border-radius: 10px;
}
.ngl-links {
    margin-top: auto; padding-top: 22px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    font-size: .85rem;
}
.ngl-links a { color: var(--ngps-navy); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ngl-links a:hover { text-decoration: underline; }

@media (max-width: 991.98px) {
    .ngps-public .ngp-content { padding-top: 24px; padding-bottom: 36px; }
    .ngl-shell { grid-template-columns: 1fr; max-width: 520px; }
    .ngl-brand { padding: 28px 28px 24px; }
    .ngl-lead { margin-bottom: 0; }
    .ngl-points, .ngl-brand-foot { display: none; }
    .ngl-form { padding: 32px 28px 28px; }
}
@media (max-width: 575.98px) {
    .ngps-public .ngp-content { padding-left: 12px; padding-right: 12px; }
    .ngl-shell { border-radius: 14px; }
    .ngl-form { padding: 26px 20px 22px; }
}

/* assets/css/app.css (old template): body line-height 30px, and an ID rule
   a#BtnRequestOTP { display: initial } that out-ranks class rules */
.ngl-shell { line-height: 1.5; }
.ngl-form a#BtnRequestOTP.ngl-submit { display: flex; }
.ngo-stepper { line-height: 1.4; }

/* ---- Onboarding (Onboarding.aspx) — builds on the sign-in .ngl-* layout ---- */
.ngo-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 0; counter-reset: none; }
.ngo-steps li {
    position: relative; display: flex; gap: 14px; align-items: flex-start;
    padding-bottom: 22px; font-size: .86rem; line-height: 1.5; color: #B8C9E6;
}
.ngo-steps li:last-child { padding-bottom: 0; }
.ngo-steps li:not(:last-child)::before { /* connector line between step numbers */
    content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px;
    width: 2px; background: rgba(255, 255, 255, .16);
}
.ngo-steps strong { display: block; color: #fff; font-size: .93rem; font-weight: 700; margin-bottom: 2px; }
.ngo-step-no {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; color: #C9D7EE;
    border: 2px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
}
.ngo-steps li.is-current .ngo-step-no { background: #F7A35C; border-color: #F7A35C; color: #0B1F4D; }

.ngo-stepper {
    align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ngps-navy); background: var(--ngps-surface-band);
}
.ngo-req { color: #C0392B; }
.ngo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ngl-form .ngo-otp { letter-spacing: .35em; font-weight: 600; font-variant-numeric: tabular-nums; }
.ngl-form .ngo-otp::placeholder { letter-spacing: normal; font-weight: 400; }

.ngo-resend {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    margin-top: 16px; font-size: .86rem; color: var(--ngps-ink-soft);
}
.ngo-resend-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 8px;
    color: var(--ngps-navy) !important; font-weight: 700; text-decoration: none !important;
}
.ngo-resend-btn:hover { background: var(--ngps-surface-band); }
.ngo-resend-btn:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 2px; }
.ngo-timer { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.ngo-timer b { color: var(--ngps-ink); }
.ngo-timer-ring { width: 22px; height: 22px; transform: rotate(0deg); }
.ngo-timer-bg, .ngo-timer-fg { fill: none; stroke-width: 4; }
.ngo-timer-bg { stroke: #DCE4F0; }
.ngo-timer-fg { stroke: var(--ngps-navy); stroke-linecap: round; transition: stroke-dasharray .9s linear; }

@media (max-width: 991.98px) { .ngo-steps { display: none; } }
@media (max-width: 575.98px) { .ngo-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   PORTAL DASHBOARD (Administration/Pages/ClientPortal/Dashboard.aspx) — corp30
   UserControl/Dashboard/uc_Portal_Dashboard.ascx; builds on the .ngd-* components.
   ========================================================================== */
.ngp { --ngp-navy: #003087; --ngp-navy-bg: #EEF3FB; --ngp-navy-line: #CCD9EE; }

/* Filter card */
.ngp-filter-card {
    background: #fff; border: 1px solid var(--ngps-line); border-radius: 12px;
    padding: 14px 20px 6px; margin-bottom: 22px;
}
.ngp-filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ngp-filter-head span { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ngps-ink-soft); }
.ngp-filter-head i { color: var(--ngps-navy); font-size: .95rem; }
.pcoded .ngp-filter-card fieldset > .row, .pcoded .ngp-filter-card .ngp-filter-row { padding: 0 !important; }
.ngp-filter-go { display: flex; align-items: flex-end; padding-bottom: 1rem; }
.ngp-filter-go .btn { height: var(--ngi-h, 40px); }

/* Freshness chip + notice */
.ngp-fresh {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 600; color: #14632F;
    background: #EEF8F1; border: 1px solid #C6E6D0; border-radius: 999px; padding: 7px 12px;
}
.ngp-fresh.is-stale { color: #9A4A0E; background: #FFF4EC; border-color: #FAD9C2; }
.ngp-notice {
    display: flex; gap: 12px; align-items: flex-start;
    background: #FFF8EC; border: 1px solid #F6DFB5; border-left: 4px solid #E86D1F; border-radius: 10px;
    padding: 12px 16px; margin: -6px 0 18px; font-size: .86rem; line-height: 1.55; color: #5B3B0B;
}
.ngp-notice i { color: #C2560F; font-size: 1.1rem; margin-top: 2px; }
.ngp-notice strong { display: block; color: #3D2606; }
.ngp-notice code { background: rgba(0, 0, 0, .05); padding: 1px 5px; border-radius: 4px; color: inherit; font-size: .82em; }

/* Headline KPIs */
.ngp-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ngp-kpi {
    --k: var(--ngp-navy); --kb: var(--ngp-navy-bg);
    position: relative; background: #fff; border: 1px solid var(--ngps-line); border-radius: 12px;
    padding: 16px 18px 16px; min-width: 0; overflow: hidden;
}
.ngp-kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k); }
.ngp-kpi.t-navy   { --k: #003087; --kb: #EEF3FB; }
.ngp-kpi.t-green  { --k: #1A7A3C; --kb: #EEF8F1; }
.ngp-kpi.t-blue   { --k: #1B5CB5; --kb: #EEF4FD; }
.ngp-kpi.t-orange { --k: #C2560F; --kb: #FFF4EC; }
.ngp-kpi.t-red    { --k: #C0392B; --kb: #FDEEEC; }
.ngp-kpi-ico {
    position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; background: var(--kb); color: var(--k); font-size: .95rem;
}
.ngp-kpi-label { font-size: .8rem; font-weight: 700; color: var(--ngps-ink-soft); margin: 0 44px 6px 0; line-height: 1.3; }
.ngp-kpi-num { font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--ngps-ink); margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.ngp-kpi-num small { font-size: .55em; font-weight: 700; color: var(--ngps-ink-soft); }
.ngp-kpi-sub { font-size: .76rem; line-height: 1.45; color: var(--ngps-ink-soft); margin: 6px 0 0; }
.ngp-meter { height: 6px; border-radius: 999px; background: #E5ECF6; margin-top: 10px; overflow: hidden; }
.ngp-meter span { display: block; height: 100%; border-radius: inherit; background: var(--k); }
@media (max-width: 1599.98px) { .ngp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px)  { .ngp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px)  { .ngp-kpis { grid-template-columns: 1fr; } }

/* Rows */
.ngp-row-1 { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.ngp-row-2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ngp-row-3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 1199.98px) { .ngp-row-1, .ngp-row-2, .ngp-row-3 { grid-template-columns: 1fr; } }

/* Pipeline funnel */
.ngp-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ngp-funnel li {
    display: grid; align-items: center; gap: 4px 14px;
    grid-template-columns: 170px minmax(0, 1fr) 76px 116px;
    font-size: .84rem;
}
.ngp-f-label { font-weight: 600; color: var(--ngps-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.ngp-f-label small { display: block; font-size: .72rem; font-weight: 400; color: var(--ngps-ink-soft); }
.ngp-f-track { height: 22px; background: #F1F5FB; border-radius: 6px; overflow: hidden; }
.ngp-f-bar { display: block; height: 100%; min-width: 2px; border-radius: 6px; background: linear-gradient(90deg, #1B5CB5, #003087); }
.ngp-funnel li:last-child .ngp-f-bar { background: linear-gradient(90deg, #2E9B57, #1A7A3C); }
.ngp-f-num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ngp-f-amt { text-align: right; color: var(--ngps-ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 767.98px) {
    .ngp-funnel li { grid-template-columns: minmax(0, 1fr) auto; }
    .ngp-f-track { grid-column: 1 / -1; order: 3; height: 14px; }
    .ngp-f-amt { display: none; }
}

/* Bank outcome donut */
.ngp-outcome { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; gap: 18px; flex: 1; }
@media (max-width: 575.98px) { .ngp-outcome { grid-template-columns: 1fr; } }

/* Work queues */
.ngp-queues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ngp-queues a {
    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px;
    padding: 9px 10px; border-radius: 10px; text-decoration: none !important; color: var(--ngps-ink) !important;
    border: 1px solid transparent; transition: background .15s ease, border-color .15s ease;
}
.ngp-queues a:hover { background: #F5F8FC; border-color: var(--ngps-line); }
.ngp-queues a:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 1px; }
.ngp-q-ico { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.ngp-q-ico.q-slate  { background: #EEF1F5; color: #4A5568; }
.ngp-q-ico.q-blue   { background: #EEF4FD; color: #1B5CB5; }
.ngp-q-ico.q-purple { background: #F3F2FD; color: #5B4BD6; }
.ngp-q-ico.q-orange { background: #FFF4EC; color: #C2560F; }
.ngp-q-ico.q-red    { background: #FDEEEC; color: #C0392B; }
.ngp-q-text { min-width: 0; display: flex; flex-direction: column; }
.ngp-q-label { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngp-q-meta { font-size: .76rem; color: var(--ngps-ink-soft); }
.ngp-q-amt { font-weight: 700; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ngp-q-go { color: #9DB3D6; }
.ngp-queues li.is-clear .ngp-q-label { color: var(--ngps-ink-soft); font-weight: 500; }
.ngp-queues li.is-clear .ngp-q-meta { color: #1A7A3C; }
.ngp-queues li.is-clear .ngp-q-ico { background: #F3F5F8; color: #94A3B8; }

/* Key ratios */
.ngp-ratios { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ngp-ratios li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: end; }
.ngp-r-label { font-size: .86rem; font-weight: 600; color: var(--ngps-ink); min-width: 0; }
.ngp-r-label small { display: block; font-size: .72rem; font-weight: 400; color: var(--ngps-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngp-ratios b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.ngp-r-track { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: #E5ECF6; overflow: hidden; }
.ngp-r-track span { display: block; height: 100%; border-radius: inherit; background: #1B5CB5; }
.ngp-ratio-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEF2F8; }
.ngp-ratio-facts div { background: var(--ngps-surface-alt); border-radius: 10px; padding: 10px 12px; }
.ngp-ratio-facts span { display: block; font-size: .74rem; color: var(--ngps-ink-soft); }
.ngp-ratio-facts b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* Failure reasons */
.ngp-fails { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ngp-fails li { display: grid; grid-template-columns: 50px minmax(0, 1fr) 56px; gap: 6px 10px; align-items: center; font-size: .85rem; }
.ngp-fail-code { justify-self: start; font-size: .72rem; font-weight: 700; color: #9B2C20; background: #FDEEEC; border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.ngp-fail-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngp-fails b { font-variant-numeric: tabular-nums; text-align: right; }
.ngp-fail-track { grid-column: 1 / 3; height: 6px; border-radius: 999px; background: #F6E3E0; overflow: hidden; }
.ngp-fail-track span { display: block; height: 100%; background: #C0392B; border-radius: inherit; }
.ngp-fail-share { font-size: .74rem; color: var(--ngps-ink-soft); text-align: right; }
.ngp-more { margin: 12px 0 0; font-size: .8rem; color: var(--ngps-ink-soft); }

/* Signatories & banking */
.ngp-sign { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 16px; }
.ngp-sign-main b { display: block; font-size: 2.1rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ngp-sign-main span { font-size: .8rem; color: var(--ngps-ink-soft); }
.ngp-split-bar { height: 10px; border-radius: 999px; background: #E3E8EF; overflow: hidden; }
.ngp-split-bar span { display: block; height: 100%; background: #1A7A3C; border-radius: inherit; }
.ngp-split-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .8rem; color: var(--ngps-ink-soft); }
.ngp-split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ngp-split-legend b { color: var(--ngps-ink); font-variant-numeric: tabular-nums; }
.ngp-split-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ngp-split-legend i.a { background: #1A7A3C; } .ngp-split-legend i.i { background: #C3CCD8; }
.ngd-tiles.ngp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngp-van { margin-top: 16px; padding-top: 14px; border-top: 1px solid #EEF2F8; }
.ngp-van-head { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; font-weight: 700; margin-bottom: 10px; }
.ngp-van dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ngp-van dl .ngp-van-total { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
.ngp-van dl div { background: var(--ngps-surface-alt); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.ngp-van dt { font-size: .7rem; font-weight: 600; color: var(--ngps-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngp-van dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767.98px) { .ngp-van dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Recent activity */
.ngp-recent { margin-bottom: 18px; }
.ngp-recent .ngd-card-head { flex-wrap: wrap; }
.ngp-tabs { display: inline-flex; background: var(--ngps-surface-alt); border: 1px solid var(--ngps-line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.ngp-tabs button {
    border: 0; background: transparent; border-radius: 8px; padding: 7px 12px;
    font-size: .82rem; font-weight: 600; color: var(--ngps-ink-soft); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.ngp-tabs button span { font-size: .72rem; background: #E3E9F3; color: var(--ngps-ink); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.ngp-tabs button[aria-selected="true"] { background: #fff; color: var(--ngps-navy); box-shadow: 0 1px 2px rgba(0, 32, 96, .12); }
.ngp-tabs button[aria-selected="true"] span { background: var(--ngps-navy); color: #fff; }
.ngp-tabs button:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 1px; }
.ngp-table-scroll { max-height: 440px; overflow: auto; border: 1px solid var(--ngps-line); border-radius: 10px; }
.ngp-table-scroll:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 2px; }
.ngd-table.ngp-table { margin: 0; }
.ngd-table.ngp-table thead th { position: sticky; top: 0; z-index: 1; background: #F3F6FB; white-space: nowrap; }
.ngd-table.ngp-table td { white-space: nowrap; }
.ngp-muted { color: #94A3B8; }
.ngp-recent-foot { display: flex; gap: 20px; justify-content: flex-end; margin-top: 12px; }

/* =============================================================================
   Grid & Search Builder polish (v2)
   Root causes fixed here:
   - ".pcoded table .btn.btn-sm { width:32px }" forced every small button in a table into a
     32px square, so labelled buttons ("Edit", "Set Budget", ...) overlapped. Only .btn-icon
     stays a fixed square now; everything else sizes to its content.
   - The vendor Search Builder rotates its AND/OR container 90deg and positions it absolutely,
     which collided with the flex layout above. It is laid out horizontally here.
   - DataTables sizes columns from unwrapped text, so one long column (e.g. a department name)
     pushed the Action column out of view; ngps-grid-fit.js clamps such columns and tags them
     .ngps-wrap so their cells wrap.
   ============================================================================= */

/* 1. Buttons inside tables */
.pcoded table .btn.btn-sm, .pcoded table .btn:not(.btn-icon) {
    width: auto; min-width: 32px; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; white-space: nowrap; line-height: 1;
}
.pcoded table .btn.btn-icon { width: 32px; padding: 0 !important; }
.pcoded table .btn i, .pcoded table .btn .fa { flex: 0 0 auto; }
.pcoded table td.ngps-wrap { min-width: 200px; white-space: normal; overflow-wrap: anywhere; word-break: normal; } /* anywhere: lets a cell with one long unbroken string (e.g. a comma-joined e-mail list) shrink */

/* 2. DataTables wrapper: toolbar row, full-width grid, footer row */
.pcoded .dataTables_wrapper { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.pcoded .dataTables_wrapper > .dtsb-searchBuilder { flex: 0 0 100%; }
.pcoded .dataTables_wrapper > .dt-buttons { flex: 1 1 auto; margin-bottom: 12px; }
.pcoded .dataTables_wrapper > .dataTables_filter { flex: 0 0 auto; margin-left: auto; }
.pcoded .dataTables_wrapper > .dataTables_filter label { margin: 0 0 12px !important; }
.pcoded .dataTables_wrapper > .dataTables_scroll, .pcoded .dataTables_wrapper > .table-responsive { flex: 0 0 100%; min-width: 0; }
.pcoded .dataTables_wrapper > .dataTables_info { flex: 1 1 auto; float: none; }
.pcoded .dataTables_wrapper > .dataTables_paginate { flex: 0 0 auto; margin-left: auto; float: none; }
.pcoded .dataTables_wrapper::after { display: none; }
.pcoded .dataTables_scrollBody { max-height: 72vh !important; }

/* 3. Custom Search Builder: group controls on the first row, conditions below, all horizontal */
.pcoded .dataTables_wrapper div.dtsb-searchBuilder { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px !important; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-titleRow { justify-content: space-between; margin: 0 !important; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title { padding: 0 !important; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-titleRow button.dtsb-clearAll { float: none; margin: 0; min-width: 32px; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; margin: 0 !important; padding: 0 !important; clear: none;
}
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer {
    /* Search Builder's JS writes inline left/top/width/position for its rotated layout; !important wins over inline. */
    order: 1; position: static !important; left: auto !important; top: auto !important; width: auto !important; transform: none !important;
    margin: 0 !important; flex: 0 0 auto; height: 34px; align-items: stretch;
    background: #fff; border: 1px solid var(--ngi-field-border); border-radius: 8px; overflow: hidden; flex-wrap: nowrap;
}
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-logic {
    flex: 0 0 auto; min-width: 58px; padding: 0 12px; height: 100%; font: 700 .76rem var(--ngps-font); letter-spacing: .06em; text-transform: uppercase; color: var(--ngps-navy);
}
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup {
    flex: 0 0 auto; width: 36px !important; min-width: 36px; padding: 0 !important; overflow: visible; text-overflow: clip; height: 100%; border-left: 1px solid var(--ngi-border); color: #C0392B;
}
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group > button.dtsb-add { order: 2; align-self: center; margin: 0 auto 0 0; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria {
    order: 3; flex: 0 0 100%; margin: 0; display: flex; flex-flow: row wrap; align-items: center; gap: 8px 10px; min-width: 0;
}
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown,
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input {
    margin: 0; min-width: 150px; max-width: 260px; height: 34px !important; padding: 0 10px !important;
    border: 1px solid var(--ngi-field-border) !important; border-radius: 8px !important; background-color: #fff !important; font-size: .8rem !important;
}
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont { flex: 0 1 auto; display: inline-flex; gap: 8px; align-items: center; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont input.dtsb-value { width: 220px; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer { margin-left: auto; display: inline-flex; gap: 6px; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button { height: 34px; min-width: 34px; margin: 0; }
.pcoded .dataTables_wrapper div.dtsb-searchBuilder div.dtsb-criteria > div.dtsb-group { flex: 1 1 100%; padding-left: 14px !important; border-left: 3px solid var(--ngps-navy-light); }

/* Compact grids: ngps-grid-fit.js adds .ngps-compact to a grid that is still too wide after clamping long columns */
.pcoded .ngps-compact table.dataTable th, .pcoded .ngps-compact table.dataTable td { padding-left: 8px !important; padding-right: 8px !important; }
.pcoded .ngps-compact table.dataTable thead th { white-space: normal; line-height: 1.25; }

/* ---- Signatory view: "your tasks" cards (PaymentOrders/Default.aspx) — corp33 ---- */
.ngp-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ngp-task {
    display: flex; flex-direction: column; gap: 4px; min-width: 0;
    background: #fff; border: 1px solid var(--ngps-line); border-radius: 12px; padding: 16px 18px;
    color: var(--ngps-ink) !important; text-decoration: none !important;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ngp-task:hover { border-color: #9DB3D6; box-shadow: 0 8px 22px rgba(0, 32, 96, .1); transform: translateY(-1px); }
.ngp-task:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 2px; }
.ngp-task-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ngp-task-title { font-weight: 700; font-size: .95rem; flex: 1; min-width: 0; }
.ngp-task-badge { font-size: .74rem; font-weight: 700; color: var(--ngps-navy); background: var(--ngps-surface-band); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.ngp-task-num { font-size: 1.55rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ngp-task-amt { font-size: .9rem; font-weight: 600; color: var(--ngps-ink-soft); font-variant-numeric: tabular-nums; }
.ngp-task-hint { font-size: .78rem; color: var(--ngps-ink-soft); margin-top: 4px; line-height: 1.45; }
.ngp-task-go { margin-top: auto; padding-top: 12px; font-size: .84rem; font-weight: 700; color: var(--ngps-navy); display: inline-flex; align-items: center; gap: 6px; }
.ngp-task.is-clear .ngp-task-badge { color: #14632F; background: #EEF8F1; }
.ngp-task.is-clear .ngp-task-num { color: #94A3B8; }
.ngp-task.is-clear .ngp-q-ico { background: #F3F5F8; color: #94A3B8; }
.ngp-title-note { font-size: .74rem; font-weight: 600; color: var(--ngps-ink-soft); background: var(--ngps-surface-alt); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 991.98px) { .ngp-tasks { grid-template-columns: 1fr; } }
.ngp-shortcuts { margin-top: auto; padding-top: 16px; border-top: 1px solid #EEF2F8; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ngp-queues + .ngp-shortcuts { margin-top: 18px; }
.ngp-shortcuts-head { width: 100%; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ngps-ink-soft); }
.ngp-shortcuts a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px;
    border: 1px solid var(--ngps-line); background: #fff; font-size: .82rem; font-weight: 600;
    color: var(--ngps-navy) !important; text-decoration: none !important;
}
.ngp-shortcuts a:hover { background: var(--ngps-surface-band); border-color: #9DB3D6; }
.ngp-shortcuts a:focus-visible { outline: 3px solid var(--ngps-saffron); outline-offset: 2px; }

/* ---- Breadcrumb bar: never show an empty one (page not in the area's sitemap) — corp40 ---- */
.pcoded .page-header:not(:has(.breadcrumb-item)) { display: none !important; }

/* ==========================================================================
   AREA PAGES (Signatory / Portal Admin) — shared fixes, corp40
   ========================================================================== */
/* Filter "View"/search buttons: primary navy (green is reserved for save/success), and
   aligned with the fields instead of being pushed down by .mt-4 */
.pcoded .btn.btn-success:has(> .fa-search), .pcoded .btn.btn-success:has(> .icon-search) {
    background: var(--ngps-navy) !important; border-color: var(--ngps-navy) !important; color: #fff !important;
}
.pcoded .btn.btn-success:has(> .fa-search):hover { background: var(--ngps-navy-dark) !important; border-color: var(--ngps-navy-dark) !important; }
.pcoded .row > [class*="col"]:has(> .btn > .fa-search), .pcoded .row > [class*="col"]:has(> .btn > .icon-search) {
    display: flex; align-items: flex-end; margin-top: 0 !important; padding-bottom: 1rem;
}
.pcoded .row > [class*="col"]:has(> .btn > .fa-search) > .btn { min-height: var(--ngi-h, 40px); }

/* Leftover empty cards (e.g. <div class="card"></div> between sections) */
.pcoded .card:not(:has(*)) { display: none !important; }

/* Numbers in grids (ngps-grid-format.js) */
.pcoded table td.ngps-num, .pcoded table th.ngps-num, .modal table td.ngps-num, .modal table th.ngps-num {
    text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Bilingual notice used on signatory pages */
.ngps-notice {
    display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px;
    background: #EEF4FD; border: 1px solid #C9DBF5; border-left: 4px solid #1B5CB5; border-radius: 10px;
    padding: 12px 16px; font-size: .88rem; line-height: 1.55; color: #12305E;
}
.ngps-notice > i { color: #1B5CB5; font-size: 1.1rem; margin-top: 2px; }
.ngps-notice strong { display: block; color: #0B1F4D; }
.ngps-notice .ngps-hi { display: block; color: #3A5A8C; font-size: .86rem; margin-top: 2px; }
/* Grid area that has no table yet (GridView renders nothing until data is loaded) */
.pcoded .card .table-responsive:not(:has(table)):not(:has(.dataTables_wrapper)) {
    border: 1px dashed var(--ngi-border) !important; border-radius: 10px; background: #FAFBFD;
    min-height: 96px; display: flex; align-items: center; justify-content: center;
}
.pcoded .card .table-responsive:not(:has(table)):not(:has(.dataTables_wrapper))::before {
    content: "No records to show yet.";
    font-size: .86rem; color: var(--ngi-muted, #64748B); padding: 18px; text-align: center;
}
/* Action bar under a selectable grid (Create Payment Order) */
.ngps-actionbar {
    position: sticky; bottom: 12px; z-index: 5;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    background: #fff; border: 1px solid var(--ngps-line); border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 32, 96, .12); padding: 12px 16px; margin: 4px 0 18px;
}
.ngps-actionbar.has-selection { border-color: #9DB3D6; }
.ngps-actionbar-sum { font-size: .88rem; color: var(--ngps-ink-soft); }
.ngps-actionbar-sum b { color: var(--ngps-ink); font-variant-numeric: tabular-nums; }
.ngps-actionbar-btns { display: flex; gap: 8px; }
/* Row-selection checkbox (label text kept for screen readers only) */
.pcoded table .ngps-row-check { display: inline-flex; align-items: center; }
.pcoded table .ngps-row-check input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Inline security-code field (image + input) on area pages */
.ngps-captcha { display: flex; align-items: stretch; gap: 8px; }
.ngps-captcha-img { height: var(--ngi-h, 40px); width: auto; flex: 0 0 auto; border: 1px solid var(--ngi-border); border-radius: var(--ngi-radius, 8px); background: #F8FAFD; }
.ngps-captcha .form-control { flex: 1 1 auto; min-width: 0; }
.ngps-hi-inline { font-weight: 500; color: var(--ngi-muted, #64748B); }
/* asp:CheckBox CssClass="form-control" renders <span class="form-control"><input type=checkbox>:
   drop the empty text-field box, keep the checkbox aligned with the neighbouring fields */
.pcoded span.form-control:has(> input[type="checkbox"]),
.pcoded span.form-control:has(> input[type="radio"]) {
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    padding: 0 !important; display: flex !important; align-items: center; gap: 8px;
    height: var(--ngi-h, 40px) !important; min-height: 0;
}
.pcoded span.form-control > input[type="checkbox"] { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.pcoded span.form-control > input[type="checkbox"] + label { margin: 0 !important; font-weight: 500 !important; }

/* Icon-only "reset" buttons are not destructive: neutral, not red */
.pcoded .btn.btn-danger:has(> .fa-refresh), .pcoded .btn.btn-danger:has(> .icon-refresh-cw), .pcoded .btn.btn-danger:has(> .fa-undo), .pcoded .btn.btn-danger:has(> .icon-rotate-ccw) {
    background: #fff !important; color: var(--ngps-ink) !important; border: 1px solid var(--ngi-border) !important; box-shadow: none !important;
}
.pcoded .btn.btn-danger:has(> .fa-refresh):hover, .pcoded .btn.btn-danger:has(> .icon-refresh-cw):hover { background: #F1F5FB !important; }
/* Card nested inside a card (e.g. a "Portal" filter card inside "View Sanction Orders"):
   flatten it into a section of the outer card instead of a second bordered box */
.pcoded .card .card {
    border: 0 !important; box-shadow: none !important; background: transparent !important;
    margin: 0 0 8px !important; border-radius: 0 !important;
}
.pcoded .card .card > .card-header {
    background: transparent !important; border-bottom: 0 !important; padding: 6px 0 4px !important; min-height: 0 !important;
}
.pcoded .card .card > .card-header::before { display: none !important; }
.pcoded .card .card > .card-header h5 {
    font-size: .74rem !important; font-weight: 700 !important; letter-spacing: .08em !important;
    text-transform: uppercase; color: var(--ngi-muted, #64748B) !important;
}
.pcoded .card .card > .card-block, .pcoded .card .card > .card-body { padding: 8px 0 0 !important; }
/* Fieldset (styled as a card elsewhere) nested inside a card: a plain section, not a second box */
.pcoded .card fieldset {
    border: 0 !important; box-shadow: none !important; background: transparent !important;
    border-radius: 0 !important; margin: 0 0 4px !important; padding: 0 !important;
}
.pcoded .card fieldset > legend {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    color: var(--ngi-muted, #64748B) !important; font-size: .74rem !important; font-weight: 700 !important;
    letter-spacing: .08em !important; text-transform: uppercase; padding: 4px 0 2px !important; margin: 0 0 8px !important;
    border-radius: 0 !important;
}
.pcoded .card fieldset > legend::before, .pcoded .card fieldset > legend::after { display: none !important; }
.pcoded .card fieldset > .row, .pcoded .card fieldset > div { padding: 0 !important; }

/* ==========================================================================
   GRIDS FIT THE PAGE (ngps-grid-layout.js + DataTables Responsive) — corp43
   No horizontal scrolling: text and headers wrap; columns that still don't fit
   move into an expandable row (⊕ in the first cell).
   ========================================================================== */
.pcoded table.dataTable, .pcoded .table-responsive > table.table { width: 100% !important; }
.pcoded table.dataTable thead th, .pcoded table.dataTable thead td,
.pcoded .table-responsive > table.table > thead > tr > th {
    white-space: normal !important; overflow-wrap: break-word; vertical-align: bottom !important; line-height: 1.3;
}
.pcoded table.dataTable tbody td, .pcoded .table-responsive > table.table > tbody > tr > td {
    white-space: normal !important; overflow-wrap: break-word; line-height: 1.4;
}
.pcoded table.dataTable td.ngps-num, .pcoded table.dataTable th.ngps-num { white-space: nowrap !important; }
/* Buttons and links rendered inside cells (e.g. "1 Total Payment Receiver") */
.pcoded table.table td .btn {
    white-space: normal !important; line-height: 1.25 !important; text-align: left;
    padding: 4px 9px !important; font-size: .78rem !important; min-height: 0 !important; height: auto !important;
    display: inline-flex !important; align-items: center; gap: 6px;
}
.pcoded table.table td .btn-icon, .pcoded table.table td .btn:has(> i:only-child) { padding: 5px 7px !important; }

/* Expand / collapse control (replaces the green "+" bubble) */
.pcoded table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
.pcoded table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    position: relative; padding-left: 38px !important; cursor: pointer;
}
.pcoded table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
.pcoded table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    content: "+"; top: 50%; left: 10px; margin-top: 0; transform: translateY(-50%);
    width: 20px; height: 20px; line-height: 20px; border: 0; border-radius: 6px; box-shadow: none;
    background: var(--ngps-surface-band, #EAF0FA); color: var(--ngps-navy, #003087);
    font-family: inherit; font-size: 15px; font-weight: 700; text-align: center;
}
.pcoded table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before,
.pcoded table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control::before {
    content: "\2212"; background: var(--ngps-navy, #003087); color: #fff;
}
.pcoded table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:hover::before { background: #D6E2F5; }

/* The expanded row: hidden columns as a label / value grid */
.pcoded table.dataTable > tbody > tr.child > td.child { padding: 10px 16px 14px 38px !important; background: #F8FAFD !important; }
.pcoded table.dataTable > tbody > tr.child ul.dtr-details {
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 28px; width: 100%;
}
.pcoded table.dataTable > tbody > tr.child ul.dtr-details > li { border: 0 !important; padding: 0 !important; min-width: 0; }
.pcoded table.dataTable > tbody > tr.child span.dtr-title {
    display: block; min-width: 0; margin-bottom: 2px;
    font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ngi-muted, #64748B);
}
.pcoded table.dataTable > tbody > tr.child span.dtr-data { font-size: .86rem; color: var(--ngps-ink); overflow-wrap: anywhere; }
/* Buttons in grid cells stay on one line: Responsive then moves a text column into the
   expandable row instead of crushing the button into a word-per-line stack */
.pcoded table.table td .btn { white-space: nowrap !important; }
/* Read-only queue rows (Approver dashboard) */
.ngp-queues span.ngp-q-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
/* Bootstrap .form-check: checkbox then label on one line (the theme floats the input with a negative margin) */
.pcoded .form-check { display: flex; align-items: center; gap: 8px; padding-left: 0 !important; min-height: 0; }
.pcoded .form-check > .form-check-input { position: static !important; float: none !important; margin: 0 !important; flex: 0 0 auto; width: 18px; height: 18px; }
.pcoded .form-check > .form-check-label { margin: 0 !important; }

/* ---- Grid toolbar menus (Column Visibility, Show N Rows) — corp46 ----------
   DataTables renders an empty positioned wrapper (.dt-button-collection) holding a
   Bootstrap .dropdown-menu, over a dark full-page backdrop. Wrapper: invisible.
   Menu: opens just below its button. Items: a checklist (ticked = visible / selected). */
div.dt-button-background { background: transparent !important; }
div.dt-button-collection {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    padding: 0 !important; width: auto !important; min-width: 0 !important; height: auto !important; z-index: 2002 !important;
}
div.dt-button-collection > .dropdown-menu {
    display: block !important; position: absolute !important; top: 40px !important; left: 0 !important; margin: 0 !important;
    min-width: 250px; max-height: min(380px, 60vh); overflow-y: auto; padding: 6px !important;
    background: #fff !important; border: 1px solid var(--ngi-border, #D9E2EF) !important; border-radius: 10px !important;
    box-shadow: 0 16px 34px rgba(0, 32, 96, .18) !important;
}
div.dt-button-collection > .dropdown-menu:has(.buttons-columnVisibility)::before {
    content: "Show columns"; display: block; padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid #EDF1F7;
    font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ngi-muted, #64748B);
}
div.dt-button-collection .dropdown-item.dt-button {
    display: flex !important; align-items: center; gap: 10px; width: 100%;
    margin: 0 !important; padding: 8px 10px !important; border: 0 !important; border-radius: 6px !important;
    background: transparent !important; box-shadow: none !important;
    font: 500 .84rem/1.3 var(--ngps-font) !important; color: var(--ngps-ink) !important; text-align: left !important; white-space: nowrap;
}
div.dt-button-collection .dropdown-item.dt-button:hover,
div.dt-button-collection .dropdown-item.dt-button:focus { background: var(--ngps-surface-band, #EAF0FA) !important; color: var(--ngps-navy) !important; outline: none; }
div.dt-button-collection .dropdown-item.dt-button:focus-visible { box-shadow: inset 0 0 0 2px var(--ngps-saffron) !important; }
div.dt-button-collection .dropdown-item.dt-button::before {
    content: ""; flex: 0 0 16px; width: 16px; height: 16px; border-radius: 4px;
    border: 1.5px solid #9FB1CC; background: #fff center / 10px 8px no-repeat;
}
div.dt-button-collection .dropdown-item.dt-button.active::before {
    border-color: var(--ngps-navy, #003087);
    background-color: var(--ngps-navy, #003087);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpolyline points='1.5,5.2 4.6,8.2 10.5,1.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
div.dt-button-collection .dropdown-item.dt-button:not(.active) { color: var(--ngi-muted, #64748B) !important; }
div.dt-button-collection .dropdown-item.dt-button span { pointer-events: none; }

/* Grids no longer scroll sideways, so their .table-responsive wrapper must not clip the
   toolbar menus that open below the buttons */
.pcoded .table-responsive:has(> .dataTables_wrapper), .pcoded .card-block:has(.dataTables_wrapper), .pcoded .card:has(.dataTables_wrapper) { overflow: visible !important; }

/* ==========================================================================
   GRID POLISH — one voice per row (ngps-grid-format.js normaliser) — corp48
   ========================================================================== */

/* ---- Toolbar: buttons and search on one aligned row ---------------------- */
.pcoded .dataTables_wrapper .dt-buttons {
    display: inline-flex !important; flex-wrap: wrap; align-items: center; gap: 6px;
    float: left; margin: 0 0 12px !important; padding: 0 !important;
}
.pcoded .dataTables_wrapper .dt-buttons > .btn,
.pcoded .dataTables_wrapper .dt-buttons > .btn-group > .btn {
    height: 34px !important; padding: 0 12px !important; margin: 0 !important;
    display: inline-flex !important; align-items: center; gap: 6px;
    background: #fff !important; color: var(--ngps-ink) !important;
    border: 1px solid var(--ngi-border, #D9E2EF) !important; border-radius: 8px !important; box-shadow: none !important;
    font: 600 .8rem/1 var(--ngps-font) !important; text-shadow: none !important;
}
.pcoded .dataTables_wrapper .dt-buttons > .btn:hover,
.pcoded .dataTables_wrapper .dt-buttons > .btn-group > .btn:hover { background: #F3F6FB !important; border-color: #B9C7DD !important; }
.pcoded .dataTables_wrapper .dt-buttons > .btn-group { display: inline-flex; margin: 0 !important; }
.pcoded .dataTables_wrapper .dt-buttons .btn i, .pcoded .dataTables_wrapper .dt-buttons .btn .fa { color: var(--ngps-navy) !important; font-size: .85rem; }
.pcoded .dataTables_wrapper .dt-buttons .buttons-excel i { color: #1A7A3C !important; }
.pcoded .dataTables_wrapper .dt-buttons .buttons-pdf i, .pcoded .dataTables_wrapper .dt-buttons .buttons-pdf { color: var(--ngps-ink) !important; }
.pcoded .dataTables_wrapper .dt-buttons .buttons-pdf i { color: #C0392B !important; }
/* the two menus first, then a hairline, then the export actions */
.pcoded .dataTables_wrapper .dt-buttons > .btn-group:nth-of-type(2) { margin-right: 6px !important; padding-right: 10px !important; border-right: 1px solid var(--ngi-border, #D9E2EF); }

.pcoded .dataTables_wrapper .dataTables_filter { float: right; margin: 0 0 12px !important; padding: 0 !important; }
.pcoded .dataTables_wrapper .dataTables_filter > label, .pcoded .dataTables_wrapper .dataTables_filter > label:not(.switch):not(.btn):not(.ngd-range) { margin: 0 !important; font-size: 0 !important; line-height: 0 !important; display: block !important; }
.pcoded .dataTables_wrapper .dataTables_filter input {
    margin: 0 !important; width: 260px !important; height: 34px !important; font-size: .84rem !important;
    padding: 0 12px 0 34px !important; border-radius: 8px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 11px center / 15px !important;
}
@media (max-width: 767.98px) {
    .pcoded .dataTables_wrapper .dataTables_filter { float: none; }
    .pcoded .dataTables_wrapper .dataTables_filter input { width: 100% !important; }
}

/* ---- Cells ---------------------------------------------------------------- */
.pcoded table.dataTable tbody td { color: var(--ngps-ink); font-size: .86rem !important; }
.pcoded table.dataTable tbody td .text-primary, .pcoded table.dataTable tbody td .text-info:not(.ngps-pill) { color: inherit !important; }
.pcoded table.dataTable tbody td b, .pcoded table.dataTable tbody td strong { font-weight: 600; }
/* label + value ("State: Madhya Pradesh", "On Request: On Request 2026") */
.pcoded table.dataTable td.ngps-cell-plain [class*="text-"] { color: inherit !important; font-weight: inherit !important; }
.pcoded table.dataTable td .ngps-cell-label {
    display: block; color: var(--ngi-muted, #64748B) !important; font-size: .74rem; font-weight: 600 !important; letter-spacing: .01em;
}
/* secondary line under a status (e.g. who signed) */
.pcoded table.dataTable td .ngps-cell-sub { display: block; margin-top: 4px; font-size: .76rem; color: var(--ngi-muted, #64748B); line-height: 1.3; }

/* status pills */
.pcoded table td .ngps-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: .76rem !important; font-weight: 600 !important; line-height: 1.35; white-space: nowrap; margin: 0;
}
.pcoded table td .ngps-pill i, .pcoded table td .ngps-pill .fa { font-size: .78rem; }
.pcoded table td .ngps-pill-ok    { background: #EEF8F1; color: #14632F !important; }
.pcoded table td .ngps-pill-bad   { background: #FDEEEC; color: #9B2C20 !important; }
.pcoded table td .ngps-pill-warn  { background: #FFF4EC; color: #9A4A0E !important; }
.pcoded table td .ngps-pill-info  { background: #EEF4FD; color: #144A92 !important; }
.pcoded table td .ngps-pill-muted { background: #EEF1F5; color: #4A5568 !important; }
/* icon-only status (e.g. payment mode emitted as an h2-sized icon) */
.pcoded table td .ngps-pill-icon, .pcoded table td .h1, .pcoded table td .h2, .pcoded table td .h3 {
    font-size: .9rem !important; line-height: 1 !important; margin: 0 !important;
}
.pcoded table td .ngps-pill.ngps-pill-icon { width: 30px; height: 30px; padding: 0; justify-content: center; }

/* links styled as buttons inside cells (download / view) */
.pcoded table.table td .btn.btn-outline-success, .pcoded table.table td .btn.btn-outline-primary, .pcoded table.table td .btn.btn-outline-info {
    background: #fff !important; color: var(--ngps-navy) !important; border: 1px solid #C9D5E8 !important; border-radius: 8px !important;
    font-weight: 600 !important;
}
.pcoded table.table td .btn.btn-outline-success:hover, .pcoded table.table td .btn.btn-outline-primary:hover, .pcoded table.table td .btn.btn-outline-info:hover {
    background: var(--ngps-surface-band, #EAF0FA) !important; border-color: #9DB3D6 !important;
}
.pcoded table.table td .btn.btn-outline-success i { color: #1A7A3C; }

/* the same clean-up inside the expandable row (Responsive copies the original cell HTML) */
.pcoded table.dataTable tr.child .dtr-data .text-primary { color: inherit !important; }
.pcoded table.dataTable tr.child .dtr-data sub { display: block; position: static; font-size: .76rem; color: var(--ngi-muted, #64748B) !important; margin-top: 2px; }
.pcoded table.dataTable tr.child .dtr-data .h1, .pcoded table.dataTable tr.child .dtr-data .h2 { font-size: .9rem !important; }

/* ---- Footer column filters: slim, with an icon instead of clipped placeholders ---- */
.pcoded table.dataTable tfoot td, .pcoded table.dataTable tfoot th { padding: 8px 6px !important; background: #FAFBFD !important; border-top: 1px solid var(--ngi-border, #D9E2EF) !important; }
.pcoded table.dataTable tfoot input, .pcoded table.dataTable tfoot input[type="text"] {
    width: 100% !important; min-width: 0; height: 30px !important; padding: 0 8px 0 26px !important;
    font-size: .76rem !important; border-radius: 6px !important; border: 1px solid #DCE4EF !important; box-shadow: none !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E") no-repeat 8px center / 12px !important;
}
.pcoded table.dataTable tfoot input::placeholder { color: #A0AEC0; }
.pcoded table.dataTable tfoot input:focus { border-color: var(--ngps-navy) !important; box-shadow: 0 0 0 3px rgba(0, 48, 135, .12) !important; }
/* Grid wrapper as a flex row: toolbar buttons and search share one centred line at any
   width; everything else (search builder, table, …) takes a full row */
.pcoded .dataTables_wrapper { display: flex !important; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.pcoded .dataTables_wrapper > * { flex: 0 0 100%; max-width: 100%; min-width: 0; }
.pcoded .dataTables_wrapper::after { display: none !important; }
.pcoded .dataTables_wrapper > .dt-buttons { flex: 1 1 auto; float: none !important; }
.pcoded .dataTables_wrapper > .dataTables_filter { flex: 0 0 auto; float: none !important; margin-left: auto !important; }
.pcoded .dataTables_wrapper > .dataTables_length { flex: 0 0 auto; float: none !important; }
.pcoded .dataTables_wrapper > .dataTables_info { flex: 1 1 auto; float: none !important; }
.pcoded .dataTables_wrapper > .dataTables_paginate { flex: 0 0 auto; float: none !important; margin-left: auto !important; }
@media (max-width: 767.98px) { .pcoded .dataTables_wrapper > .dataTables_filter { flex: 0 0 100%; } }

/* ==========================================================================
   ADMINISTRATIVE-UNIT PICKER (UserControl/AdminUnitPicker.ascx) - Rural / Urban switch
   ========================================================================== */
.ngps-aup { width: 100%; }
.ngps-aup-area {
    display: inline-flex; gap: 0; margin: 0 0 12px; padding: 3px; border-radius: 10px;
    background: var(--ngps-surface-band, #EAF0FA); border: 1px solid var(--ngi-border, #D9E2EF);
}
.ngps-aup-area-opt {
    position: relative; margin: 0 !important; padding: 6px 18px; border-radius: 8px; cursor: pointer;
    font: 600 .82rem/1.2 var(--ngps-font) !important; color: var(--ngi-muted, #64748B) !important; user-select: none;
}
/* the internal-page label rule zeroes label padding; the switch options need theirs */
.pcoded .ngps-aup .ngps-aup-area label.ngps-aup-area-opt.ngps-aup-area-opt {
    display: inline-flex !important; align-items: center; padding: 6px 18px !important; margin: 0 !important;
    font-size: .82rem !important; font-weight: 600 !important; line-height: 1.2 !important;
}
.pcoded .ngps-aup .ngps-aup-area label.ngps-aup-area-opt:has(input:checked) { color: var(--ngps-navy, #003087) !important; }
.ngps-aup-area-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ngps-aup-area-opt:has(input:checked) { background: #fff; color: var(--ngps-navy, #003087) !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ngps-aup-area-opt:has(input:focus-visible) { outline: 2px solid var(--ngps-navy, #003087); outline-offset: 2px; }
.ngps-aup-area-opt:has(input:disabled) { cursor: default; opacity: .7; }
.ngps-aup-levels select:disabled { background-color: #F6F8FB; color: #94A3B8; }

/* ==========================================================================
   SECTIONED FORMS (Register Signatory) - corp52
   A long entry form split into numbered sections (.ngps-fsec) inside one card,
   read-only values shown as values (.ngps-static) rather than empty-looking
   inputs, yes/no settings as tiles (.ngps-setting), actions in a footer bar.
   ========================================================================== */
.pcoded .card-header .ngps-form-card-note { display: inline-block !important; white-space: nowrap; font-size: .78rem; color: var(--ngi-muted, #64748B); }
.ngps-req { color: #C0392B; font-weight: 700; }
/* multi-select (Assign Schemes): its list panel draws an empty bordered box until schemes are loaded */
.pcoded .dropdown > #dv_multi_select_list:not(:has(*)) { display: none !important; }
.ngps-fsec { padding: 2px 0 4px; }
.ngps-fsec + .ngps-fsec { border-top: 1px solid var(--ngi-border, #DCE4EF); padding-top: 20px; margin-top: 6px; }
.ngps-fsec-head { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.ngps-fsec-no {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
    background: var(--ngps-surface-band, #EAF0FA); border: 1px solid #C9DBF5;
    color: var(--ngps-navy, #003087); font: 700 .8rem/26px var(--ngps-font); text-align: center;
}
/* corp58: a filter / list section shows an icon instead of a number */
.ngps-fsec-no.ngps-fsec-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.ngps-fsec-icon .feather { font-size: .85rem; line-height: 1; }
.pcoded .ngps-fsec-title { margin: 3px 0 2px !important; font-size: .95rem !important; font-weight: 700 !important; color: var(--ngps-ink) !important; }
.ngps-fsec-hint { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--ngi-muted, #64748B); max-width: 78ch; }
/* "choose the portal first" while the unit picker is hidden */
.ngps-fsec-empty {
    display: none; align-items: center; gap: 8px; margin: 0 0 8px; padding: 12px 14px;
    border: 1px dashed var(--ngi-border, #DCE4EF); border-radius: 10px; background: #FAFBFD;
    font-size: .84rem; color: var(--ngi-muted, #64748B);
}
.ngps-fsec:has(.ngps-aup[style*="display: none"]) .ngps-fsec-empty { display: flex; }
.ngps-field-note { display: block; margin-top: 6px; font-size: .78rem; color: var(--ngi-muted, #64748B); }
.ngps-yesno { font-weight: 700; color: var(--ngps-ink); }
.pcoded label.ngps-check {
    display: inline-flex !important; align-items: center; gap: 8px; margin: 8px 0 0 !important;
    font-size: .8rem !important; font-weight: 500 !important; color: var(--ngps-ink-soft) !important; cursor: pointer;
}
.ngps-check input[type="checkbox"] { width: 16px; height: 16px; margin: 0; cursor: pointer; }
/* read-only values */
.pcoded .ngps-static-label { display: block !important; }
.ngps-static {
    display: flex; align-items: center; min-height: var(--ngi-h, 40px); padding: 6px 12px;
    border-radius: var(--ngi-radius, 8px); background: #F6F8FB; border: 1px solid var(--ngi-border, #DCE4EF);
    color: var(--ngps-ink); font-size: .85rem; word-break: break-all;
}
.ngps-static-code { font-family: Consolas, 'SFMono-Regular', Menlo, monospace; letter-spacing: .04em; }
.ngps-static:empty::before { content: "\2014"; font-family: var(--ngps-font); letter-spacing: 0; color: var(--ngi-muted, #64748B); }
.ngps-static-pending:empty::before { content: "Assigned after registration"; }
/* corp58: older pages write read-only values as <div class="input-box"> (often with a page-level dotted style);
   give them the same read-only look. Boxes holding buttons or inputs are left alone. */
.pcoded .input-box:not(:has(.btn, input:not([type="hidden"]), select, textarea)) {
    display: flex !important; align-items: center; min-height: var(--ngi-h, 40px) !important; padding: 6px 12px !important;
    border-radius: var(--ngi-radius, 8px) !important; background: #F6F8FB !important; border: 1px solid var(--ngi-border, #DCE4EF) !important;
    box-shadow: none !important; color: var(--ngps-ink) !important; font-size: .85rem; word-break: break-word;
}
/* MAP DSC pages: label + arrow prepend + Label.form-control */
.pcoded .input-group-merge:has(> .input-group-prepend .fa-arrow-circle-right) > .input-group-prepend { display: none; }
.pcoded .input-group-merge:has(> .input-group-prepend .fa-arrow-circle-right) > span.form-control {
    display: flex; align-items: center; min-height: var(--ngi-h, 40px); height: auto; border-radius: var(--ngi-radius, 8px) !important;
    background: #F6F8FB; border: 1px solid var(--ngi-border, #DCE4EF); color: var(--ngps-ink); font-size: .85rem; word-break: break-all;
}
/* a picker whose levels sit in the surrounding grid row (e.g. Home State / District next to other fields) */
.ngps-inline-picker > .ngps-aup, .ngps-inline-picker .ngps-aup-levels { display: contents; }
.ngps-inline-picker .ngps-aup-area { display: none !important; }
/* yes / no settings */
.ngps-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ngps-setting {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px; border: 1px solid var(--ngi-border, #DCE4EF); border-radius: 10px; background: #FAFBFD;
}
.pcoded .ngps-setting .form-group { margin: 0 !important; flex: 0 0 auto; }
.ngps-setting-name { display: block; font-weight: 700; font-size: .86rem; color: var(--ngps-ink); }
.ngps-setting-desc { display: block; font-size: .78rem; color: var(--ngi-muted, #64748B); }
/* footer actions */
.ngps-form-actions {
    display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px;
    border-top: 1px solid var(--ngi-border, #DCE4EF); padding: 16px 0 8px; margin-top: 14px;
}
.ngps-form-actions .btn { min-height: var(--ngi-h, 40px); }
@media (max-width: 575.98px) {
    .ngps-form-actions .btn { flex: 1 1 100%; }
    .ngps-setting { align-items: flex-start; }
}
/* Yes / No choice inside a setting tile (e.g. Ceiling amount applies) */
.ngps-radio-group { display: inline-flex; gap: 0; padding: 3px; border-radius: 10px; background: var(--ngps-surface-band, #EAF0FA); border: 1px solid var(--ngi-border, #DCE4EF); flex: 0 0 auto; }
.pcoded .ngps-fsec .ngps-radio-group label.ngps-radio.ngps-radio {
    display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; padding: 5px 14px !important; border-radius: 8px;
    font-size: .82rem !important; font-weight: 600 !important; color: var(--ngi-muted, #64748B) !important; cursor: pointer;
}
.pcoded .ngps-fsec .ngps-radio-group label.ngps-radio.ngps-radio:has(input:checked) { background: #fff; color: var(--ngps-navy, #003087) !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ngps-radio input[type="radio"] { margin: 0; accent-color: var(--ngps-navy, #003087); }
.ngps-radio .form-check-input { position: static; margin: 0; }
.ngps-fsec .row.cellingamount { margin-top: 12px; }
/* warning variant of the notice (e.g. "Approver role not required in this portal") */
.ngps-notice-warn { background: #FFF7ED; border-color: #FED7AA; border-left-color: #B45309; color: #7C2D12; margin-top: 12px; }
.ngps-notice-warn > i { color: #B45309; }
/* the segmented Yes / No shows the choice; the native radio stays for keyboard and screen readers */
.ngps-radio-group .ngps-radio input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pcoded .ngps-radio-group label.ngps-radio:has(input:focus-visible) { outline: 2px solid var(--ngps-navy, #003087); outline-offset: 2px; }
.pcoded .ngps-radio-group label.ngps-radio { position: relative; }

/* ==========================================================================
   DATE & TIME PICKERS - corp59
   UserCalendar (jQuery UI datepicker) and UserTime (hour : minute), used for
   Payment Date and Scheduled Date & Time on Payment Order Schedule.
   ========================================================================== */
/* date box: white, with a calendar icon, opens the calendar on click */
.ngps-date { position: relative; display: block; min-width: 0; }
.pcoded .ngps-date input.datepicker {
    width: 100%; height: var(--ngi-h, 40px); padding-right: 38px !important;
    background: #fff !important; cursor: pointer; font-variant-numeric: tabular-nums;
}
.ngps-date-icon {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: var(--ngps-navy, #003087); font-size: 1rem; pointer-events: none;
}
/* calendar */
#ui-datepicker-div.ui-datepicker {
    width: 300px; padding: 12px; margin-top: 6px; z-index: 1060 !important;
    background: #fff; border: 1px solid var(--ngi-border, #DCE4EF); border-radius: 12px;
    box-shadow: 0 14px 34px rgba(13, 30, 61, .18); font-family: var(--ngps-font); color: var(--ngps-ink);
}
#ui-datepicker-div .ui-datepicker-header {
    position: relative; padding: 0 0 10px; margin-bottom: 6px; border: 0; border-bottom: 1px solid var(--ngi-border, #DCE4EF);
    border-radius: 0; background: none; color: var(--ngps-ink);
}
#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
    top: 0; width: 32px; height: 32px; border: 1px solid var(--ngi-border, #DCE4EF); border-radius: 8px;
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
#ui-datepicker-div .ui-datepicker-prev { left: 0; }
#ui-datepicker-div .ui-datepicker-next { right: 0; }
#ui-datepicker-div .ui-datepicker-prev span,
#ui-datepicker-div .ui-datepicker-next span { display: none; }
#ui-datepicker-div .ui-datepicker-prev::before { content: "\2039"; }
#ui-datepicker-div .ui-datepicker-next::before { content: "\203A"; }
#ui-datepicker-div .ui-datepicker-prev::before,
#ui-datepicker-div .ui-datepicker-next::before { font: 700 1.3rem/1 var(--ngps-font); color: var(--ngps-navy, #003087); margin-top: -2px; }
#ui-datepicker-div .ui-datepicker-prev.ui-state-hover,
#ui-datepicker-div .ui-datepicker-next.ui-state-hover { top: 0; background: var(--ngps-surface-band, #EAF0FA); border-color: #C9DBF5; }
#ui-datepicker-div .ui-datepicker-prev.ui-state-hover { left: 0; }
#ui-datepicker-div .ui-datepicker-next.ui-state-hover { right: 0; }
#ui-datepicker-div .ui-datepicker-prev.ui-state-disabled,
#ui-datepicker-div .ui-datepicker-next.ui-state-disabled { opacity: .35; cursor: default; }
#ui-datepicker-div .ui-datepicker-title { display: flex; gap: 6px; margin: 0 40px; line-height: 32px; font-weight: 700; font-size: .9rem; justify-content: center; }
#ui-datepicker-div .ui-datepicker-title select {
    flex: 1 1 0; min-width: 0; width: auto; height: 32px; margin: 0; padding: 0 6px;
    border: 1px solid var(--ngi-border, #DCE4EF); border-radius: 8px; background: #fff;
    font: 600 .82rem var(--ngps-font); color: var(--ngps-ink); cursor: pointer;
}
#ui-datepicker-div table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 2px; font-size: .84rem; }
#ui-datepicker-div th { padding: 6px 0 4px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ngi-muted, #64748B); }
#ui-datepicker-div td { padding: 0; }
#ui-datepicker-div td a.ui-state-default,
#ui-datepicker-div td span.ui-state-default {
    display: flex; align-items: center; justify-content: center; height: 34px; padding: 0;
    border: 1px solid transparent; border-radius: 8px; background: transparent;
    color: var(--ngps-ink); font-weight: 500; text-align: center; font-variant-numeric: tabular-nums;
}
#ui-datepicker-div td a.ui-state-default:hover { background: var(--ngps-surface-band, #EAF0FA); border-color: #C9DBF5; color: var(--ngps-navy, #003087); }
#ui-datepicker-div td a.ui-state-highlight { border-color: var(--ngps-navy, #003087); color: var(--ngps-navy, #003087); font-weight: 700; background: #fff; }
#ui-datepicker-div td a.ui-state-active,
#ui-datepicker-div td a.ui-state-active:hover { background: var(--ngps-navy, #003087); border-color: var(--ngps-navy, #003087); color: #fff; font-weight: 700; }
#ui-datepicker-div td.ui-datepicker-week-end a.ui-state-default:not(.ui-state-active) { color: #9A3412; }
#ui-datepicker-div td.ui-state-disabled { opacity: 1; }
#ui-datepicker-div td.ui-state-disabled span.ui-state-default { color: #B6C2D2; text-decoration: line-through; text-decoration-color: rgba(182, 194, 210, .6); }
#ui-datepicker-div td.ui-datepicker-other-month a.ui-state-default { color: #94A3B8; }
/* time: one box, clock icon, hour : minute */
.ngps-time {
    display: inline-flex; align-items: center; gap: 0; height: var(--ngi-h, 40px); padding: 0 4px 0 10px;
    border: 1px solid var(--ngi-border, #DCE4EF); border-radius: var(--ngi-radius, 8px); background: #fff; flex: 0 0 auto;
}
.ngps-time:focus-within { border-color: var(--ngps-navy, #003087); box-shadow: 0 0 0 3px rgba(0, 48, 135, .14); }
.ngps-time-icon { color: var(--ngps-navy, #003087); font-size: 1rem; margin-right: 4px; }
.pcoded .ngps-time select.ngps-time-part {
    height: 100%; width: auto; min-width: 0; margin: 0; padding: 0 18px 0 6px; border: 0 !important; box-shadow: none !important;
    background-color: transparent !important; background-position: right 2px center; font: 600 .95rem var(--ngps-font);
    color: var(--ngps-ink); font-variant-numeric: tabular-nums; cursor: pointer;
}
.pcoded .ngps-time select.ngps-time-part:focus { outline: none; }
.ngps-time select option:disabled { color: #B6C2D2; }
.ngps-time-sep { font-weight: 700; color: var(--ngps-ink); padding: 0 1px; }
/* date and time side by side, time keeps its width */
.ngps-datetime { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ngps-datetime .ngps-date { flex: 1 1 150px; min-width: 150px; }
.ngps-dt-summary:empty { display: none; }
/* corp61: the calendar without the jQuery UI base theme (pages whose date boxes ngps-dates.js converts) */
#ui-datepicker-div { display: none; position: absolute; }
#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next { position: absolute; }
#ui-datepicker-div .ui-datepicker-calendar { table-layout: fixed; }
#ui-datepicker-div a { text-decoration: none; }
/* overview dashboard: the two dates inside the date-range pill */
.pcoded .ngd .ngd-range input.ngd-date-text {
    border: 0 !important; box-shadow: none !important; background: transparent !important;
    height: 30px !important; width: 104px !important; padding: 0 4px !important;
    font-size: .86rem !important; font-weight: 600; color: var(--ngps-ink) !important; cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.pcoded .ngd .ngd-range input.ngd-date-text:focus { outline: 2px solid rgba(0, 48, 135, .25); border-radius: 6px; }
/* Bootstrap date picker (CMS Page Content start / end dates): same look as the portal calendar */
.bootstrap-datetimepicker-widget table { border-collapse: separate; border-spacing: 2px; }
.bootstrap-datetimepicker-widget table th { font-family: var(--ngps-font); color: var(--ngps-ink); }
.bootstrap-datetimepicker-widget table th.dow { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ngi-muted, #64748B); }
.bootstrap-datetimepicker-widget table th.picker-switch { font-weight: 700; border-radius: 8px; }
.bootstrap-datetimepicker-widget table th.prev, .bootstrap-datetimepicker-widget table th.next { border-radius: 8px; color: var(--ngps-navy, #003087); }
.bootstrap-datetimepicker-widget table th.prev:hover, .bootstrap-datetimepicker-widget table th.next:hover,
.bootstrap-datetimepicker-widget table th.picker-switch:hover { background: var(--ngps-surface-band, #EAF0FA) !important; }
.bootstrap-datetimepicker-widget table td.day { height: 34px; width: 36px; border-radius: 8px; font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--ngps-ink); }
.bootstrap-datetimepicker-widget table td.today { box-shadow: inset 0 0 0 1px var(--ngps-navy, #003087); color: var(--ngps-navy, #003087); font-weight: 700; }
.bootstrap-datetimepicker-widget table td.today::before { display: none; }
.bootstrap-datetimepicker-widget table td.weekend:not(.active):not(.disabled) { color: #9A3412; }
.bootstrap-datetimepicker-widget table td.old, .bootstrap-datetimepicker-widget table td.new { color: #94A3B8; }
.bootstrap-datetimepicker-widget table td.disabled, .bootstrap-datetimepicker-widget table td.disabled:hover { color: #B6C2D2 !important; text-decoration: line-through; background: none !important; }
/* corp62: plain checkboxes in forms (Is Active, Same as mobile, file-format flags ...) */
.pcoded .ngps-form-card input[type="checkbox"]:not(.switch *):not(.dataTables_wrapper *) {
    width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: middle; cursor: pointer;
    accent-color: var(--ngps-navy, #003087);
}
/* <asp:CheckBox CssClass="form-control"> draws an empty input box around the tick: show just the tick */
.pcoded span.form-control:has(> input[type="checkbox"]) {
    display: flex; align-items: center; border: 0 !important; background: transparent !important;
    box-shadow: none !important; padding: 0 !important; min-height: var(--ngi-h, 40px);
}
/* a lone checkbox under a field label lines up with the inputs beside it */
.pcoded .ngps-fsec .form-group > input[type="checkbox"]:only-of-type:not(.switch *) { margin-top: 11px; }

/* Phones and tablets: the menu list flows inside its side panel. The theme (assets_files/assets/css/style.css) pins
   div#dvMenu at top:57px, the header height before the GIGW banner was added above it; with the taller header the
   first menus sat above the panel, under the header and the page overlay. */
@media (max-width: 992px) {
    div#dvMenu {
        position: static !important;
        top: auto !important;
        height: auto !important;
        width: auto !important;
        overflow: visible !important;
    }
}

/* Side menu: a group inside a group (Dashboards > Integration > ...) is indented one more step than its parent */
.pcoded .pcoded-navbar .pcoded-submenu .pcoded-submenu > li > a { padding-left: 62px !important; }
.pcoded .pcoded-navbar .pcoded-submenu .pcoded-submenu > li > a::before { left: 46px !important; }
.pcoded .pcoded-navbar .pcoded-submenu .pcoded-submenu .pcoded-submenu > li > a { padding-left: 78px !important; }
.pcoded .pcoded-navbar .pcoded-submenu .pcoded-submenu .pcoded-submenu > li > a::before { left: 62px !important; }

/* ==========================================================================
   Compact filter cards (Resources/assets/js/ngps-filter-layout.js marks them .ngps-pf): the list / report pages of
   every role (UserControl/UserPortalFilter.ascx). The card header says "Filters" (with the auto-select switch), so the
   section's own "Find ..." heading goes; six fields to a row on wide screens; the View button ends the fields row.
   ========================================================================== */
.pcoded .ngps-pf > .card-block { padding-top: 14px !important; padding-bottom: 4px !important; }
.ngps-pf .ngps-pf-sec { padding: 0; }
.ngps-pf .ngps-pf-sec > .ngps-fsec-head { display: none; }
.pcoded .ngps-pf .ngps-pf-row .form-group { margin-bottom: .8rem !important; }
.ngps-pf .ngps-pf-row .form-control-label,
.ngps-pf .ngps-pf-row label.form-control-label { margin-bottom: 4px !important; }
.ngps-pf-go { display: flex; align-items: flex-end; justify-content: flex-end; flex: 1 0 auto; margin-left: auto;
              padding-left: 15px; padding-right: 15px; padding-bottom: .8rem; }
.ngps-pf-go .btn { min-height: var(--ngi-h, 40px); white-space: nowrap; }
/* fields share the row (at least 15rem each, as many as fit: six on a wide screen), the View button ends it */
@media (min-width: 992px) {
    .ngps-pf .ngps-pf-row > [class*="col-"]:not(.col-12):not(.ngps-pf-go),
    .ngps-pf .ngps-pf-row .ngps-aup-levels > [class*="col-"] { flex: 1 1 15rem; max-width: 24rem; }
    .ngps-pf-go { flex: 0 0 auto; }
}
/* a read-only value (e.g. Portal Name) stays on one line */
.ngps-pf .ngps-pf-row .input-box { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
    .ngps-pf-go { justify-content: stretch; }
    .ngps-pf-go .btn { flex: 1 1 100%; }
}

/* header menu "More" (Resources/assets/js/ngps-header-nav.js): it sits at the right edge, so its lists open leftwards */
.ngps-nav-more > .ngps-horiz-dd { left: auto; right: 0; }
.ngps-nav-more .ngps-sub-arrow { transform: rotate(180deg); }
.ngps-nav-more .ngps-horiz-sub-dd { left: auto; right: 100%; border-left: 1px solid var(--ngi-border, #dde3ee) !important; border-right: 3px solid var(--ngps-saffron, #E86D1F) !important; }

/* corp69: UserPortalFilter
   - the LGD picker's levels sit in the filter row like the other fields (it took a whole row of its own);
   - a fixed unit (a signatory's own District) reads like the other read-only values (Portal Name);
   - multi-select District of the overview dashboards (Resources/assets/js/ngps-multi-select.js). */
.ngps-pf-aup, .ngps-pf-aup > .ngps-aup, .ngps-pf-aup .ngps-aup-levels { display: contents; }
.ngps-pf-aup .ngps-aup-area { flex: 0 0 100%; padding: 0 15px 6px; }
.pcoded .ngps-aup-fixed {
    display: flex !important; align-items: center; min-height: var(--ngi-h, 40px); height: auto !important; padding: 6px 12px !important;
    background: #F6F8FB !important; border: 1px solid var(--ngi-border, #DCE4EF) !important; box-shadow: none !important;
    color: var(--ngps-ink) !important; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default;
}
.ngps-ms { position: relative; }
.pcoded .ngps-ms-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer;
    background: #fff; color: var(--ngps-ink);
}
.ngps-ms-toggle .feather { flex: 0 0 auto; color: var(--ngps-navy, #02347c); transition: transform .15s; }
.ngps-ms-toggle[aria-expanded="true"] .feather { transform: rotate(180deg); }
.ngps-ms-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ngps-ms.has-value .ngps-ms-text { color: var(--ngps-navy, #02347c); font-weight: 600; }
.ngps-ms-panel {
    position: absolute; z-index: 1060; top: calc(100% + 4px); left: 0; right: 0; min-width: 16rem; padding: 8px;
    background: #fff; border: 1px solid var(--ngi-border, #DCE4EF); border-radius: var(--ngi-radius, 8px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .16);
}
.ngps-ms-panel[hidden] { display: none; }
.pcoded .ngps-ms-search { height: 34px !important; min-height: 34px !important; font-size: .82rem; margin-bottom: 6px; }
.ngps-ms-actions { display: flex; justify-content: space-between; padding: 0 2px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--ngi-border, #DCE4EF); }
.ngps-ms-actions button { padding: 2px 4px; border: 0; background: none; color: var(--ngps-navy, #02347c); font-size: .78rem; font-weight: 600; cursor: pointer; }
.ngps-ms-actions button:hover { text-decoration: underline; }
.ngps-ms-list { max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.pcoded label.ngps-ms-option {
    display: flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 6px 8px; border-radius: 6px;
    font-size: .84rem !important; font-weight: 400 !important; color: var(--ngps-ink) !important; cursor: pointer;
}
.ngps-ms-option:hover { background: #EEF3FB; }
.ngps-ms-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--ngps-navy, #02347c); }
.ngps-ms-empty { padding: 8px; font-size: .8rem; color: var(--ngi-muted, #64748B); }
