@charset "UTF-8";

:root {
    --navy: #062c46;
    --navy-2: #0a405d;
    --blue: #0b67ad;
    --green: #16a65b;
    --green-2: #0c8e4a;
    --ink: #14232d;
    --muted: #687782;
    --bg: #f4f8f8;
    --line: #dce7eb;
    --white: #fff;
    --soft: #edf7f3;
    --shadow: 0 28px 80px rgba(5,42,65,.13)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "DM Sans", "Noto Sans", "Segoe UI", "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "Arial", sans-serif;
    color: var(--ink);
    background: #fff
}

a {
    text-decoration: none;
    color: inherit
}

.container {
    width: min(1180px,calc(100% - 40px));
    margin: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220,231,235,.8)
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px
}

    .brand img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 5px 15px rgba(5,42,65,.08)
    }

    .brand span {
        display: flex;
        flex-direction: column;
        color: var(--navy);
        line-height: 1.05
    }

    .brand strong {
        font-family: Manrope,sans-serif;
        font-size: 14px;
        letter-spacing: .2px
    }

    .brand small {
        font-size: 7.5px;
        letter-spacing: 1.1px;
        margin-top: 4px;
        color: var(--blue);
        font-weight: 700
    }

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13.5px;
    font-weight: 600
}

    .main-nav a {
        color: #43545f;
        transition: .2s
    }

        .main-nav a:hover {
            color: var(--blue)
        }

.nav-admin {
    padding: 9px 10px
}

.nav-cta {
    background: var(--navy) !important;
    color: #fff !important;
    padding: 12px 17px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(6,44,70,.13)
}

    .nav-cta span {
        margin-left: 4px
    }

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
    color: var(--navy)
}

.hero {
    position: relative;
    overflow: hidden
}

.hero-v2 {
    background: linear-gradient(135deg,#eff8f6 0%,#fff 53%,#f5f9fb 100%);
    padding: 78px 0 82px
}

.hero-pattern {
    position: absolute;
    width: 620px;
    height: 620px;
    right: -230px;
    top: -240px;
    border-radius: 50%;
    border: 1px solid rgba(22,166,91,.12);
    box-shadow: 0 0 0 60px rgba(22,166,91,.025),0 0 0 120px rgba(22,166,91,.018)
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 72px;
    align-items: center
}

.eyebrow {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--green);
    text-transform: uppercase
}

h1, h2, h3 {
    font-family: Manrope,Arial,sans-serif
}

.hero-copy h1 {
    font-size: clamp(44px,5.8vw,76px);
    line-height: 1.01;
    letter-spacing: -3.5px;
    margin: 17px 0 23px;
    color: var(--navy)
}

    .hero-copy h1 span {
        color: var(--green)
    }

.hero-copy > p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 640px;
    margin: 0
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 31px 0 26px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 11px;
    padding: 14px 20px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 13px 30px rgba(22,166,91,.2)
}

    .btn-primary:hover {
        background: var(--green-2)
    }

.btn-light {
    background: #fff;
    border-color: var(--line);
    color: var(--navy)
}

.btn-dark {
    background: var(--navy);
    color: #fff
}

    .btn-dark:hover {
        background: #0b405d
    }

.full {
    width: 100%
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #50626d;
    font-size: 12px;
    font-weight: 600
}

.note-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e1f4e9;
    color: var(--green);
    font-weight: 900
}

.note-divider {
    width: 1px;
    height: 15px;
    background: #ccd8de;
    margin: 0 4px
}

.finder-wrap {
    position: relative
}

.finder-shadow {
    position: absolute;
    inset: 10% 0 -8% 13%;
    border-radius: 35px;
    background: rgba(22,166,91,.14);
    filter: blur(25px)
}

.funding-card {
    position: relative;
    background: #fff;
    border: 1px solid #dce8ed;
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 445px;
    margin-left: auto
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6a7982;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px
}

.live-badge {
    letter-spacing: .3px;
    text-transform: none;
    font-size: 10px;
    color: #278252;
    background: #eaf7ef;
    border-radius: 20px;
    padding: 7px 9px
}

    .live-badge i {
        display: inline-block;
        width: 6px;
        height: 6px;
        background: var(--green);
        border-radius: 50%;
        margin-right: 5px
    }

.funding-card h3 {
    font-size: 27px;
    line-height: 1.18;
    letter-spacing: -.8px;
    margin: 25px 0 25px;
    color: var(--navy)
}

.funding-card label, .field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #52636d;
    margin-bottom: 7px
}

.funding-card select, .field input, .field select {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid #d6e2e7;
    border-radius: 11px;
    background: #fff;
    font: inherit;
    color: var(--ink);
    outline: none
}

    .funding-card select:focus, .field input:focus, .field select:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 4px rgba(11,103,173,.08)
    }

.finder-info {
    background: #f2f8f7;
    border: 1px solid #e2efeb;
    border-radius: 13px;
    padding: 15px;
    margin: 15px 0 16px
}

    .finder-info span {
        font-size: 10px;
        color: #6c7c83;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 800
    }

    .finder-info strong {
        display: block;
        margin: 5px 0 2px;
        color: var(--navy);
        font-size: 14px
    }

    .finder-info small {
        font-size: 11px;
        color: var(--muted)
    }

.section {
    padding: 88px 0
}

.intro-section {
    background: #fff
}

.split-heading {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 38px
}

    .section-heading h2, .split-heading h2, .cta h2 {
        font-size: 42px;
        letter-spacing: -1.7px;
        line-height: 1.08;
        color: var(--navy);
        margin: 12px 0
    }

    .split-heading p {
        font-size: 16px;
        line-height: 1.75;
        color: var(--muted);
        margin: 0
    }

.loan-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px
}

.premium-grid {
    grid-template-columns: repeat(4,1fr)
}

.loan-tile {
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 22px;
    background: #fff;
    transition: .2s;
    min-height: 145px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.premium-tile {
    position: relative;
    overflow: hidden
}

    .premium-tile:after {
        content: "";
        position: absolute;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        right: -25px;
        bottom: -28px;
        background: #f0f8f5
    }

.loan-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(7,44,68,.08);
    border-color: #bfd2dc
}

.loan-number {
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--green)
}

.tile-arrow {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #9aaab2;
    font-weight: 800
}

.loan-tile strong {
    font-family: Manrope,sans-serif;
    font-size: 16px;
    color: var(--navy);
    position: relative;
    z-index: 1
}

.loan-tile small {
    color: var(--muted);
    font-size: 12px;
    position: relative;
    z-index: 1
}

.process-section {
    background: var(--navy);
    padding: 84px 0;
    color: #fff
}

.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto
}

.section-heading.light h2 {
    color: #fff
}

.section-heading.light p {
    color: #b9c9d3;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7
}

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;
    margin-top: 45px
}

    .steps > div {
        border-top: 1px solid rgba(255,255,255,.18);
        padding-top: 21px
    }

    .steps b {
        color: #5bd391;
        font-size: 12px;
        letter-spacing: 1px
    }

    .steps h3 {
        font-size: 23px;
        margin: 19px 0 8px
    }

    .steps p {
        color: #b9c9d3;
        line-height: 1.65;
        margin: 0
    }

.cta {
    padding: 48px 0;
    background: #eaf6ef
}

.cta-v2 {
    border-top: 1px solid #d9eee2
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.cta h2 {
    margin-bottom: 7px
}

.cta p {
    color: var(--muted);
    margin: 0
}

/*.site-footer {
    background: #061f30;
    color: #fff;
    padding: 58px 0 20px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px
}

.footer-brand {
    font-family: Manrope,sans-serif;
    font-weight: 800;
    letter-spacing: 1px
}

.site-footer p {
    color: #9db0bb
}

.site-footer h4 {
    margin-top: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.site-footer a {
    display: block;
    color: #cbd7dd;
    margin: 10px 0;
    font-size: 13px
}

.copyright {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 36px;
    padding-top: 18px;
    color: #718691;
    font-size: 11px
}*/

.page-hero {
    padding: 72px 0;
    background: linear-gradient(135deg,#eff8f6,#fff)
}

    .page-hero h1 {
        font-size: 55px;
        max-width: 850px
    }

    .page-hero p {
        font-size: 17px;
        color: var(--muted);
        max-width: 720px;
        line-height: 1.7
    }

    .page-hero.compact {
        padding: 54px 0
    }

.loan-grid.large {
    grid-template-columns: repeat(3,1fr)
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    transition: .2s
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 40px rgba(7,44,68,.08);
        border-color: #bfd2dc
    }

    .product-card h3 {
        font-size: 21px;
        color: var(--navy);
        margin: 20px 0 8px
    }

    .product-card p {
        color: var(--muted);
        line-height: 1.55;
        min-height: 48px
    }

    .product-card a {
        font-weight: 700;
        color: var(--blue)
    }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px
}

    .two-col p {
        font-size: 17px;
        line-height: 1.8;
        color: var(--muted)
    }

/*.contact-card {
    padding: 32px;
    border-radius: 20px;
    background: #f3f8fa;
    border: 1px solid var(--line)
}

.check-list {
    padding: 0;
    list-style: none
}

    .check-list li {
        padding: 12px 0;
        border-bottom: 1px solid var(--line)
    }

        .check-list li:before {
            content: '✓';
            color: var(--green);
            font-weight: 800;
            margin-right: 10px
        }*/

.form-shell {
    max-width: 900px
}

.lead-form {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 25px
}

.field span {
    display: block;
    color: inherit;
    font-size: 12px;
    margin-top: 5px
}

.chosen-container-single .chosen-single span {
   padding-left: 30px;
}

.full-field {
    grid-column: 1/-1
}

.validation {
    color: #c0392b;
    margin-bottom: 15px
}

.alert-success {
    margin-top: 20px;
    background: #eaf6ef;
    border: 1px solid #bfe5cb;
    color: #166534;
    padding: 14px;
    border-radius: 10px
}

/*.auth-page {
    min-height: calc(100vh - 82px);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,#eff8f6,#fff)
}

.auth-glow {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    right: -190px;
    top: -160px;
    background: rgba(22,166,91,.09);
    filter: blur(5px)
}

.auth-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 90px;
    align-items: center;
    padding: 85px 0
}

.auth-intro h1 {
    font-size: 50px;
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--navy);
    max-width: 650px;
    margin: 15px 0
}

.auth-intro > p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
    max-width: 650px
}*/

.role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px
}

    .role-pills span {
        padding: 8px 11px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 30px;
        font-size: 11px;
        font-weight: 700;
        color: #52636d
    }

/*.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 23px;
    padding: 30px;
    box-shadow: var(--shadow)
}

.auth-logo img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 22px
}

.auth-card h2 {
    font-size: 28px;
    color: var(--navy);
    margin: 12px 0 4px
}*/

.stack-form {
    display: grid;
    gap: 17px;
    margin-top: 23px
}

/*.demo-note {
    display: block;
    color: #8a979e;
    line-height: 1.5;
    margin-top: 18px
}*/

.form-error {
    margin-top: 15px;
    padding: 11px;
    border-radius: 9px;
    background: #fff0ef;
    color: #a33a32;
    font-size: 12px
}

.admin-shell {
    background: #f5f8fa;
    min-height: calc(100vh - 82px);
    padding: 55px 0 80px
}

.admin-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px
}

    .admin-topbar h1 {
        font-size: 42px;
        letter-spacing: -1.7px;
        margin: 10px 0 5px
    }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px
}

    .stat-card span, .stat-card small {
        display: block;
        color: var(--muted);
        font-size: 11px
    }

    .stat-card strong {
        display: block;
        font-family: Manrope,sans-serif;
        font-size: 31px;
        color: var(--navy);
        margin: 12px 0 2px
    }

    .stat-card.accent {
        background: var(--navy);
        border-color: var(--navy)
    }

        .stat-card.accent strong, .stat-card.accent span, .stat-card.accent small {
            color: #fff
        }

.admin-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 15px;
    margin-top: 15px
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 24px
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start
}

    .panel-head h2 {
        font-size: 19px;
        color: var(--navy);
        margin: 0 0 5px
    }

    .panel-head p {
        font-size: 12px;
        color: var(--muted);
        margin: 0
    }

    .panel-head a {
        color: var(--blue);
        font-weight: 700;
        font-size: 12px
    }

.workflow {
    margin-top: 22px;
    display: grid;
    gap: 9px
}

.workflow-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e3eaee;
    border-radius: 12px
}

    .workflow-item.active {
        background: #f0f8f5;
        border-color: #d8eee3
    }

    .workflow-item > b {
        display: grid;
        place-items: center;
        width: 35px;
        height: 35px;
        border-radius: 10px;
        background: #edf3f6;
        color: var(--navy);
        font-size: 10px
    }

    .workflow-item.active > b {
        background: #d9f1e4;
        color: var(--green)
    }

    .workflow-item strong {
        display: block;
        font-size: 13px;
        color: var(--navy)
    }

    .workflow-item span {
        font-size: 11px;
        color: var(--muted)
    }

.hierarchy-list {
    margin-top: 20px
}

    .hierarchy-list div {
        display: grid;
        grid-template-columns: 32px 1fr;
        column-gap: 9px;
        padding: 12px 0;
        border-bottom: 1px solid #edf1f3
    }

    .hierarchy-list b {
        grid-row: span 2;
        color: var(--green);
        font-size: 10px
    }

    .hierarchy-list span {
        font-size: 12px;
        font-weight: 800;
        color: var(--navy)
    }

    .hierarchy-list small {
        font-size: 10px;
        color: var(--muted);
        margin-top: 3px
    }

.loan-admin {
    margin-top: 15px
}

.admin-loans {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px
}

    .admin-loans span {
        font-size: 11px;
        font-weight: 700;
        color: #52636d;
        padding: 9px 11px;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: #fafcfc
    }

@media(max-width:900px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line)
    }

        .main-nav.open {
            display: flex
        }

    .menu-toggle {
        display: block
    }

    .hero-grid, .split-heading, .auth-wrap {
        grid-template-columns: 1fr;
        gap: 45px
    }

    .finder-wrap {
        max-width: 520px
    }

    .funding-card {
        margin: 0 auto
    }

    .loan-grid, .premium-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .steps {
        grid-template-columns: 1fr
    }

    .cta-inner, .admin-topbar {
        align-items: flex-start;
        flex-direction: column
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .admin-grid {
        grid-template-columns: 1fr
    }

    .stats-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:560px) {
    .container {
        width: min(100% - 28px,1180px)
    }

    .nav-wrap {
        height: 72px
    }

    .hero-v2 {
        padding: 50px 0
    }

    .hero-copy h1 {
        font-size: 46px;
        letter-spacing: -2.2px
    }

    .hero-actions {
        flex-direction: column
    }

    .hero-note {
        flex-wrap: wrap
    }

    .note-divider {
        display: none
    }

    .funding-card {
        padding: 23px
    }

    .section {
        padding: 62px 0
    }

    .split-heading {
        gap: 20px
    }

        .section-heading h2, .split-heading h2, .cta h2 {
            font-size: 32px
        }

    .loan-grid, .premium-grid, .form-grid, .footer-grid, .stats-grid {
        grid-template-columns: 1fr
    }

    .full-field {
        grid-column: auto
    }

    .page-hero h1 {
        font-size: 40px
    }

    .auth-wrap {
        padding: 55px 0
    }

    .auth-intro h1 {
        font-size: 39px
    }

    .admin-topbar h1 {
        font-size: 36px
    }
}
/* Phase 1B admin system */
.auth-page {
    display: grid;
    place-items: center;
    padding: 60px 20px
}

.auth-card {
    width: min(440px,100%)
}

    .auth-card h1 {
        font-size: 34px;
        letter-spacing: -1px;
        color: var(--navy);
        margin: 12px 0 6px
    }

    .auth-card label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #52636d;
        margin: 15px 0 7px
    }

    .auth-card .form-control {
        width: 100%;
        padding: 13px 14px;
        border: 1px solid #d6e2e7;
        border-radius: 10px;
        font: inherit;
        outline: none
    }

        .auth-card .form-control:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 4px rgba(11,103,173,.08)
        }

.check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important
}

.validation {
    color: #b42318;
    font-size: 12px;
    margin: 10px 0
}

.demo-note {
    font-size: 10px
}

.admin-shell {
    min-height: calc(100vh - 82px)
}

.admin-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px
}

    .admin-top h1 {
        font-size: 42px;
        letter-spacing: -1.7px;
        margin: 9px 0 4px;
        color: var(--navy)
    }

    .admin-top .muted {
        margin: 0
    }

.admin-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 25px;
    min-height: 190px;
    transition: .2s
}

    .admin-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 38px rgba(7,44,68,.08);
        border-color: #bfd2dc
    }

    .admin-card h3 {
        color: var(--navy);
        font-size: 20px;
        margin: 14px 0 8px
    }

    .admin-card p {
        color: var(--muted);
        font-size: 12px;
        line-height: 1.6;
        margin: 0 0 16px
    }

.card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #eaf6ef;
    color: var(--green);
    font-weight: 900
}

.card-link {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800
}

.muted-card {
    opacity: .82
}

.panel h2 {
    color: var(--navy);
    font-size: 18px;
    margin: 0 0 16px
}

.inline-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr auto;
    gap: 10px
}

    .inline-form .form-control {
        min-width: 0
    }

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px
}

th, td {
    text-align: left;
    padding: 13px 12px;
    border-bottom: 1px solid #e8eef1
}

th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #697983;
    background: #f7fafb
}

td {
    color: #4e606a
}

.pill, .status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800
}

.pill {
    background: #edf3f6;
    color: #53646e
}

.status.active {
    background: #e8f7ee;
    color: #177245
}

.status.inactive {
    background: #fff0ef;
    color: #a33a32
}

.btn-outline {
    border-color: #ccd9df;
    background: #fff;
    color: var(--navy)
}

    .btn-outline:hover {
        border-color: #a9bdc8
    }

.btn-sm {
    padding: 7px 10px;
    font-size: 11px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy)
}

.empty-state {
    min-height: calc(100vh - 82px);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 60px
}

    .empty-state h1 {
        color: var(--navy)
    }

@media(max-width:800px) {
    .inline-form {
        grid-template-columns: 1fr
    }

    .admin-top {
        align-items: flex-start;
        flex-direction: column
    }

        .admin-top h1 {
            font-size: 35px
        }
}

/* Application module */
.form-section-title {
    grid-column: 1/-1;
    font-weight: 800;
    font-size: 1rem;
    color: #0b4f8a;
    margin-top: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #dce7ee
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px
}

    .checkbox-field input {
        width: 18px;
        height: 18px
    }

    .checkbox-field label {
        margin: 0
    }

.privacy-note {
    font-size: .82rem;
    line-height: 1.55;
    color: #687680;
    background: #f6f9fb;
    border: 1px solid #e0e8ed;
    padding: 12px;
    border-radius: 12px;
    margin: 14px 0
}

.success-shell {
    max-width: 680px;
    margin: 50px auto;
    text-align: center;
    background: #fff;
    border: 1px solid #e2e9ee;
    border-radius: 28px;
    padding: 55px 35px;
    box-shadow: 0 18px 60px rgba(17,51,77,.08)
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9f8ef;
    color: #16a05d;
    font-size: 32px;
    font-weight: 800
}

.application-number {
    margin: 25px auto;
    padding: 18px;
    border-radius: 15px;
    background: #f5f9fc;
    border: 1px dashed #b9cbd7
}

    .application-number span {
        display: block;
        color: #65737d;
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .08em
    }

    .application-number strong {
        display: block;
        color: #0b4f8a;
        font-size: 1.45rem;
        margin-top: 5px
    }

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px
}

    .filter-row a {
        padding: 9px 13px;
        border: 1px solid #d9e3e9;
        border-radius: 999px;
        color: #31505f;
        background: #fff;
        text-decoration: none;
        font-size: .85rem
    }

        .filter-row a:hover {
            border-color: #0b4f8a;
            color: #0b4f8a
        }

.table-card {
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e9ee;
    border-radius: 18px
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 850px
}

    .admin-table th, .admin-table td {
        padding: 13px 14px;
        text-align: left;
        border-bottom: 1px solid #edf1f4;
        font-size: .86rem
    }

    .admin-table th {
        background: #f5f8fa;
        color: #52626c;
        font-size: .74rem;
        text-transform: uppercase;
        letter-spacing: .06em
    }

    .admin-table tr:last-child td {
        border-bottom: 0
    }

    .admin-table small {
        color: #77848c
    }

.table-link {
    color: #0b4f8a;
    font-weight: 700;
    text-decoration: none
}

.empty-cell {
    text-align: center !important;
    padding: 45px !important;
    color: #7a8790
}

.status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef4f7;
    color: #31505f;
    font-size: .72rem;
    font-weight: 700
}

.status-approved, .status-verified {
    background: #e9f8ef;
    color: #18794e
}

.status-rejected {
    background: #fff0f0;
    color: #a63b3b
}

.status-underreview, .status-submitted {
    background: #fff7df;
    color: #8b6810
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-bottom: 16px
}

.detail-card {
    background: #fff;
    border: 1px solid #e2e9ee;
    border-radius: 18px;
    padding: 22px
}

    .detail-card h2 {
        margin: 0 0 16px;
        font-size: 1rem;
        color: #0b4f8a
    }

    .detail-card dl {
        margin: 0
    }

    .detail-card dt {
        font-size: .72rem;
        color: #74818a;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-top: 11px
    }

        .detail-card dt:first-child {
            margin-top: 0
        }

    .detail-card dd {
        margin: 4px 0 0;
        font-weight: 600;
        color: #263740;
        word-break: break-word
    }

.workflow-card {
    margin-bottom: 30px
}

    .workflow-card textarea {
        width: 100%;
        resize: vertical;
        border: 1px solid #d5e0e6;
        border-radius: 10px;
        padding: 12px;
        font: inherit
    }

@media (max-width:900px) {
    .detail-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:650px) {
    .detail-grid {
        grid-template-columns: 1fr
    }

    .success-shell {
        margin: 25px auto;
        padding: 38px 20px
    }

    .admin-table {
        min-width: 760px
    }
}

.nav-link-button {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: .5rem 1rem;
    cursor: pointer
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: #f6f7fb
}

.admin-sidebar {
    width: 250px;
    background: #172033;
    color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px
}

    .admin-sidebar a, .admin-sidebar button {
        display: block;
        width: 100%;
        text-align: left;
        color: #fff;
        background: none;
        border: 0;
        text-decoration: none;
        padding: 11px 12px;
        border-radius: 8px;
        cursor: pointer;
        font: inherit
    }

        .admin-sidebar a:hover, .admin-sidebar button:hover {
            background: #27334b
        }

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px
}

    .admin-brand img {
        width: 42px;
        height: 42px;
        object-fit: contain;
        border-radius: 6px;
        background: #fff
    }

.admin-bottom {
    margin-top: auto
}

.admin-main {
    flex: 1;
    padding: 24px
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05)
}
/* OMSairashmi operations console */
.admin-body {
    background: #f3f7f8;
    color: var(--ink)
}

.admin-app {
    min-height: 100vh;
    display: flex;
    background: #f3f7f8
}

.admin-sidebar {
    position: sticky;
    top: 0;
    width: 264px;
    height: 100vh;
    flex: 0 0 264px;
    padding: 22px 15px;
    background: linear-gradient(180deg,#062c46,#08243a);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 35px rgba(5,42,65,.08);
    z-index: 20
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 9px 22px;
    color: #fff
}

    .admin-brand img {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        object-fit: cover;
        background: #fff
    }

    .admin-brand span {
        display: flex;
        flex-direction: column
    }

    .admin-brand strong {
        font-family: Manrope,sans-serif;
        font-size: 13px;
        letter-spacing: .5px
    }

    .admin-brand small {
        font-size: 8px;
        letter-spacing: 1.2px;
        color: #8dd9b0;
        margin-top: 4px
    }

.admin-scope {
    margin: 0 5px 18px;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    border-radius: 12px
}

    .admin-scope span {
        display: block;
        font-size: 8px;
        letter-spacing: 1.5px;
        color: #91a8b6
    }

    .admin-scope strong {
        display: block;
        font-size: 11px;
        margin-top: 5px;
        color: #fff
    }

.admin-nav {
    display: grid;
    gap: 5px
}

    .admin-nav a, .admin-sidebar-bottom a, .admin-sidebar-bottom button {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px 13px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #c8d5dc;
        font: 600 12px "DM Sans",sans-serif;
        text-align: left;
        cursor: pointer
    }

        /*.admin-nav a:first-child, .admin-nav a:hover, .admin-sidebar-bottom a:hover, .admin-sidebar-bottom button:hover {
            background: rgba(255,255,255,.09);
            color: #fff
        }

        .admin-nav a:first-child {
            box-shadow: inset 3px 0 #48c984
        }*/
    .admin-nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 10px;
        color: #64748b;
        text-decoration: none;
        font-weight: 600;
        transition: all .2s ease;
    }

        .admin-nav a:hover {
            background: #f1f5f9;
            color: #0f172a;
        }

        .admin-nav a.active {
            background: #e8f0ff;
            color: #174ea6;
            font-weight: 700;
        }

            .admin-nav a.active span {
                color: inherit;
            }

.admin-sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 14px
}

    .admin-sidebar-bottom form {
        margin: 0
    }

.admin-main {
    min-width: 0;
    flex: 1;
    padding: 0 34px 60px
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    margin: 0 -34px 28px;
    padding: 0 34px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid #e1eaee
}

    .admin-topbar > div:first-child {
        display: flex;
        flex-direction: column;
        gap: 3px
    }

.admin-kicker {
    font-size: 8px;
    letter-spacing: 1.7px;
    color: var(--green);
    font-weight: 800
}

.admin-topbar strong {
    font-family: Manrope,sans-serif;
    font-size: 16px;
    color: var(--navy)
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: #5d6d76;
    font-weight: 700
}

.admin-avatar {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #e3f3eb;
    color: var(--green);
    font-weight: 900
}

.admin-page {
    width: min(1320px,100%);
    margin: auto
}

.admin-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin: 15px 0 25px
}

    .admin-hero-row h1 {
        font-size: 42px;
        letter-spacing: -1.8px;
        color: var(--navy);
        margin: 8px 0 5px
    }

    .admin-hero-row .muted {
        max-width: 720px;
        margin: 0;
        line-height: 1.65
    }

.scope-chip {
    display: inline-flex;
    margin-top: 13px;
    padding: 8px 11px;
    border: 1px solid #dbe9e4;
    background: #eff8f4;
    color: #26754f;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800
}

.admin-stats {
    grid-template-columns: repeat(4,1fr);
    margin-bottom: 16px
}

.stat-dark {
    background: linear-gradient(135deg,#062c46,#0a405d);
    border-color: #0a405d
}

    .stat-dark span, .stat-dark small, .stat-dark strong {
        color: #fff
    }

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.45fr .75fr;
    gap: 16px
}

.panel {
    box-shadow: 0 10px 30px rgba(8,45,65,.045)
}

.panel-feature {
    min-height: 330px
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 25px
}

    .quick-actions a {
        display: flex;
        gap: 12px;
        padding: 15px;
        border: 1px solid #e4ecef;
        border-radius: 13px;
        background: #fbfdfd;
        transition: .18s
    }

        .quick-actions a:hover {
            transform: translateY(-2px);
            border-color: #c7d9df;
            box-shadow: 0 10px 25px rgba(5,42,65,.06)
        }

    .quick-actions b {
        display: grid;
        place-items: center;
        flex: 0 0 38px;
        height: 38px;
        border-radius: 10px;
        background: #e8f6ef;
        color: var(--green);
        font-size: 18px
    }

    .quick-actions strong, .quick-actions small {
        display: block
    }

    .quick-actions strong {
        font-size: 12px;
        color: var(--navy)
    }

    .quick-actions small {
        font-size: 10px;
        color: var(--muted);
        line-height: 1.45;
        margin-top: 3px
    }

.workflow {
    display: grid;
    gap: 8px;
    margin-top: 22px
}

    .workflow > div {
        display: grid;
        grid-template-columns: 30px 1fr auto;
        align-items: center;
        gap: 9px;
        padding: 11px 0;
        border-bottom: 1px solid #edf1f3
    }

    .workflow b {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: #eef4f6;
        color: var(--navy);
        font-size: 9px
    }

    .workflow span {
        font-size: 11px;
        color: var(--muted)
    }

    .workflow strong {
        font-family: Manrope,sans-serif;
        font-size: 18px;
        color: var(--navy)
    }

.staff-create {
    margin-bottom: 16px
}

.form-grid.four {
    grid-template-columns: repeat(4,1fr)
}

.form-grid.three {
    grid-template-columns: repeat(3,1fr)
}

.action-field {
    display: flex;
    align-items: end
}

.role-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf4f7;
    color: #355666;
    font-size: 10px;
    font-weight: 800
}

.form-section-title {
    font-family: Manrope,sans-serif;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    margin: 22px 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e7eef1
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #e8eef1
}

.dynamic-fields {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px
}

.empty-inline {
    grid-column: 1/-1;
    padding: 20px;
    border: 1px dashed #cfdde2;
    border-radius: 11px;
    color: var(--muted);
    font-size: 12px;
    background: #fbfdfd
}

.checkbox-field {
    display: flex;
    align-items: end
}

    .checkbox-field label {
        display: flex;
        gap: 8px;
        align-items: center
    }

.org-tree {
    display: grid;
    gap: 4px;
    margin-top: 14px
}

.org-row {
    display: grid;
    grid-template-columns: 145px 1fr;
    align-items: center;
    padding: 13px 12px;
    border: 1px solid #e7eef1;
    border-radius: 11px;
    background: #fff
}

    .org-row.level-2 {
        margin-left: 22px
    }

    .org-row.level-3 {
        margin-left: 44px
    }

    .org-row.level-4 {
        margin-left: 66px
    }

.org-level {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    font-weight: 900
}

.org-row strong {
    font-size: 12px;
    color: var(--navy)
}

.org-row small {
    display: block;
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px
}

.success-banner {
    width: min(1320px,calc(100% - 40px));
    margin: 0 auto 16px;
    padding: 12px 15px;
    border: 1px solid #cce9d8;
    border-radius: 11px;
    background: #edf9f2;
    color: #1f7147;
    font-size: 12px;
    font-weight: 700
}

@media(max-width:1000px) {
    .admin-sidebar {
        width: 220px;
        flex-basis: 220px
    }

    .admin-main {
        padding-left: 22px;
        padding-right: 22px
    }

    .admin-topbar {
        margin-left: -22px;
        margin-right: -22px;
        padding-left: 22px;
        padding-right: 22px
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr
    }

    .form-grid.four, .form-grid.three, .dynamic-fields {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:760px) {
    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex: auto
    }

    .admin-app {
        display: block
    }

    .admin-sidebar-bottom {
        margin-top: 14px
    }

    .admin-nav {
        grid-template-columns: repeat(2,1fr)
    }

    .admin-main {
        padding: 0 14px 35px
    }

    .admin-topbar {
        margin-left: -14px;
        margin-right: -14px;
        padding: 0 14px
    }

    .admin-hero-row {
        align-items: flex-start;
        flex-direction: column
    }

        .admin-hero-row h1 {
            font-size: 35px
        }

    .admin-stats {
        grid-template-columns: repeat(2,1fr)
    }

    .quick-actions, .form-grid.four, .form-grid.three, .dynamic-fields {
        grid-template-columns: 1fr
    }

    .org-row.level-2, .org-row.level-3, .org-row.level-4 {
        margin-left: 0
    }

    .admin-user > span:last-child {
        display: none
    }
}

/* =========================================================
   OMSAIRASHMI - APPLICATIONS
   ========================================================= */

.application-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #d8e3e8;
    border-radius: 999px;
    background: #fff;
    color: #48606c;
    font-size: 11px;
    font-weight: 800;
    transition: .18s ease;
}

    .filter-chip:hover {
        border-color: #0b67ad;
        color: #0b67ad;
        transform: translateY(-1px);
    }

    .filter-chip.active {
        background: #062c46;
        border-color: #062c46;
        color: #fff;
        box-shadow: 0 7px 18px rgba(6,44,70,.12);
    }


/* Applications card */

.applications-card {
    background: #fff;
    border: 1px solid #dfe8ec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(8,45,65,.045);
}

.applications-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #e8eef1;
}

    .applications-card-header h2 {
        margin: 0 0 4px;
        font-family: Manrope, Arial, sans-serif;
        font-size: 18px;
        color: var(--navy);
    }

    .applications-card-header p {
        margin: 0;
        color: var(--muted);
        font-size: 11px;
    }


/* Table */

.applications-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

    .applications-table th {
        padding: 13px 16px;
        background: #f7fafb;
        border-bottom: 1px solid #e2eaee;
        color: #667780;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 1px;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .applications-table td {
        padding: 16px;
        border-bottom: 1px solid #edf1f3;
        color: #40535d;
        font-size: 12px;
        vertical-align: middle;
    }

    .applications-table tbody tr {
        transition: background .15s ease;
    }

        .applications-table tbody tr:hover {
            background: #fbfdfd;
        }

        .applications-table tbody tr:last-child td {
            border-bottom: 0;
        }


    /* Applicant */

    .applications-table td strong {
        display: block;
        color: var(--navy);
        font-weight: 800;
    }

    .applications-table td small {
        display: block;
        margin-top: 4px;
        color: #7b8991;
        font-size: 10px;
    }

.application-number-text {
    color: #0b67ad !important;
    font-family: Manrope, Arial, sans-serif;
    font-size: 12px;
}

.loan-name {
    display: inline-block;
    max-width: 180px;
    color: #344e5c;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.received-date {
    display: block;
    color: #3c505b;
    font-weight: 700;
    white-space: nowrap;
}


/* Status */

.application-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

    .application-status.status-submitted {
        background: #fff7df;
        color: #8b6810;
    }

    .application-status.status-contacted {
        background: #edf5ff;
        color: #27669b;
    }

    .application-status.status-documentspending {
        background: #fff0df;
        color: #9a5c0b;
    }

    .application-status.status-underreview {
        background: #fff7df;
        color: #8b6810;
    }

    .application-status.status-verified {
        background: #e9f8ef;
        color: #18794e;
    }

    .application-status.status-approved {
        background: #dff5e8;
        color: #11683f;
    }

    .application-status.status-rejected {
        background: #fff0f0;
        color: #a63b3b;
    }


/* Open button */

.application-action {
    text-align: right !important;
}

.table-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 11px;
    border: 1px solid #d9e4e8;
    border-radius: 8px;
    background: #fff;
    color: #0b4f8a;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
    transition: .18s ease;
}

    .table-link:hover {
        background: #062c46;
        border-color: #062c46;
        color: #fff;
    }


/* Empty */

.application-empty {
    padding: 70px 20px;
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 15px;
    border-radius: 15px;
    background: #edf4f7;
    color: #0b67ad;
    font-size: 25px;
}

.application-empty strong {
    font-family: Manrope, Arial, sans-serif;
    font-size: 16px;
    color: var(--navy);
}

.application-empty p {
    margin: 7px 0 18px;
    color: var(--muted);
    font-size: 11px;
}


/* Mobile */

@media (max-width: 760px) {

    .applications-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .applications-card-header .btn {
            width: 100%;
        }

    .application-filters {
        gap: 6px;
    }

    .filter-chip {
        font-size: 10px;
        padding: 7px 11px;
    }

    .applications-table {
        min-width: 900px;
    }
}


/* Public enquiry consent and legal pages */
.location-routing-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    margin: 0 0 18px;
    border: 1px solid #dcebe5;
    border-radius: 12px;
    background: #f5fbf8;
    color: #4d5f68;
    font-size: 13px;
    line-height: 1.55;
}

.location-routing-note strong {
    color: var(--navy);
}

.consent-box {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #dbe5e9;
    border-radius: 14px;
    background: #fbfdfd;
}

.consent-title {
    margin-bottom: 12px;
    color: var(--navy);
    font-weight: 800;
    font-size: 14px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    color: #445760;
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

.consent-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.consent-row a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
}

.field-validation-error {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
}

.legal-section {
    padding-top: 20px;
}

.legal-document {
    max-width: 900px;
}

.legal-document h2 {
    margin: 30px 0 9px;
    color: var(--navy);
    font-size: 20px;
}

.legal-document p {
    color: #52636d;
    line-height: 1.75;
}

.legal-updated {
    margin-bottom: 20px;
    font-size: 13px;
}

.legal-callout {
    padding: 16px 18px;
    border-left: 4px solid var(--green);
    border-radius: 10px;
    background: #f2f8f6;
    color: #4b5e66;
    line-height: 1.65;
}

@media (max-width: 700px) {
    .location-routing-note {
        display: block;
    }

    .location-routing-note span {
        display: block;
        margin-top: 4px;
    }

    .consent-box {
        padding: 15px;
    }
}

/* =========================================
   LOAN FINANCERS
   ========================================= */
.financers-section {
    padding: 90px 0 70px;
    background: #f7f8fa;
    overflow: hidden;
}

.financers-section .section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
}

    .financers-section .section-heading p {
        margin: 15px auto 0;
        max-width: 650px;
    }

.financer-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 15px 0 25px;
}

.financer-track {
    display: flex;
    width: max-content;
    gap: 25px;
    animation: financerScroll 180s linear infinite;
}

.financer-card {
    width: 220px;
    height: 110px;
    flex: 0 0 220px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .financer-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.09);
    }

    .financer-card img {
        max-width: 170px;
        max-height: 65px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

@keyframes financerScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 12.5px));
    }
}

.financer-note {
    text-align: center;
    max-width: 850px;
    margin: 20px auto 0;
    font-size: 13px;
    line-height: 1.6;
    color: #777;
}


/* Pause scrolling when user hovers over the financer logos */

.financer-marquee:hover .financer-track {
    animation-play-state: paused;
}


/* Mobile */

@media (max-width: 768px) {

    .financers-section {
        padding: 65px 0 50px;
    }

    .financer-track {
        gap: 15px;
        animation-duration: 22s;
    }

    .financer-card {
        width: 170px;
        height: 90px;
        flex-basis: 170px;
        border-radius: 12px;
        padding: 15px;
    }

        .financer-card img {
            max-width: 135px;
            max-height: 52px;
        }

    .financer-note {
        padding: 0 20px;
    }
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 45px;
    padding-top: 55px;
    padding-bottom: 50px;
}


/* Company */

.footer-brand {
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.footer-company-subtitle {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 4px 0 18px;
}

.footer-company .muted {
    max-width: 390px;
    line-height: 1.7;
    margin-bottom: 22px;
}


/* Footer columns */

.footer-column h4 {
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
}

.footer-column > a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.25s ease;
}

    .footer-column > a:hover {
        color: #f59e0b;
        transform: translateX(3px);
    }


/* Contact information */

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 13px;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.65;
}

    .footer-contact-item a {
        color: #d1d5db;
        text-decoration: none;
        transition: color 0.25s ease;
    }

        .footer-contact-item a:hover {
            color: #f59e0b;
        }

.footer-icon {
    width: 20px;
    min-width: 20px;
    color: #f59e0b;
    text-align: center;
    margin-top: 3px;
}


/* Social media */

.social-title {
    margin-top: 28px !important;
    margin-bottom: 14px !important;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .social-icons a {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.16);
        border-radius: 50%;
        background: rgba(255,255,255,0.04);
        color: #ffffff;
        text-decoration: none;
        transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    }

        .social-icons a:hover {
            background: #f59e0b;
            border-color: #f59e0b;
            color: #111827;
            transform: translateY(-3px);
        }


/* Footer bottom */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-bottom-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyright {
    color: #9ca3af;
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

    .footer-bottom-links a {
        color: #9ca3af;
        text-decoration: none;
        font-size: 13px;
        transition: color 0.25s ease;
    }

        .footer-bottom-links a:hover {
            color: #f59e0b;
        }


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-icons {
        margin-bottom: 10px;
    }
}

/* =========================================
   CONTACT PAGE
   ========================================= */

.contact-card {
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

    .contact-card h3 {
        margin-top: 0;
        margin-bottom: 12px;
        color: #111827;
        font-family: "Manrope", sans-serif;
        font-size: 22px;
    }

.contact-intro {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 28px;
}


/* Contact detail */

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-detail-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff7ed;
    color: #f59e0b;
    font-size: 17px;
}

.contact-detail strong {
    display: block;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-detail p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.contact-detail a {
    color: #374151;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .contact-detail a:hover {
        color: #f59e0b;
    }


/* Buttons */

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

    .btn-secondary:hover {
        border-color: #f59e0b;
        color: #f59e0b;
    }


/* Right side */

.contact-side-text {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 22px;
}

.check-list {
    padding-left: 0;
    list-style: none;
}

    .check-list li {
        position: relative;
        padding-left: 30px;
        margin-bottom: 15px;
        color: #374151;
    }

        .check-list li::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 1px;
            width: 21px;
            height: 21px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #fff7ed;
            color: #f59e0b;
            font-size: 11px;
        }


/* Contact note */

.contact-note {
    margin-top: 35px;
    padding: 22px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

    .contact-note strong {
        display: block;
        color: #111827;
        margin-bottom: 7px;
    }

    .contact-note p {
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
        margin: 0 0 12px;
    }

    .contact-note a {
        color: #d97706;
        font-weight: 700;
        text-decoration: none;
    }

        .contact-note a:hover {
            text-decoration: underline;
        }


/* Mobile */

@media (max-width: 700px) {

    .contact-card {
        padding: 24px 20px;
    }

    .contact-actions {
        flex-direction: column;
    }

        .contact-actions .btn {
            width: 100%;
            justify-content: center;
        }
}

/* =========================================
   LOGIN / AUTH PAGE
   ========================================= */

.auth-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient( 135deg, #f8fafc 0%, #ffffff 50%, #fff7ed 100% );
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 42px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}


/* Logo */

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

    .auth-logo a {
        display: inline-block;
    }

    .auth-logo img {
        width: 105px;
        height: 105px;
        object-fit: contain;
        border-radius: 14px;
    }


/* Heading */

.auth-heading {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-heading .eyebrow {
        display: inline-block;
        margin-bottom: 10px;
    }

    .auth-heading h1 {
        margin: 0 0 10px;
        font-family: "Manrope", sans-serif;
        font-size: 30px;
        font-weight: 800;
        color: #111827;
    }

    .auth-heading .muted {
        margin: 0;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.6;
    }


/* Form */

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 21px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.auth-form .form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px 12px 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .auth-form .form-control:focus {
        border-color: #f59e0b;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
    }

    .auth-form .form-control::placeholder {
        color: #9ca3af;
    }


/* Password toggle */

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

    .password-toggle:hover {
        background: #f3f4f6;
        color: #111827;
    }


/* Validation */

.validation-summary {
    margin-bottom: 20px;
}

.validation-message,
.field-validation-error {
    display: block;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 20px;
}


/* Remember me */

.login-options {
    display: flex;
    align-items: center;
    margin: 4px 0 22px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
}

    .remember-me input {
        width: 16px;
        height: 16px;
        accent-color: #f59e0b;
        cursor: pointer;
    }


/* Login button */

.login-button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}


/* Register */

.auth-register {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

    .auth-register p {
        margin: 0;
        color: #6b7280;
        font-size: 14px;
    }

    .auth-register a {
        color: #d97706;
        font-weight: 700;
        text-decoration: none;
    }

        .auth-register a:hover {
            text-decoration: underline;
        }


/* Back to website */

.auth-back {
    margin-top: 20px;
    text-align: center;
}

    .auth-back a {
        color: #6b7280;
        font-size: 13px;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .auth-back a:hover {
            color: #f59e0b;
        }

    .auth-back i {
        margin-right: 6px;
    }


/* Mobile */

@media (max-width: 520px) {

    .auth-page {
        padding: 35px 15px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .auth-heading h1 {
        font-size: 26px;
    }

    .auth-logo img {
        width: 90px;
        height: 90px;
    }
}

/* =========================================================
   ADMIN RESPONSIVE LAYOUT
   ========================================================= */

:root {
    --admin-navy: #062c46;
    --admin-navy-2: #0a405d;
    --admin-blue: #0b67ad;
    --admin-green: #16a65b;
    --admin-green-dark: #0c8e4a;
    --admin-bg: #f4f8f8;
    --admin-card: #ffffff;
    --admin-text: #14232d;
    --admin-muted: #687782;
    --admin-line: #dce7eb;
    --admin-sidebar-width: 270px;
    --admin-shadow: 0 20px 60px rgba(5, 42, 65, .10);
    --admin-radius: 16px;
}


/* =========================================================
   RESET
   ========================================================= */

.admin-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: "DM Sans", Arial, sans-serif;
    overflow-x: hidden;
}

    .admin-body *,
    .admin-body *::before,
    .admin-body *::after {
        box-sizing: border-box;
    }

    .admin-body a {
        -webkit-tap-highlight-color: transparent;
    }


/* =========================================================
   APP
   ========================================================= */

.admin-app {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
    background: linear-gradient( 180deg, var(--admin-navy) 0%, #06263b 100% );
    color: #ffffff;
    z-index: 1100;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    transition: transform .3s ease, box-shadow .3s ease;
}


/* =========================================================
   SIDEBAR HEADER
   ========================================================= */

.admin-sidebar-header {
    min-height: 88px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.08);
}


.admin-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}


.admin-brand-logo-wrap {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    border-radius: 10px;
}


.admin-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.admin-brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}


    .admin-brand-text strong {
        font-family: "Manrope", sans-serif;
        font-size: 14px;
        font-weight: 800;
        white-space: nowrap;
    }


    .admin-brand-text small {
        margin-top: 5px;
        color: rgba(255,255,255,.55);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.2px;
        white-space: nowrap;
    }


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.admin-sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}


    .admin-sidebar-close:hover {
        background: rgba(255,255,255,.16);
        transform: rotate(4deg);
    }


/* =========================================================
   ACCESS SCOPE
   ========================================================= */

.admin-scope {
    margin: 18px 16px 12px;
    padding: 13px 14px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
}


.admin-scope-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.45);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}


.admin-scope strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.admin-nav {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


    .admin-nav a,
    .admin-bottom-link,
    .logout-btn {
        min-height: 46px;
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 0 13px;
        border-radius: 11px;
        color: rgba(255,255,255,.72);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: background .2s ease, color .2s ease, transform .2s ease;
    }


        .admin-nav a:hover,
        .admin-bottom-link:hover,
        .logout-btn:hover {
            background: rgba(255,255,255,.07);
            color: #ffffff;
        }


        .admin-nav a.active {
            background: linear-gradient( 90deg, rgba(22,166,91,.22), rgba(22,166,91,.08) );
            color: #ffffff;
            box-shadow: inset 3px 0 0 var(--admin-green);
        }


.nav-icon,
.bottom-icon,
.logout-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}


.admin-nav a.active .nav-icon {
    color: #5de69a;
}


.nav-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   SIDEBAR BOTTOM
   ========================================================= */

.admin-sidebar-bottom {
    margin-top: auto;
    padding: 14px 12px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}


.logout-form {
    margin: 4px 0 0;
}


.logout-btn {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}


    .logout-btn:hover {
        color: #ffb4b4;
        background: rgba(255,80,80,.07);
    }


/* =========================================================
   OVERLAY
   ========================================================= */

.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(3, 20, 31, .58);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    backdrop-filter: blur(2px);
}


    .admin-overlay.show {
        opacity: 1;
        visibility: visible;
    }


/* =========================================================
   MAIN
   ========================================================= */

.admin-main {
    min-width: 0;
    width: calc(100% - var(--admin-sidebar-width));
    margin-left: var(--admin-sidebar-width);
    min-height: 100vh;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 76px;
    padding: 14px clamp(18px, 3vw, 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--admin-line);
    backdrop-filter: blur(12px);
}


.admin-topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--admin-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--admin-navy);
    font-size: 17px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}


    .menu-toggle:hover {
        background: #f4f8f8;
        border-color: #c7d8de;
    }


/* =========================================================
   PAGE HEADING
   ========================================================= */

.admin-page-heading {
    min-width: 0;
    display: flex;
    flex-direction: column;
}


.admin-kicker {
    margin-bottom: 3px;
    color: var(--admin-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
    white-space: nowrap;
}


.admin-page-heading strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--admin-navy);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 800;
}


/* =========================================================
   USER
   ========================================================= */

.admin-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}


.admin-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--admin-green), var(--admin-green-dark) );
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}


.admin-user-name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   CONTENT
   ========================================================= */

.admin-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 34px);
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.success-banner {
    width: 100%;
    margin-bottom: 22px;
    padding: 13px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(22,166,91,.20);
    border-radius: 12px;
    background: #effaf4;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}


.success-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--admin-green);
    font-size: 15px;
}


/* =========================================================
   TABLE RESPONSIVENESS
   ========================================================= */

.admin-content table {
    width: 100%;
}


.admin-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   FORMS
   ========================================================= */

.admin-content input,
.admin-content select,
.admin-content textarea {
    max-width: 100%;
}


.admin-content img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    :root {
        --admin-sidebar-width: 245px;
    }

    .admin-user-name {
        max-width: 130px;
    }

    .admin-content {
        padding: 24px;
    }
}


/* =========================================================
   MOBILE SIDEBAR
   ========================================================= */

@media (max-width: 991px) {

    .admin-sidebar {
        width: min(300px, 86vw);
        transform: translateX(-105%);
        box-shadow: 20px 0 50px rgba(0,0,0,.20);
    }


        .admin-sidebar.open {
            transform: translateX(0);
        }


    .admin-sidebar-close {
        display: flex;
    }


    .admin-main {
        width: 100%;
        margin-left: 0;
    }


    .menu-toggle {
        display: flex;
    }


    .admin-topbar {
        min-height: 70px;
        padding: 12px 18px;
    }


    .admin-content {
        padding: 22px 18px;
    }


    body.sidebar-open {
        overflow: hidden;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .admin-topbar {
        gap: 10px;
    }


    .admin-topbar-left {
        gap: 10px;
    }


    .admin-kicker {
        font-size: 8px;
        letter-spacing: 1px;
    }


    .admin-page-heading strong {
        font-size: 16px;
    }


    .admin-user-name {
        display: none;
    }


    .admin-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }


    .admin-content {
        padding: 18px 14px;
    }


    .success-banner {
        padding: 12px 13px;
        font-size: 13px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .admin-topbar {
        min-height: 64px;
        padding: 10px 12px;
    }


    .menu-toggle {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }


    .admin-page-heading strong {
        font-size: 15px;
    }


    .admin-content {
        padding: 15px 11px;
    }


    .admin-sidebar {
        width: 88vw;
    }


    .admin-brand-logo-wrap {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }


    .admin-brand-text strong {
        font-size: 13px;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .admin-nav a,
    .admin-bottom-link,
    .logout-btn {
        min-height: 48px;
    }


    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }


    .admin-sidebar-close {
        min-width: 44px;
        min-height: 44px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .admin-sidebar,
    .admin-overlay,
    .admin-nav a,
    .admin-bottom-link,
    .logout-btn,
    .menu-toggle,
    .admin-sidebar-close {
        transition: none !important;
    }
}
/* =========================================================
   ADD APPLICANT PAGE
   ========================================================= */

.applicant-page {
    width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.applicant-hero {
    margin-bottom: 24px;
}


.admin-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}


.admin-hero-content {
    min-width: 0;
    max-width: 850px;
}


    .admin-hero-content .eyebrow {
        display: inline-block;
        margin-bottom: 7px;
    }


    .admin-hero-content h1 {
        margin: 0 0 8px;
        color: var(--admin-navy);
        font-family: "Manrope", sans-serif;
        font-size: clamp(25px, 3vw, 34px);
        font-weight: 800;
        line-height: 1.2;
    }


    .admin-hero-content .muted {
        max-width: 780px;
        margin: 0;
        color: var(--admin-muted);
        font-size: 14px;
        line-height: 1.7;
    }


.admin-hero-actions {
    flex: 0 0 auto;
}


/* =========================================================
   PANEL
   ========================================================= */

.applicant-panel {
    width: 100%;
    padding: clamp(20px, 3vw, 34px);
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
}


/* =========================================================
   VALIDATION
   ========================================================= */

.admin-applicant-form .validation-summary {
    margin-bottom: 24px;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff7f7;
}


    .admin-applicant-form .validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }


.admin-applicant-form .validation-message,
.admin-applicant-form .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   FORM SECTION
   ========================================================= */

.form-section {
    padding: 0 0 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--admin-line);
}


    .form-section:last-of-type {
        margin-bottom: 0;
    }


.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
}


.form-section-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf7f3;
    color: var(--admin-green);
    font-size: 16px;
}


.form-section-heading h2 {
    margin: 0 0 3px;
    color: var(--admin-navy);
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
}


.form-section-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.form-grid {
    width: 100%;
    display: grid;
    gap: 20px;
}


    .form-grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .form-grid.four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }


/* =========================================================
   FIELD
   ========================================================= */

.field {
    min-width: 0;
}


.form-label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}


.field-input-wrap {
    position: relative;
}


    .field-input-wrap .field-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        pointer-events: none;
        font-size: 13px;
    }


    .field-input-wrap .form-control {
        padding-left: 40px;
    }


.form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


    .form-control:hover {
        border-color: #b8c5ca;
    }


    .form-control:focus {
        border-color: var(--admin-green);
        box-shadow: 0 0 0 3px rgba(22,166,91,.11);
    }


    .form-control::placeholder {
        color: #a1aab1;
    }


    .form-control:disabled {
        background: #f3f5f6;
        cursor: not-allowed;
    }


.text-uppercase {
    text-transform: uppercase;
}


/* =========================================================
   SELECT
   ========================================================= */

select.form-control {
    appearance: auto;
    cursor: pointer;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox-field {
    display: flex;
    align-items: center;
    min-height: 70px;
    padding-top: 21px;
}


.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}


    .checkbox-label input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.custom-checkbox {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5da;
    border-radius: 5px;
    background: #ffffff;
    transition: background .2s ease, border-color .2s ease;
}


.checkbox-label input:checked + .custom-checkbox {
    background: var(--admin-green);
    border-color: var(--admin-green);
}


    .checkbox-label input:checked + .custom-checkbox::after {
        content: "\f00c";
        color: #ffffff;
        font-family: "Font Awesome 6 Free";
        font-size: 11px;
        font-weight: 900;
    }


.checkbox-label input:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(22,166,91,.14);
}


.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


    .checkbox-text strong {
        color: #374151;
        font-size: 13px;
        font-weight: 700;
    }


    .checkbox-text small {
        color: var(--admin-muted);
        font-size: 11px;
        line-height: 1.4;
    }


/* =========================================================
   DYNAMIC LOAN FIELDS
   ========================================================= */

.dynamic-fields {
    width: 100%;
    min-height: 80px;
    padding: 4px 0;
}


.empty-inline {
    min-height: 70px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px dashed #cbd8dd;
    border-radius: 10px;
    background: #f8fbfb;
    color: var(--admin-muted);
    font-size: 13px;
}


    .empty-inline i {
        color: var(--admin-green);
        font-size: 15px;
    }


/* =========================================================
   ACTIONS
   ========================================================= */

.form-actions {
    padding-top: 26px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}


    .form-actions .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        white-space: nowrap;
    }


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .form-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .form-grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .admin-hero-row {
        flex-direction: column;
        gap: 16px;
    }


    .admin-hero-actions {
        width: 100%;
    }


        .admin-hero-actions .btn {
            width: 100%;
        }


    .form-grid.three,
    .form-grid.four {
        grid-template-columns: 1fr;
        gap: 17px;
    }


    .applicant-panel {
        padding: 18px 15px;
    }


    .form-section {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }


    .form-section-heading {
        margin-bottom: 18px;
    }


    .form-section-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }


    .form-section-heading h2 {
        font-size: 16px;
    }


    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }


        .form-actions .btn {
            width: 100%;
        }


    .checkbox-field {
        padding-top: 0;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .admin-hero-content h1 {
        font-size: 25px;
    }


    .admin-hero-content .muted {
        font-size: 13px;
    }


    .applicant-panel {
        border-radius: 12px;
        padding: 15px 12px;
    }


    .form-control {
        min-height: 48px;
        font-size: 16px;
    }


    /*
       16px prevents iOS Safari from automatically zooming
       when the user focuses an input.
    */


    .form-label {
        font-size: 13px;
    }


    .checkbox-text strong {
        font-size: 12px;
    }


    .checkbox-text small {
        font-size: 10px;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .form-control {
        min-height: 48px;
    }


    .form-actions .btn {
        min-height: 48px;
    }
}

/* =========================================================
   APPLICATION DETAILS
   ========================================================= */

.application-details-page {
    width: 100%;
}


/* =========================================================
   HERO
   ========================================================= */

.application-hero {
    margin-bottom: 25px;
}


    .application-hero .muted {
        display: flex;
        align-items: center;
        gap: 7px;
    }


        .application-hero .muted i {
            color: var(--admin-green);
        }


/* =========================================================
   DETAIL GRID
   ========================================================= */

.detail-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}


/* =========================================================
   DETAIL CARD
   ========================================================= */

.detail-card {
    min-width: 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    box-shadow: 0 10px 35px rgba(5,42,65,.06);
}


.detail-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--admin-line);
}


.detail-card-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf7f3;
    color: var(--admin-green);
    font-size: 16px;
}


.detail-card-heading h2 {
    margin: 0 0 3px;
    color: var(--admin-navy);
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
}


.detail-card-heading span {
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   DETAIL LIST
   ========================================================= */

.detail-list {
    margin: 0;
    padding: 0;
}


.detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f2;
}


    .detail-row:first-child {
        padding-top: 0;
    }


    .detail-row:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }


    .detail-row dt {
        margin: 0;
        color: var(--admin-muted);
        font-size: 12px;
        font-weight: 600;
    }


    .detail-row dd {
        min-width: 0;
        margin: 0;
        color: #253641;
        font-size: 13px;
        font-weight: 600;
        overflow-wrap: anywhere;
    }


/* =========================================================
   SENSITIVE DATA
   ========================================================= */

.sensitive-detail-card {
    border-color: rgba(11,103,173,.15);
}


    .sensitive-detail-card .detail-card-icon {
        background: #eef6fc;
        color: var(--admin-blue);
    }


.sensitive-row dd {
    font-family: "DM Sans", monospace;
    letter-spacing: .2px;
}


.version-text {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 500;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}


.status-success {
    background: #ecfdf3;
    color: #15803d;
}


.status-warning {
    background: #fff7ed;
    color: #c2410c;
}


/* =========================================================
   PRIVACY NOTE
   ========================================================= */

.privacy-note {
    margin-top: 20px;
    padding: 11px 12px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #dbeafe;
    border-radius: 9px;
    background: #f8fbff;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}


    .privacy-note i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: var(--admin-blue);
    }


/* =========================================================
   WORKFLOW
   ========================================================= */

.workflow-card {
    margin-top: 0;
}


.workflow-icon {
    background: #eef6fc;
    color: var(--admin-blue);
}


.workflow-form {
    width: 100%;
}


.workflow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


    .workflow-grid .field {
        min-width: 0;
    }


.full-field {
    grid-column: 1 / -1;
}


.workflow-form .form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}


.workflow-form .field-input-wrap .form-control {
    padding-left: 40px;
}


.workflow-form .form-control:focus {
    border-color: var(--admin-green);
    box-shadow: 0 0 0 3px rgba(22,166,91,.11);
}


.textarea-wrap {
    position: relative;
}


.textarea-icon {
    position: absolute;
    left: 14px;
    top: 15px;
    color: #9ca3af;
    pointer-events: none;
    font-size: 13px;
}


.workflow-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    padding-left: 40px;
}


.field-help {
    display: block;
    margin-top: 6px;
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   WORKFLOW BUTTON
   ========================================================= */

.workflow-actions {
    margin-top: 25px;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--admin-line);
}


    .workflow-actions .btn {
        min-height: 47px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .detail-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .application-hero {
        margin-bottom: 20px;
    }


    .detail-card {
        padding: 19px 16px;
        border-radius: 13px;
    }


    .detail-grid {
        gap: 15px;
        margin-bottom: 15px;
    }


    .detail-card-heading {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }


    .detail-card-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }


    .detail-card-heading h2 {
        font-size: 16px;
    }


    .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }


        .detail-row dt {
            font-size: 11px;
        }


        .detail-row dd {
            font-size: 13px;
        }


    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }


    .full-field {
        grid-column: auto;
    }


    .workflow-actions {
        margin-top: 20px;
        padding-top: 17px;
    }


        .workflow-actions .btn {
            width: 100%;
        }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .detail-card {
        padding: 16px 13px;
    }


    .detail-row dd {
        overflow-wrap: anywhere;
    }


    .workflow-form .form-control {
        min-height: 48px;
        font-size: 16px;
    }


    .workflow-form textarea.form-control {
        font-size: 16px;
    }


    .application-hero .muted {
        font-size: 12px;
    }
}


/* =========================================================
   TOUCH
   ========================================================= */

@media (hover: none) {

    .workflow-form .form-control {
        min-height: 48px;
    }


    .workflow-actions .btn {
        min-height: 48px;
    }
}

/* =========================================================
   APPLICATIONS PAGE
   ========================================================= */

.applications-page {
    width: 100%;
}

/* Hero */

.applications-hero {
    margin-bottom: 22px;
}

    .applications-hero .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }


/* =========================================================
   FILTER CHIPS
   ========================================================= */

.application-filters {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 5px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

    .application-filters::-webkit-scrollbar {
        height: 4px;
    }

.filter-chip {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: #fff;
    color: #536570;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

    .filter-chip i {
        font-size: 11px;
    }

    .filter-chip:hover {
        color: var(--admin-navy);
        border-color: #b9cbd3;
        transform: translateY(-1px);
    }

    .filter-chip.active {
        color: #fff;
        background: var(--admin-navy);
        border-color: var(--admin-navy);
    }

        .filter-chip.active i {
            color: #9de0bd;
        }


/* =========================================================
   APPLICATIONS CARD
   ========================================================= */

.applications-card {
    width: 100%;
    min-width: 0;
    background: var(--admin-card);
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius);
    box-shadow: 0 10px 35px rgba(5, 42, 65, .06);
    overflow: hidden;
}

.applications-card-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-line);
}

.applications-card-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.applications-title-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #edf7f3;
    color: var(--admin-green);
    font-size: 16px;
}

.applications-card-header h2 {
    margin: 0 0 3px;
    color: var(--admin-navy);
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.applications-card-header p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 11px;
}


/* =========================================================
   TABLE
   ========================================================= */

.applications-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.applications-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    table-layout: auto;
}

    .applications-table th {
        padding: 13px 16px;
        background: #f8fafb;
        border-bottom: 1px solid var(--admin-line);
        color: #6b7b84;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .06em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .applications-table td {
        padding: 15px 16px;
        border-bottom: 1px solid #edf1f2;
        color: #263943;
        font-size: 12px;
        vertical-align: middle;
    }

    .applications-table tbody tr {
        transition: background .15s ease;
    }

        .applications-table tbody tr:hover {
            background: #fbfdfd;
        }

        .applications-table tbody tr:last-child td {
            border-bottom: 0;
        }


/* Application number */

.application-number-text {
    display: inline-block;
    color: var(--admin-blue);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}


/* Applicant */

.application-applicant {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.application-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf7f3;
    color: var(--admin-green-dark);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.application-person,
.application-location,
.received-date-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .application-person strong,
    .application-location strong {
        color: #253641;
        font-size: 12px;
        font-weight: 700;
    }

    .application-person small,
    .application-location small,
    .received-date-wrap small {
        display: flex;
        align-items: center;
        gap: 5px;
        color: var(--admin-muted);
        font-size: 10px;
        line-height: 1.35;
    }

        .application-person small i,
        .application-location small i {
            color: #8a9aa2;
            font-size: 9px;
        }


/* Loan */

.loan-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #344954;
    font-weight: 700;
    white-space: nowrap;
}

    .loan-name i {
        color: var(--admin-green);
        font-size: 11px;
    }


/* Location */

.application-location strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.application-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

    .application-status i {
        font-size: 9px;
    }

/* Submitted */

.status-submitted {
    background: #eff6ff;
    color: #2563eb;
}

/* Contacted */

.status-contacted {
    background: #f5f3ff;
    color: #7c3aed;
}

/* Documents Pending */

.status-documentspending {
    background: #fff7ed;
    color: #c2410c;
}

/* Under Review */

.status-underreview {
    background: #eef6fc;
    color: var(--admin-blue);
}

/* Verified */

.status-verified {
    background: #ecfdf3;
    color: #15803d;
}

/* Approved */

.status-approved {
    background: #eaf8f0;
    color: #087f42;
}

/* Rejected */

.status-rejected {
    background: #fef2f2;
    color: #dc2626;
}


/* =========================================================
   RECEIVED
   ========================================================= */

.received-date {
    color: #334955;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   ACTION
   ========================================================= */

.action-column {
    width: 80px;
}

.application-action {
    text-align: right;
}

.table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--admin-blue);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

    .table-link:hover {
        color: var(--admin-green-dark);
        background: #edf7f3;
    }

    .table-link i {
        font-size: 10px;
        transition: transform .2s ease;
    }

    .table-link:hover i {
        transform: translateX(2px);
    }


/* =========================================================
   EMPTY STATE
   ========================================================= */

.application-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 16px;
    background: #f1f6f8;
    color: #81929b;
    font-size: 21px;
}

.application-empty strong {
    color: var(--admin-navy);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.application-empty p {
    max-width: 360px;
    margin: 7px 0 18px;
    color: var(--admin-muted);
    font-size: 12px;
    line-height: 1.6;
}

.application-empty .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

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


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .applications-card-header {
        padding: 17px 18px;
    }

    .applications-table {
        min-width: 850px;
    }

        .applications-table th,
        .applications-table td {
            padding-left: 13px;
            padding-right: 13px;
        }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .applications-hero {
        margin-bottom: 17px;
    }

        .applications-hero .btn {
            min-height: 44px;
        }

    .application-filters {
        margin-left: -2px;
        margin-right: -2px;
        margin-bottom: 15px;
        padding-bottom: 7px;
    }

    .filter-chip {
        min-height: 42px;
        padding: 8px 12px;
    }

    .applications-card {
        border-radius: 13px;
    }

    .applications-card-header {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 16px;
    }

        .applications-card-header .btn {
            width: 100%;
            min-height: 47px;
        }

    .applications-table-wrap {
        overflow-x: visible;
    }

    /*
       Convert table rows into mobile cards.
    */

    .applications-table {
        min-width: 0;
        width: 100%;
    }

        .applications-table thead {
            display: none;
        }

        .applications-table,
        .applications-table tbody,
        .applications-table tr,
        .applications-table td {
            display: block;
            width: 100%;
        }

            .applications-table tbody tr {
                position: relative;
                padding: 15px 16px;
                border-bottom: 1px solid var(--admin-line);
                background: #fff;
            }

                .applications-table tbody tr:last-child {
                    border-bottom: 0;
                }

                .applications-table tbody tr:hover {
                    background: #fff;
                }

            .applications-table td {
                display: grid;
                grid-template-columns: 105px minmax(0, 1fr);
                gap: 12px;
                align-items: center;
                padding: 7px 0;
                border: 0;
            }

                .applications-table td::before {
                    content: attr(data-label);
                    color: var(--admin-muted);
                    font-size: 10px;
                    font-weight: 800;
                    letter-spacing: .04em;
                    text-transform: uppercase;
                }

                .applications-table td[data-label=""] {
                    display: block;
                    padding-top: 11px;
                }

                    .applications-table td[data-label=""]::before {
                        display: none;
                    }

    .application-applicant {
        min-width: 0;
    }

    .application-location strong {
        max-width: none;
        white-space: normal;
    }

    .application-action {
        text-align: left;
    }

    .table-link {
        width: 100%;
        min-height: 45px;
        background: #f5faf8;
        border: 1px solid #dceee5;
    }

    .application-empty {
        min-height: 240px;
        padding: 35px 18px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .applications-card-title {
        gap: 9px;
    }

    .applications-title-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 9px;
    }

    .applications-card-header h2 {
        font-size: 16px;
    }

    .applications-card-header p {
        font-size: 10px;
    }

    .applications-table tbody tr {
        padding: 14px 13px;
    }

    .applications-table td {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 9px;
    }

    .application-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .application-status {
        font-size: 9px;
    }

    .application-empty .btn {
        width: 100%;
        min-height: 47px;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .filter-chip {
        min-height: 44px;
    }

    .table-link {
        min-height: 45px;
    }
}

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.dashboard-page {
    width: 100%;
}

.dashboard-hero {
    margin-bottom: 25px;
}

.dashboard-welcome {
    min-width: 0;
}

    .dashboard-welcome .muted {
        max-width: 650px;
    }


/* =========================================================
   SCOPE CHIP
   ========================================================= */

.scope-chip {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 7px 11px;
    border: 1px solid #dcebe4;
    border-radius: 999px;
    background: #f2faf6;
    color: var(--admin-green-dark);
    font-size: 11px;
    font-weight: 700;
}

    .scope-chip i {
        font-size: 10px;
    }


/* =========================================================
   DASHBOARD ADD BUTTON
   ========================================================= */

.dashboard-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}


/* =========================================================
   STAT CARDS
   ========================================================= */

.admin-stats {
    margin-bottom: 22px;
}

.dashboard-stat {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

    .dashboard-stat .stat-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
        border-radius: 10px;
        background: #edf7f3;
        color: var(--admin-green);
        font-size: 15px;
    }

    .dashboard-stat > span {
        display: block;
    }

    .dashboard-stat strong {
        display: block;
        margin-top: 5px;
    }

    .dashboard-stat small {
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .dashboard-stat small i {
            color: var(--admin-green);
            font-size: 9px;
        }


    /* Dark stat card */

    .dashboard-stat.stat-dark .stat-icon {
        background: rgba(255, 255, 255, .10);
        color: #8ee2b5;
    }

    .dashboard-stat.stat-dark small i {
        color: #8ee2b5;
    }


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
    gap: 20px;
    width: 100%;
}

.dashboard-panel {
    min-width: 0;
}


/* =========================================================
   PANEL HEADER
   ========================================================= */

.dashboard-panel-head {
    align-items: flex-start;
}

    .dashboard-panel-head > div:first-child {
        min-width: 0;
    }

.panel-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef6fc;
    color: var(--admin-blue);
    font-size: 15px;
}

.panel-head-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border-radius: 7px;
    color: var(--admin-blue);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

    .panel-head-link:hover {
        color: var(--admin-green-dark);
        background: #edf7f3;
    }

    .panel-head-link i {
        font-size: 9px;
        transition: transform .2s ease;
    }

    .panel-head-link:hover i {
        transform: translateX(2px);
    }


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.quick-action {
    min-width: 0;
    min-height: 92px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    border: 1px solid #e3ebee;
    border-radius: 11px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .quick-action:hover {
        border-color: #cbded6;
        background: #fbfefd;
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(5, 42, 65, .06);
    }

.quick-action-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf7f3;
    color: var(--admin-green);
    font-size: 14px;
}

.quick-action > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 16px;
}

.quick-action strong {
    color: var(--admin-navy);
    font-size: 12px;
    font-weight: 800;
}

.quick-action small {
    color: var(--admin-muted);
    font-size: 10px;
    line-height: 1.45;
}

.quick-action-arrow {
    position: absolute;
    top: 14px;
    right: 13px;
    color: #a6b3b9;
    font-size: 9px;
    transition: color .2s ease, transform .2s ease;
}

.quick-action:hover .quick-action-arrow {
    color: var(--admin-green);
    transform: translateX(2px);
}


/* =========================================================
   WORKFLOW
   ========================================================= */

.workflow {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
}

.workflow-item {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 5px;
    border-bottom: 1px solid #edf1f2;
    color: inherit;
    text-decoration: none;
    transition: background .15s ease;
}

    .workflow-item:last-child {
        border-bottom: 0;
    }

    .workflow-item:hover {
        background: #fbfdfd;
    }

.workflow-number {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f1f6f8;
    color: #71838c;
}

    .workflow-number span {
        font-size: 10px;
        font-weight: 800;
    }

.workflow-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .workflow-info span {
        color: var(--admin-muted);
        font-size: 11px;
        font-weight: 600;
    }

    .workflow-info strong {
        color: var(--admin-navy);
        font-family: "Manrope", sans-serif;
        font-size: 17px;
        font-weight: 800;
    }

.workflow-arrow {
    color: #a7b4ba;
    font-size: 9px;
    transition: color .2s ease, transform .2s ease;
}

.workflow-item:hover .workflow-arrow {
    color: var(--admin-green);
    transform: translateX(2px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .workflow-panel {
        min-width: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .dashboard-hero {
        margin-bottom: 20px;
    }

    .dashboard-add-btn {
        width: 100%;
        min-height: 47px;
    }

    .scope-chip {
        max-width: 100%;
    }

    .admin-dashboard-grid {
        gap: 15px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .quick-action {
        min-height: 78px;
    }

    .dashboard-panel {
        padding: 18px 16px;
    }

    .panel-heading-icon {
        display: none;
    }

    .panel-head-link {
        min-height: 40px;
        padding: 8px 5px;
    }

    .workflow-item {
        min-height: 62px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dashboard-welcome h1 {
        font-size: 27px;
    }

    .dashboard-welcome .muted {
        font-size: 12px;
        line-height: 1.55;
    }

    .scope-chip {
        font-size: 10px;
    }

    .dashboard-stat .stat-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }

    .dashboard-stat strong {
        font-size: 24px;
    }

    .quick-action {
        padding: 13px;
    }

    .quick-action-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .quick-action small {
        font-size: 9px;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .dashboard-add-btn {
        min-height: 48px;
    }

    .quick-action {
        min-height: 82px;
    }

    .panel-head-link {
        min-height: 44px;
    }
}

/* =========================================================
   HIERARCHY / LOCATIONS PAGE
   ========================================================= */

.hierarchy-page {
    width: 100%;
}

.hierarchy-hero {
    margin-bottom: 22px;
}


/* =========================================================
   PANEL HEADING
   ========================================================= */

.hierarchy-panel-head {
    align-items: flex-start;
}

.panel-heading-content {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hierarchy-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf7f3;
    color: var(--admin-green);
    font-size: 15px;
}

    .hierarchy-heading-icon.list-icon {
        background: #eef6fc;
        color: var(--admin-blue);
    }

.hierarchy-panel-head h2 {
    margin-bottom: 3px;
}

.hierarchy-panel-head p {
    margin-bottom: 0;
}


/* =========================================================
   ADD FORM
   ========================================================= */

.hierarchy-add-panel {
    margin-bottom: 20px;
}

.hierarchy-form {
    width: 100%;
}

.hierarchy-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
}

    .hierarchy-form-grid .field {
        min-width: 0;
    }

.hierarchy-parent-field {
    min-width: 0;
}

.hierarchy-form .form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #253641;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .hierarchy-form .form-control:focus {
        border-color: var(--admin-green);
        box-shadow: 0 0 0 3px rgba(22, 166, 91, .11);
    }

.hierarchy-form select.form-control {
    cursor: pointer;
}

.hierarchy-form .field-input-wrap {
    position: relative;
}

.hierarchy-form .input-icon {
    position: absolute;
    z-index: 1;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8ae;
    font-size: 12px;
    pointer-events: none;
}

.hierarchy-form .form-control:focus + .input-icon {
    color: var(--admin-green);
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--admin-muted);
    font-size: 10px;
    line-height: 1.45;
}

.hierarchy-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-line);
}

    .hierarchy-form-actions .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }


/* =========================================================
   ORGANIZATION LIST
   ========================================================= */

.hierarchy-list-panel {
    overflow: hidden;
}

.org-tree {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 2px;
}

.org-row {
    min-height: 68px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 5px;
    border-bottom: 1px solid #edf1f2;
}

    .org-row:last-child {
        border-bottom: 0;
    }

    .org-row:hover {
        background: #fbfdfd;
    }

.org-level-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f6f8;
    color: #6d808a;
    font-size: 13px;
}

.org-row-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.org-row-top {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.org-row strong {
    min-width: 0;
    color: #263943;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.org-row small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--admin-muted);
    font-size: 10px;
    line-height: 1.4;
}

    .org-row small i {
        color: #9aa8ae;
        font-size: 9px;
    }


/* Level badge */

.org-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f5f7;
    color: #64757e;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}


/* =========================================================
   LEVEL-SPECIFIC STYLING
   ========================================================= */

.org-row.level-0 .org-level-icon {
    background: #edf7f3;
    color: var(--admin-green);
}

.org-row.level-0 .org-level {
    background: #eaf8f0;
    color: #15803d;
}

.org-row.level-1 {
    padding-left: 27px;
}

    .org-row.level-1 .org-level-icon {
        background: #eef6fc;
        color: var(--admin-blue);
    }

    .org-row.level-1 .org-level {
        background: #eff6ff;
        color: #2563eb;
    }

.org-row.level-2 {
    padding-left: 49px;
}

    .org-row.level-2 .org-level-icon {
        background: #f5f3ff;
        color: #7c3aed;
    }

    .org-row.level-2 .org-level {
        background: #f5f3ff;
        color: #7c3aed;
    }

.org-row.level-3 {
    padding-left: 71px;
}

    .org-row.level-3 .org-level-icon {
        background: #fff7ed;
        color: #c2410c;
    }

    .org-row.level-3 .org-level {
        background: #fff7ed;
        color: #c2410c;
    }


/* =========================================================
   EMPTY STATE
   ========================================================= */

.hierarchy-empty {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    text-align: center;
}

.hierarchy-empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 15px;
    background: #f1f6f8;
    color: #82929a;
    font-size: 20px;
}

.hierarchy-empty strong {
    color: var(--admin-navy);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.hierarchy-empty p {
    max-width: 380px;
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .hierarchy-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hierarchy-parent-field {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .hierarchy-hero {
        margin-bottom: 18px;
    }

    .hierarchy-add-panel,
    .hierarchy-list-panel {
        border-radius: 13px;
    }

    .hierarchy-panel-head {
        gap: 12px;
    }

    .hierarchy-heading-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 13px;
    }

    .hierarchy-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 18px;
    }

    .hierarchy-parent-field {
        grid-column: auto;
    }

    .hierarchy-form .form-control {
        min-height: 48px;
    }

    .hierarchy-form-actions {
        margin-top: 18px;
    }

        .hierarchy-form-actions .btn {
            width: 100%;
            min-height: 48px;
        }

    .org-row {
        min-height: 64px;
        padding: 10px 2px;
    }

        .org-row.level-1 {
            padding-left: 17px;
        }

        .org-row.level-2 {
            padding-left: 32px;
        }

        .org-row.level-3 {
            padding-left: 47px;
        }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .panel-heading-content {
        gap: 9px;
    }

    .hierarchy-heading-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .org-level-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .org-row-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .org-row strong {
        font-size: 12px;
    }

    .org-row small {
        font-size: 9px;
    }

    .org-row.level-1 {
        padding-left: 10px;
    }

    .org-row.level-2 {
        padding-left: 18px;
    }

    .org-row.level-3 {
        padding-left: 27px;
    }
}


/* =========================================================
   TOUCH
   ========================================================= */

@media (hover: none) {

    .hierarchy-form .form-control {
        min-height: 48px;
        font-size: 16px;
    }

    .hierarchy-form-actions .btn {
        min-height: 48px;
    }
}
/* =========================================================
   LOAN FORM CONFIGURATION
   ========================================================= */

.loan-form-config-page {
    width: 100%;
}

.loan-form-config-hero {
    margin-bottom: 22px;
}


/* =========================================================
   PANEL HEADINGS
   ========================================================= */

.loan-field-panel-head,
.configured-fields-header {
    align-items: flex-start;
}

.loan-field-heading-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #edf7f3;
    color: var(--admin-green);
    font-size: 15px;
}

    .loan-field-heading-icon.list-icon {
        background: #eef6fc;
        color: var(--admin-blue);
    }


/* =========================================================
   ADD FIELD FORM
   ========================================================= */

.loan-field-add-panel {
    margin-bottom: 20px;
}

.loan-field-form {
    width: 100%;
}

.loan-field-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(230px, .8fr);
    gap: 18px;
    margin-top: 20px;
}

    .loan-field-form-grid .field {
        min-width: 0;
    }

.loan-field-form .form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px 10px 40px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #253641;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .loan-field-form .form-control:focus {
        border-color: var(--admin-green);
        box-shadow: 0 0 0 3px rgba(22, 166, 91, .11);
    }

.loan-field-form .field-input-wrap {
    position: relative;
}

.loan-field-form .input-icon {
    position: absolute;
    z-index: 1;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8ae;
    font-size: 12px;
    pointer-events: none;
}

.loan-field-form .form-control:focus + .input-icon {
    color: var(--admin-green);
}

.loan-field-form select.form-control {
    cursor: pointer;
}

.loan-field-form .field-help {
    display: block;
    margin-top: 6px;
    color: var(--admin-muted);
    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   REQUIRED TOGGLE
   ========================================================= */

.loan-required-field {
    min-width: 0;
}

.loan-required-toggle {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid #dfe7ea;
    border-radius: 9px;
    background: #fbfdfd;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

    .loan-required-toggle:hover {
        border-color: #c5d9d0;
        background: #f8fcfa;
    }

    .loan-required-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.loan-required-box {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5d9;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    font-size: 10px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.loan-required-toggle input:checked + .loan-required-box {
    border-color: var(--admin-green);
    background: var(--admin-green);
    color: #fff;
}

.loan-required-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .loan-required-text strong {
        color: #30444e;
        font-size: 11px;
        font-weight: 800;
    }

    .loan-required-text small {
        color: var(--admin-muted);
        font-size: 9px;
    }

.loan-field-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--admin-line);
}

    .loan-field-form-actions .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }


/* =========================================================
   CONFIGURED FIELDS TABLE
   ========================================================= */

.configured-fields-panel {
    overflow: hidden;
}

.loan-fields-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.loan-fields-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

    .loan-fields-table th {
        padding: 13px 15px;
        background: #f8fafb;
        border-bottom: 1px solid var(--admin-line);
        color: #6b7b84;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .06em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .loan-fields-table td {
        padding: 14px 15px;
        border-bottom: 1px solid #edf1f2;
        color: #263943;
        font-size: 12px;
        vertical-align: middle;
    }

    .loan-fields-table tbody tr {
        transition: background .15s ease;
    }

        .loan-fields-table tbody tr:hover {
            background: #fbfdfd;
        }

        .loan-fields-table tbody tr:last-child td {
            border-bottom: 0;
        }


/* =========================================================
   FIELD ORDER
   ========================================================= */

.field-order {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f6f8;
    color: #64757e;
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   FIELD KEY
   ========================================================= */

.field-key {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid #e1e8eb;
    border-radius: 6px;
    background: #f7f9fa;
    color: #4d6470;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.field-label-text {
    color: #293d47;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   FIELD TYPE
   ========================================================= */

.field-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #51636d;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

    .field-type i {
        color: var(--admin-blue);
        font-size: 11px;
    }


/* =========================================================
   FIELD BADGES
   ========================================================= */

.field-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.field-required {
    background: #fff7ed;
    color: #c2410c;
}

.field-optional {
    background: #f1f5f7;
    color: #64757e;
}

.field-active {
    background: #ecfdf3;
    color: #15803d;
}

.field-inactive {
    background: #f1f5f7;
    color: #7a8991;
}


/* =========================================================
   ACTION
   ========================================================= */

.loan-field-action-column {
    width: 105px;
}

.loan-field-action {
    text-align: right;
}

.toggle-field-form {
    display: inline;
}

.field-toggle-btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 10px;
    white-space: nowrap;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.loan-fields-empty {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loan-fields-empty-icon {
    width: 57px;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 15px;
    background: #f1f6f8;
    color: #81929b;
    font-size: 20px;
}

.loan-fields-empty strong {
    color: var(--admin-navy);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
}

.loan-fields-empty p {
    max-width: 370px;
    margin: 7px 0 0;
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .loan-field-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .loan-required-field {
        grid-column: span 1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .loan-form-config-hero {
        margin-bottom: 18px;
    }

    .loan-field-add-panel,
    .configured-fields-panel {
        border-radius: 13px;
    }

    .loan-field-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 18px;
    }

    .loan-field-form .form-control {
        min-height: 48px;
    }

    .loan-required-toggle {
        min-height: 48px;
    }

    .loan-field-form-actions {
        margin-top: 18px;
    }

        .loan-field-form-actions .btn {
            width: 100%;
            min-height: 48px;
        }

    /*
       Convert configured fields into mobile cards.
    */

    .loan-fields-table-wrap {
        overflow-x: visible;
    }

    .loan-fields-table {
        min-width: 0;
        width: 100%;
    }

        .loan-fields-table thead {
            display: none;
        }

        .loan-fields-table,
        .loan-fields-table tbody,
        .loan-fields-table tr,
        .loan-fields-table td {
            display: block;
            width: 100%;
        }

            .loan-fields-table tbody tr {
                padding: 14px 16px;
                border-bottom: 1px solid var(--admin-line);
                background: #fff;
            }

                .loan-fields-table tbody tr:last-child {
                    border-bottom: 0;
                }

                .loan-fields-table tbody tr:hover {
                    background: #fff;
                }

            .loan-fields-table td {
                display: grid;
                grid-template-columns: 90px minmax(0, 1fr);
                gap: 10px;
                align-items: center;
                padding: 7px 0;
                border: 0;
            }

                .loan-fields-table td::before {
                    content: attr(data-label);
                    color: var(--admin-muted);
                    font-size: 9px;
                    font-weight: 800;
                    letter-spacing: .04em;
                    text-transform: uppercase;
                }

                .loan-fields-table td[data-label=""] {
                    display: block;
                    padding-top: 10px;
                }

                    .loan-fields-table td[data-label=""]::before {
                        display: none;
                    }

    .loan-field-action {
        text-align: left;
    }

    .field-toggle-btn {
        width: 100%;
        min-height: 43px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .loan-field-heading-icon {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
        font-size: 13px;
    }

    .configured-fields-header .pill {
        display: none;
    }

    .loan-fields-table tbody tr {
        padding: 13px;
    }

    .loan-fields-table td {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 8px;
    }

    .field-key {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) {

    .loan-field-form .form-control {
        min-height: 48px;
        font-size: 16px;
    }

    .loan-required-toggle {
        min-height: 48px;
    }

    .field-toggle-btn {
        min-height: 46px;
    }
}

/* =========================================================
   LOAN PRODUCTS
   ========================================================= */

.loan-products-page {
    width: 100%;
}

.loan-products-hero {
    margin-bottom: 24px;
}

.loan-products-panel {
    overflow: hidden;
}

/* ---------------------------------------------------------
   Panel heading
   --------------------------------------------------------- */

.loan-products-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--admin-line);
}

.loan-products-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.loan-products-title-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(11, 103, 173, .10);
    color: var(--admin-blue);
    font-size: 19px;
}

.loan-products-title h2 {
    margin: 0;
    color: var(--admin-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.loan-products-title p {
    margin: 4px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
}

.loan-products-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    background: #f8fbfc;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

    .loan-products-count i {
        color: var(--admin-blue);
    }

/* ---------------------------------------------------------
   Table
   --------------------------------------------------------- */

.loan-products-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.loan-products-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
}

    .loan-products-table th {
        padding: 13px 18px;
        background: #f7fafb;
        border-bottom: 1px solid var(--admin-line);
        color: var(--admin-muted);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .06em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .loan-products-table td {
        padding: 16px 18px;
        border-bottom: 1px solid var(--admin-line);
        color: var(--admin-text);
        font-size: 14px;
        vertical-align: middle;
    }

    .loan-products-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .loan-products-table tbody tr {
        transition: background .18s ease;
    }

        .loan-products-table tbody tr:hover {
            background: #fbfdfe;
        }

/* ---------------------------------------------------------
   Product
   --------------------------------------------------------- */

.product-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 9px;
    background: #f1f6f8;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.product-name-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.product-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(22, 166, 91, .10);
    color: var(--admin-green-dark);
    font-size: 16px;
}

.product-name {
    display: block;
    color: var(--admin-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
}

.product-id {
    display: block;
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 11px;
}

/* ---------------------------------------------------------
   Status
   --------------------------------------------------------- */

.loan-products-table .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

    .loan-products-table .status.active {
        background: rgba(22, 166, 91, .10);
        color: var(--admin-green-dark);
    }

    .loan-products-table .status.inactive {
        background: #f1f4f5;
        color: #71808a;
    }

    .loan-products-table .status i {
        font-size: 11px;
    }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.product-config-btn,
.product-toggle-btn {
    min-height: 40px;
    white-space: nowrap;
}

.product-config-btn {
    gap: 7px;
}

.product-toggle-form {
    margin: 0;
}

.product-toggle-btn {
    border: 1px solid transparent;
}

.product-toggle-danger {
    color: #b42318;
    border-color: #f0c9c6;
    background: #fff8f7;
}

    .product-toggle-danger:hover {
        color: #9f1c13;
        border-color: #e6aaa5;
        background: #fff1ef;
    }

.product-toggle-success {
    color: var(--admin-green-dark);
    border-color: rgba(22, 166, 91, .25);
    background: rgba(22, 166, 91, .07);
}

    .product-toggle-success:hover {
        color: #08753b;
        border-color: rgba(22, 166, 91, .40);
        background: rgba(22, 166, 91, .12);
    }

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

.loan-products-empty {
    padding: 64px 24px;
    text-align: center;
}

.loan-products-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f2f7f8;
    color: var(--admin-muted);
    font-size: 24px;
}

.loan-products-empty h3 {
    margin: 0;
    color: var(--admin-text);
    font-size: 18px;
    font-weight: 800;
}

.loan-products-empty p {
    max-width: 420px;
    margin: 8px auto 0;
    color: var(--admin-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .loan-products-panel-head {
        align-items: flex-start;
    }

    .loan-products-table {
        min-width: 720px;
    }
}

@media (max-width: 767px) {

    .loan-products-hero {
        gap: 16px;
    }

    .loan-products-panel-head {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .loan-products-count {
        align-self: flex-start;
    }

    /*
       Convert table rows into mobile cards.
    */

    .loan-products-table-wrap {
        overflow: visible;
    }

    .loan-products-table,
    .loan-products-table tbody {
        display: block;
        min-width: 0;
        width: 100%;
    }

        .loan-products-table thead {
            display: none;
        }

        .loan-products-table tr {
            display: block;
            margin: 0;
            padding: 18px;
            border-bottom: 1px solid var(--admin-line);
        }

            .loan-products-table tr:last-child {
                border-bottom: 0;
            }

        .loan-products-table td {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            width: 100%;
            padding: 8px 0;
            border: 0;
            text-align: right;
        }

            .loan-products-table td::before {
                content: attr(data-label);
                flex: 0 0 auto;
                color: var(--admin-muted);
                font-size: 11px;
                font-weight: 800;
                letter-spacing: .05em;
                text-transform: uppercase;
                text-align: left;
            }

            .loan-products-table td[data-label="Loan type"] {
                display: block;
                padding-top: 0;
                padding-bottom: 14px;
            }

                .loan-products-table td[data-label="Loan type"]::before {
                    display: none;
                }

            .loan-products-table td[data-label="Form"],
            .loan-products-table td[data-label="Action"] {
                align-items: flex-start;
            }

    .product-name-wrap {
        min-width: 0;
        width: 100%;
    }

    .product-config-btn,
    .product-toggle-btn {
        min-height: 44px;
    }

    .product-toggle-form {
        width: auto;
    }
}

@media (max-width: 480px) {

    .loan-products-title {
        align-items: flex-start;
    }

    .loan-products-title-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .loan-products-title h2 {
        font-size: 16px;
    }

    .loan-products-title p {
        font-size: 12px;
    }

    .loan-products-table td {
        gap: 10px;
    }

        .loan-products-table td::before {
            font-size: 10px;
        }

    .product-name {
        font-size: 13px;
    }

    .product-id {
        font-size: 10px;
    }
}

/* =========================================================
   USERS & ROLES
   ========================================================= */

.users-roles-page {
    width: 100%;
}

.users-roles-hero {
    margin-bottom: 24px;
}

/* ---------------------------------------------------------
   Panel heading
   --------------------------------------------------------- */

.users-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.users-panel-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.users-heading-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(11, 103, 173, .10);
    color: var(--admin-blue);
    font-size: 18px;
}

.users-list-icon {
    background: rgba(22, 166, 91, .10);
    color: var(--admin-green-dark);
}

.users-panel-title h2 {
    margin: 0;
    color: var(--admin-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.users-panel-title p {
    margin: 4px 0 0;
    color: var(--admin-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------------------------------------------------------
   Create user
   --------------------------------------------------------- */

.users-create-panel {
    margin-bottom: 24px;
}

.staff-create-form {
    padding: 0 24px 24px;
}

.users-form-grid {
    margin-top: 4px;
}

    .users-form-grid .field {
        min-width: 0;
    }

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--admin-text);
    font-size: 13px;
    font-weight: 800;
}

.field-input-wrap {
    position: relative;
}

    .field-input-wrap .input-icon {
        position: absolute;
        top: 50%;
        left: 15px;
        z-index: 2;
        width: 18px;
        color: var(--admin-muted);
        font-size: 14px;
        text-align: center;
        pointer-events: none;
        transform: translateY(-50%);
        transition: color .18s ease;
    }

    .field-input-wrap:focus-within .input-icon {
        color: var(--admin-green-dark);
    }

.form-control.has-icon {
    padding-left: 44px;
}

select.form-control.has-icon {
    padding-right: 38px;
}

.field-help {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 7px;
    color: var(--admin-muted);
    font-size: 11px;
    line-height: 1.45;
}

    .field-help i {
        margin-top: 2px;
        color: var(--admin-blue);
    }

.users-action-field {
    display: flex;
    align-items: flex-end;
}

.users-create-btn {
    min-height: 48px;
    gap: 8px;
    width: 100%;
}

/* ---------------------------------------------------------
   User count
   --------------------------------------------------------- */

.users-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

    .users-count i {
        color: var(--admin-blue);
    }

/* ---------------------------------------------------------
   Staff table
   --------------------------------------------------------- */

.users-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.users-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

    .users-table th {
        white-space: nowrap;
    }

    .users-table td {
        vertical-align: middle;
    }

    .users-table tbody tr {
        transition: background .18s ease;
    }

        .users-table tbody tr:hover {
            background: #fbfdfe;
        }

/* ---------------------------------------------------------
   Staff person
   --------------------------------------------------------- */

.staff-person {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 190px;
}

.staff-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(11, 103, 173, .10);
    color: var(--admin-blue);
    font-size: 14px;
    font-weight: 900;
}

.staff-name {
    display: block;
    color: var(--admin-text);
    font-size: 13px;
    line-height: 1.3;
}

.staff-profile-label {
    display: block;
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 10px;
}

/* ---------------------------------------------------------
   Role
   --------------------------------------------------------- */

.role-badge,
.level-badge,
.unit-value,
.login-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.role-badge {
    padding: 7px 10px;
    border: 1px solid rgba(11, 103, 173, .16);
    border-radius: 999px;
    background: rgba(11, 103, 173, .07);
    color: var(--admin-blue);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

    .role-badge i {
        font-size: 10px;
    }

/* ---------------------------------------------------------
   Unit
   --------------------------------------------------------- */

.unit-value {
    color: var(--admin-text);
    font-size: 13px;
    font-weight: 700;
}

    .unit-value i {
        color: var(--admin-green-dark);
        font-size: 12px;
    }

/* ---------------------------------------------------------
   Level
   --------------------------------------------------------- */

.level-badge {
    padding: 6px 9px;
    border-radius: 8px;
    background: #f2f6f7;
    color: var(--admin-muted);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

    .level-badge i {
        color: var(--admin-muted);
        font-size: 10px;
    }

/* ---------------------------------------------------------
   Login
   --------------------------------------------------------- */

.login-value {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
}

    .login-value i {
        color: var(--admin-blue);
        font-size: 11px;
    }

/* ---------------------------------------------------------
   Empty state
   --------------------------------------------------------- */

.users-empty {
    padding: 64px 24px;
    text-align: center;
}

.users-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #f2f7f8;
    color: var(--admin-muted);
    font-size: 24px;
}

.users-empty h3 {
    margin: 0;
    color: var(--admin-text);
    font-size: 18px;
    font-weight: 800;
}

.users-empty p {
    max-width: 500px;
    margin: 8px auto 0;
    color: var(--admin-muted);
    font-size: 14px;
    line-height: 1.6;
}

.users-empty-help {
    font-size: 12px !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {

    .users-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .users-action-field {
        align-items: flex-end;
    }

    .users-create-btn {
        width: auto;
        min-width: 170px;
    }
}

@media (max-width: 991px) {

    .users-panel-head {
        align-items: flex-start;
    }

    .users-table {
        min-width: 780px;
    }
}

@media (max-width: 767px) {

    .users-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .users-count {
        align-self: flex-start;
    }

    .staff-create-form {
        padding: 0 18px 18px;
    }

    .users-form-grid {
        grid-template-columns: 1fr;
    }

    .users-action-field {
        align-items: stretch;
    }

    .users-create-btn {
        width: 100%;
    }

    /*
       Convert staff table into mobile cards.
    */

    .users-table-wrap {
        overflow: visible;
    }

    .users-table,
    .users-table tbody {
        display: block;
        width: 100%;
        min-width: 0;
    }

        .users-table thead {
            display: none;
        }

        .users-table tr {
            display: block;
            padding: 18px;
            border-bottom: 1px solid var(--admin-line);
        }

            .users-table tr:last-child {
                border-bottom: 0;
            }

        .users-table td {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            width: 100%;
            padding: 8px 0;
            border: 0;
            text-align: right;
        }

            .users-table td::before {
                content: attr(data-label);
                flex: 0 0 auto;
                color: var(--admin-muted);
                font-size: 10px;
                font-weight: 800;
                letter-spacing: .05em;
                text-transform: uppercase;
                text-align: left;
            }

            .users-table td[data-label="Name"] {
                display: block;
                padding-top: 0;
                padding-bottom: 14px;
            }

                .users-table td[data-label="Name"]::before {
                    display: none;
                }

    .staff-person {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    .role-badge,
    .level-badge,
    .unit-value,
    .login-value {
        max-width: 70%;
        justify-content: flex-end;
    }

    .login-value {
        text-align: right;
        word-break: break-all;
    }
}

@media (max-width: 480px) {

    .users-heading-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .users-panel-title h2 {
        font-size: 16px;
    }

    .users-panel-title p {
        font-size: 12px;
    }

    .staff-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .staff-name {
        font-size: 12px;
    }

    .users-table td {
        gap: 10px;
    }

        .users-table td::before {
            font-size: 9px;
        }

    .role-badge,
    .level-badge {
        font-size: 10px;
    }

    .unit-value,
    .login-value {
        font-size: 11px;
    }
}

/* Cross-platform fallback for currency signs, arrows and status glyphs. */
.symbol, .currency, .status-symbol, .success-icon {
    font-family: "Noto Sans", "Segoe UI Symbol", "Arial Unicode MS", "DejaVu Sans", sans-serif;
    font-variant-emoji: text;
}
