* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #48236C;
    --purple-dark: #48236C;
    --pink: #B8177C;
    --text: #402052;
    --bs-primary: #48236C;
    --bs-secondary: #B8177C;
    --bg-light-primary: #EEEAFB;
    --bg-light-secondary: #fdeef7;

}


html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Hind Vadodara", sans-serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    background: #fff;
}

.login-demo,
.login-data-form {
    width: 50%;
}


.login-brand {
    display: none !important;
}

.desktop-logo {
    display: block !important;
}

.login-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('../img/login-bg-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /*  padding: 40px 5%; */
    overflow: hidden;
}

.brand-panel {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    background: var(--purple);
}

.brand-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
}

/*       .login-img{
            width: 300px;
            height: 100px;
        }
         .login-img img{
            max-width: 100%;
            height: auto;
         } */
.login-img {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /*   margin-bottom: 20px; */
}

.swami-image {
    width: 350px;
    height: auto;
    object-fit: contain;
    display: block;
}


.login-panel {
    display: flex;
    justify-content: center;
    align-items: start;
    min-width: 0;
    min-height: 100vh;
    padding-top: 32px;
}

.login-content {
    width: 100%;
    max-width: 390px;
    margin: 0;
    text-align: center;
}

.login-brand {
    margin-bottom: 28px;
}

.login-brand img {
    display: block;
    width: 280px !important;
    max-width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto;
}

.login-heading {
    color: var(--text);
    font-size: 24px !important;
    line-height: 1.9;
    font-weight: 500;
}

.login-title {
    color: var(--pink);
    font-size: 32px;
    font-weight: 700;
    margin: 5px 0 32px;
}

.login-form {
    width: 100%;
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group>i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
    font-size: 16px;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    height: 49px;
    padding: 0 44px;
    border: 1px solid #e5ddeb;
    border-radius: 8px;
    background: #fff;
    color: #352344;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
    border-color: var(--purple);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(75, 33, 109, .08);
}

.form-group input::placeholder {
    color: #8b7b96;
}

.toggle-password {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--purple);
    cursor: pointer;
    font-size: 16px;
}

.forgot-password {
    display: block;
    margin: 4px 0 24px;
    color: var(--pink);
    font-size: 12px;
    text-align: right;
    text-decoration: none;
}

.forgot-password:hover,
.register-link:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #60317d, #42185e);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(65, 24, 91, .16);
    transition: background .25s, transform .25s;
}

.login-button:hover {
    background: var(--pink);
    transform: translateY(-1px);
}

.register-text {
    margin-top: 23px;
    color: #84778b;
    font-size: 12px;
    text-align: center;
    line-height: 1.8;
}

.register-link {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
}

.form-message {
    display: none;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
    overflow-wrap: anywhere;
}

.login-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid #eeeeee;

    /* Outer + Inner Shadow */
    box-shadow:
        0 5px 15px rgba(75, 33, 109, 0.10),
        0 10px 30px rgba(75, 33, 109, 0.08),
        inset 0 1px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 5px rgba(75, 33, 109, 0.06);
    transition: all 0.3s ease;
    
    overflow: auto;
    scrollbar-width: none;
}

.login-card:hover {
    transform: translateY(-3px);
}

.login-heading {
    text-align: center;
    color: #4b216d;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
}

.login-title {
    text-align: center;
    color: #4b216d;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Pink Decorative Line */
.login-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(to right,
            transparent,
            #c30b7c,
            transparent);
    margin: 8px auto 10px;
    border-radius: 50%;
}

/* Login Heading */
.login-label {
    text-align: center;
    color: #c30b7c;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
}

.mobile-bottom-nav {
    display: none;
}

@media (min-width: 1600px) {
    .login-content {
        max-width: 440px;
    }

    .login-heading {
        font-size: 19px;
    }

    .login-title {
        font-size: 38px;
        margin-bottom: 0;
    }

    .form-group input {
        height: 54px;
        font-size: 14px;
    }

    .login-button {
        min-height: 52px;
        font-size: 16px;
    }
}

@media (max-width: 1191px) {
    .swami-image {
        width: 320px;
    }

    .login-panel {
        padding: 15px 25px;
    }
}

@media (max-width: 1024px) {

    .swami-image {
        width: 320px;
    }

    .login-panel {
        padding: 15px 25px;
    }

    .login-wrapper {
        grid-template-columns: 1fr 0.65fr;
    }

    .login-heading {
        font-size: 15px;
    }

    .login-title {
        font-size: 28px;
    }
}

.temple-img {
    display: none;
}

.login-footer {
    display: none !important;
}


@media (max-width: 768px) {


    html,
    body {
        width: 100%;
        min-height: 100%;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .login-demo {
        display: none;
    }

    .login-data-form {
        width: 100%;
        height: 100vh;
    }

    .swami-image {
        display: none;
    }

    .login-img {
        margin-bottom: 15px;
    }

    .swami-image {
        width: 200px;
    }

    .temple-img {
        display: block;
        margin: auto;
        /*    width: 280px;
        height: 280px; */

    }

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

    .brand-panel {
        display: none;
    }

    .desktop-logo {
        display: none !important;
    }

    .login-heading {
        font-size: 25px !important;
        padding-top: 25px;
    }

    .login-brand {
        display: block !important;
    }

    .login-panel {
        background-color: #4b216d !important;
        display: flex;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        /*   height: 100dvh; */
        /*    min-height: 100dvh; */
        padding: 0;
        margin: 0;
        height: 100%;
        min-height: 0;
    }

    .login-card {
        position: relative;
        background-color: #fff;
        border-radius: 30px 30px 0 0;
        padding: 0;
        margin-top: 20px;
        border: none;
        width: 100%;
        /*   min-height: 100%; */
        min-height: 0;
        box-shadow: none;
        transition: none;
    }

    .login-card:hover {
        transform: none;
    }

    .login-form {
        padding: 25px 20px 25px;
    }

    .login-footer {
        display: block !important;
    }

    /* Keep all login content above footer */
    .login-card>*:not(.login-footer) {
        position: relative;
        z-index: 2;
    }

    /* Pink footer fixed at card bottom */
    .login-card>.login-footer {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 55px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1 !important;
        display: block !important;
        background: transparent !important;
        pointer-events: none;
    }

    .login-card>.login-footer svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .login-card>.login-footer svg path {
        fill: #c30b7c;
    }

    .temple-img {
        height: clamp(140px, 36vh, 241px);
    }

    .login-wrapper {
        display: flex;
        grid-template-columns: 1fr;
        /*      min-height: 100dvh; */
        /*   height: 100dvh; */
        min-height: 0;
        /*   overflow: hidden !important; */
    }

    .login-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        /*   height: 100%; */
        margin: 0;

    }

    .login-brand {
        flex-shrink: 0;
        margin-bottom: 5px;
        margin-bottom: 25px;
    }

    .login-brand img {
        width: 150px;
        max-height: 95px;
        object-fit: contain;
    }

    .login-title {
        font-size: 30px;
        margin-bottom: 0;
        margin-top: 0;
    }

    .form-group input {
        font-size: 14px;
    }

    .temple-img {
        width: 270px;
    }

    .login-card::before,
    .login-card::after,
    .login-form::before,
    .login-form::after {
        border: none !important;
        box-shadow: none !important;
    }

    .container-xxl {
        padding-right: 8px !important;
        padding-left: 8px !important;
        margin-left: 0;
        margin-right: 0;
    }

    .layout-navbar-fixed .layout-navbar.navbar-detached {
        width: calc(100% - 0rem * 2) !important;
    }

    .kf-report-heading {
        padding: 0 !important;
    }

    .kf-table-responsive {
        max-height: 65vh;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    #kfKaryakarTable {
        min-width: 900px;
        border-collapse: separate;
        border-spacing: 0;
    }

    #kfKaryakarTable thead th {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    /* DataTable Scroll */
    .niyam-table-responsive {
        width: 100%;
        overflow: hidden;
    }

    /* Sticky Header */
    .niyam-table-responsive .dataTables_scrollHead {
        position: sticky;
        top: 0;
        z-index: 100;

    }

    /* Header Background */
    .niyam-table-responsive .dataTables_scrollHead th {
        /*    background-color: #f5f5f9 !important; */
        white-space: nowrap;
    }

    /* Scroll Body */
    .niyam-table-responsive .dataTables_scrollBody {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }


    /* ==================================
   MOBILE BOTTOM NAVIGATION
================================== */

    .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .layout-menu-toggle {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        min-height: 70px;
        background: var(--bs-primary);
        /*   border-top: 1px solid #eeeeee; */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        z-index: 999;
    }

    .mobile-nav-item {
        flex: 1;
        min-width: 0;
        height: 58px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        border: none;
        background: transparent;
        cursor: pointer;
        white-space: nowrap;
        font-family: inherit;
    }

    .mobile-nav-item i {
        font-size: 22px;
        line-height: 1;
    }

    .mobile-nav-item.active {
        font-size: 13px;
        font-weight: 600;
        color: var(--bs-secondary);
    }

    /* More Wrapper */

    .mobile-more-wrapper {
        flex: 1;
        min-width: 0;
        height: 58px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .more-btn {
        width: 100%;
    }

    /* More Popup */

    .mobile-more-menu {
        position: absolute;
        right: 0;
        bottom: calc(100% + 8px);
        width: 235px;
        max-width: calc(100vw - 20px);
        background: #ffffff;
        border-radius: 14px 14px 0 0;
        padding: 8px;
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.17);
        border: 1px solid #eeeeee;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(10px);
        transform-origin: bottom right;
        transition: all .2s ease;
        z-index: 10000;
    }

    .mobile-more-menu.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Popup Links */

    .more-menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 12px;
        text-decoration: none;
        color: var(--bs-primary);
        font-size: 13px;
        font-weight: 600;
        border-radius: 9px;
        white-space: normal;
    }

    .more-menu-item i {
        font-size: 20px;
        color: var(--bs-primary);
        font-weight: 500;
    }

    .more-menu-item.active,
    .more-menu-item:hover {
        background: #f0efff;
        color: var(--bs-primary);
    }

    .more-menu-divider {
        height: 1px;
        background: #888;
        margin: 5px 8px;
    }

    /* Logout */

    .more-menu-item.logout-item,
    .more-menu-item.logout-item i {
        color: #e53935;
    }

    .more-menu-item.logout-item:hover {
        background: #fff0f0;
    }

    /* Bottom Content Space */

    /*     body {
        padding-bottom: 75px !important;
    } */

}

/* Mobile */
@media (max-width: 768px) {
    .niyam-table-responsive .dataTables_scrollBody {
        max-height: 65vh !important;
    }


}

@media (max-width: 425px) {
    .temple-img {
        width: 283px;
    }

    .form-group input {
        font-size: 14px;
    }

    .temple-img {
        height: clamp(140px, 28vh, 230px);
    }

    .login-brand {
        margin-bottom: 0;
    }

    /*    .login-brand img {
        max-height: 55px;
    } */

    .login-heading {
        font-size: 21px !important;
        padding-top: 12px;
    }

    .login-title {
        font-size: 26px;
    }

    .login-form {
        padding: 16px 16px 8px;
    }
    .kf-header-actions{
        width: 100%;
        justify-content:end;
    }

}

@media (max-width: 375px) {
    .temple-img {

        height: clamp(140px, 28vh, 235px);
    }

    .login-card {
        min-height: 0;
    }

    /*     .login-brand {
        margin-bottom: 20px;
    }

    .login-brand img {
        width: 130px;
    }

    .login-title {
        font-size: 25px;
        margin-bottom: 23px;
    }

    .form-group input {
        height: 45px;
        font-size: 12px;
    }

    .login-button {
        min-height: 45px;
    }

    .register-text {
        font-size: 11px;
    } */
    .mobile-nav-item {
        font-size: 11px;
    }

    .mobile-nav-item i {
        font-size: 18px;
    }

    .mobile-nav-item.active {
        font-size: 11px;
    }

}

@media (max-height: 600px) and (min-width: 769px) {
    .login-panel {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .login-brand {
        margin-bottom: 12px;
    }

    /*      .login-brand img {
                max-height: 55px;
            } */

    .login-title {
        margin-bottom: 18px;
    }

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

    .form-group input {
        font-size: 14px;
        height: 42px;
    }

    .forgot-password {
        margin-bottom: 14px;
    }

    .login-button {
        min-height: 42px;
    }

    .register-text {
        margin-top: 12px;
    }
}

.app-brand-logo .sidebar-logo {
    /*    width: 45px;
    height: 45px; */
    object-fit: contain;
    display: block;
}

.app-brand-text {
    font-size: 18px;
    white-space: nowrap;
}

.app-brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* 
.layout-menu:not(.expanded) .app-brand-logo .sidebar-logo {
    width: 38px;
    height: 38px;
} */



/* =================================
   MODAL
================================= */

.kf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.kf-modal.show {
    display: flex;
}

.kf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 15, 38, .62);
    backdrop-filter: blur(3px);
}

.kf-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 65px rgba(0, 0, 0, .22);
    animation: kfModalShow .25s ease;
}

@keyframes kfModalShow {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header */
.kf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0ebf3;
    background: var(--bs-primary);
    position: sticky;
    top: 0;
    z-index: 5;
}

.kf-modal-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.kf-modal-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 21px;
}

.kf-modal-heading h4 {
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.kf-modal-heading p {
    margin: 0;
    color: #fff;
    font-size: 12px;
}

.kf-modal-close {
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.kf-modal-close:hover {
    background: var(--bs-secondary);
    color: #fff;
}

/* Modal Body */
.kf-modal-body {
    padding: 24px;
    background: #faf8fc;
}

.kf-form-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0edf2;
    font-size: 15px;
    font-weight: 700;
    color: var(--bs-primary);
}

.kf-form-section-title i {
    font-size: 18px;
}

/* Form Grid */
.kf-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
}

.kf-form-field {
    min-width: 0;
}

.kf-form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--bs-primary);
    font-size: 15px;
    font-weight: 600;
}

.kf-form-field label span {
    color: #e04465;
}

/* Form Group - Icon + Input */
.kf-form-field .form-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 47px;
    /*  border: 1px solid #e7e1ec; */
    border-radius: 8px;
    background: #fff;
    transition: .25s;
}

.kf-form-field .form-group:focus-within {
    /*   border-color: var(--bs-primary); */
    box-shadow: 0 0 0 1px rgba(109, 59, 145, .09);
}


.kf-form-field .form-group input::placeholder {
    color: #aaa2b2;
    opacity: 1;
}

/* Country Code Phone Input */
.kf-phone-group {
    display: flex !important;
    align-items: center;
    position: relative;
    height: 48px !important;
    border: 1px solid #e5d9ed !important;
    border-radius: 9px !important;
    background: #fff;
    overflow: hidden;
}

.kf-phone-group .kf-country-code {
    flex-shrink: 0;
    padding: 0 12px 0 15px;
    color: var(--bs-primary);
    font-size: 14px;
    font-weight: 600;
    border-right: 1px solid #e5d9ed;
}

.kf-phone-group input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100% !important;
    padding: 0 12px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #fff !important
}

.kf-phone-group input:focus {
    border-color: var(--purple) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(75, 33, 109, .08) !important;
}

.kf-phone-group:focus-within {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(112, 64, 146, .08);
}

/* Modal Footer */
.kf-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 17px 24px;
    border-top: 1px solid #f0ebf3;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 5;
}

.kf-cancel-btn,
.kf-submit-btn {
    min-height: 42px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s;
}

.kf-cancel-btn {
    background: #fff;
    border: 1px solid #e4dce9;
    color: #66566f;
}

.kf-cancel-btn:hover {
    background: #f3eff6;
}

.kf-submit-btn {
    background: var(--bs-secondary);
    color: #fff;
    border: 1px solid var(--bg-light-primary);
}

.kf-submit-btn:hover {
    background: var(--bs-primary);
    border-color: var(--bg-light-primary);
    box-shadow: 0 4px 12px rgba(75, 33, 109, .18);
}

.kf-submit-btn i {
    font-size: 16px;
}

/* =================================
   RESPONSIVE
================================= */

@media(max-width: 767px) {

    .kf-registration-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .kf-toolbar-actions {
        width: 100%;
    }

    .kf-search-box {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .kf-add-btn {
        padding: 0 14px;
        flex-shrink: 0;
    }

    .kf-modal {
        padding: 10px;
        align-items: center;
    }

    .kf-modal-dialog {
        max-height: calc(100dvh - 20px);
        border-radius: 12px;
    }

    .kf-modal-header {
        padding: 16px;
    }

    .kf-modal-body {
        padding: 18px 16px;
    }

    .kf-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kf-modal-footer {
        padding: 14px 16px;
    }
}

@media(max-width: 380px) {

    .kf-toolbar-actions {
        gap: 7px;
    }

    .kf-add-btn {
        padding: 0 11px;
        font-size: 12px;
    }

    .kf-search-box {
        padding: 10px 9px;
    }

    .kf-modal-heading h4 {
        font-size: 16px;
    }

    .kf-modal-heading p {
        font-size: 11px;
    }

    .kf-cancel-btn,
    .kf-submit-btn {
        padding: 0 13px;
        font-size: 12px;
    }
}

/* Modal */
/* Select  dropdown  */

/* Select2 Main */
.kf-select-group {
    position: relative !important;
    overflow: visible !important;
}

.kf-select-group>i.bi-geo-alt-fill,
.kf-select-group>i.bi-award-fill,
.kf-select-group>i.bi-pin-map-fill {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--purple);
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
}

.kf-select-group .select2-container {
    width: 100% !important;
}

.kf-select-group .select2-container--default .select2-selection--single {
    height: 47px !important;
    border: 1px solid #e5ddeb;
    background: #fff !important;
    display: flex;
    align-items: center;
    border-radius: 8px !important;
}

.kf-select-group .select2-container--default .select2-selection--single:focus {
    background: white;

}

.kf-select-group .select2-selection__rendered {
    padding-left: 42px !important;
    padding-right: 30px !important;
    color: #444 !important;
    font-size: 14px;
}

.kf-select-group .select2-selection__placeholder {
    color: #aaa2b2 !important;
}

.kf-select-group .select2-selection__arrow {
    height: 47px !important;
    right: 8px !important;
}

.kf-select-group .select2-selection__clear {
    display: none;
}

/* Dropdown */
.select2-dropdown {
    border: 1px solid var(--bg-light-primary) !important;
    border-radius: 8px !important;
    overflow: hidden;
    z-index: 100000 !important;
}

.select2-search--dropdown {
    padding: 10px !important;
}

.select2-search__field {
    height: 36px !important;
    border: 1px solid var(--bg-light-primary) !important;
    border-radius: 6px !important;
    outline: none !important;
    padding: 5px 10px !important;
}

.select2-results__option {
    padding: 10px 13px !important;
    font-size: 13px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--purple) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--bg-light-primary);
    color: var(--bs-primary);
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single:focus {
    background-color: #ffffff;
}

.kf-select-group .select2-container--default .select2-selection--single:focus {
    background-color: #fff !important;
}

/* table Action */
.kf-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kf-action-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 17px;
}

.kf-view-btn {
    background: var(--bg-light-secondary);
    color: var(--bs-secondary);
}

.kf-view-btn:hover {
    background: var(--bs-secondary);
    color: #fff;
}

.kf-delete-btn {
    background: #ffecec;
    color: #d6302c;
}

.kf-delete-btn:hover {
    background: #d6302c;
    color: #fff;
}


/* View Modal CSS */
/* Professional View Modal */
.kf-view-modal .modal-dialog {
    max-width: 850px;
}

.kf-view-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(40, 20, 60, .18);
    font-family: 'Hind Vadodara', sans-serif;
}

.kf-view-header {
    background: var(--bs-primary);
    color: #fff;
    padding: 17px 22px;
}

.kf-view-header .modal-title {
    font-size: 19px;
    font-weight: 600;
}

.kf-profile-icon {
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.kf-profile-name {
    font-size: 17px;
    font-weight: 600;
}

.kf-profile-sub {
    font-size: 12px;
    color: #e4d9ed;
}

.kf-view-body {
    padding: 20px 22px;
    max-height: 68vh;
    overflow-y: auto;
}

.kf-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.kf-step-number {
    width: 25px;
    height: 25px;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.kf-info-box {
    background: #faf8fc;
    border: 1px solid #eee6f3;
    border-radius: 10px;
    padding: 13px;
}

.kf-info-item {
    padding: 5px 8px;
    min-width: 0;
}

.kf-info-label {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 3px;
}


.kf-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-primary);
    overflow-wrap: anywhere;
}

.kf-view-divider {
    border-top: 1px solid #eee8f2;
    margin: 18px 0;
}

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

.kf-rule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #eee8f2;
    background: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 42px;
}

.kf-rule-name {
    font-size: 14px;
    font-weight: 600;
    color: #51445c;
}

.kf-rule-status {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.kf-selected {
    color: #198754;
    background: #e7f6ed;
}

.kf-not-selected {
    color: #888;
    background: #f1f1f1;
}

.kf-view-footer {
    padding: 12px 22px;
    border-top: 1px solid #eee8f2;
    background: #faf9fc;
}

.kf-print-btn {
    background: var(--bs-primary);
    color: #fff;
    border: 0;
}

.kf-print-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}

@media(max-width: 576px) {
    .kf-view-modal .modal-dialog {
        margin: 10px;
    }

    .kf-view-body {
        padding: 14px;
        max-height: 72vh;
    }

    .kf-rule-grid {
        grid-template-columns: 1fr;
    }

    .kf-view-header {
        padding: 14px;
    }
}

.modal-backdrop.show {
    background-color: #000 !important;
    opacity: 0.75 !important;
}

/* =====================================
   COMMON CUSTOM SCROLLBAR DESIGN
===================================== */

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Scrollbar Track */
*::-webkit-scrollbar-track {
    background: #f5f1f8;
    border-radius: 10px;
}

/* Scrollbar Thumb */
*::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 10px;
    border: 2px solid #f5f1f8;
}

/* Hover Effect */
*::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) var(--bg-light-primary);
}

/* View Modal Scrollbar */
.kf-view-modal .modal-dialog-scrollable .modal-body,
.kf-view-body,
.kf-modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) var(--bg-light-primary);
}

.kf-view-modal .modal-dialog-scrollable .modal-body::-webkit-scrollbar,
.kf-view-body::-webkit-scrollbar,
.kf-modal-body::-webkit-scrollbar {
    width: 8px;
}

.kf-view-modal .modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb,
.kf-view-body::-webkit-scrollbar-thumb,
.kf-modal-body::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 10px;
    border: 2px solid #f5f1f8;
}

.kf-view-modal .modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover,
.kf-view-body::-webkit-scrollbar-thumb:hover,
.kf-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* header */

.navbar-inner {
    width: 100%;
    min-height: 60px;
    padding: 5px 15px;
}

.navbar-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

.navbar-heading-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--bs-primary);
}

.navbar-heading-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--bs-primary);
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .navbar-inner {
        padding: 5px 10px;
    }

    .navbar-heading-title {
        font-size: 18px;
        margin-top: 2px;
    }

    .navbar-heading-subtitle {
        font-size: 16px;
    }

    .navbar-nav-right {
        margin-left: auto;
    }
}

.kf-heading-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #EEEAFB;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}


/* Filter View */

/* મોબાઈલ વ્યુમાં સર્ચ બાર પૂરી વિડથમાં સરસ દેખાય તે માટે */
@media (max-width: 767px) {
    #customSearchContainer {
        width: 100% !important;
    }

    .custom-search-box {
        width: 100% !important;
    }
}

/* ડેસ્કટોપ વ્યુમાં બધા જ ફિલ્ટર્સ અને સર્ચ બાર એક જ લાઇનમાં રહે તે માટે */
@media (min-width: 992px) {
    #tableFiltersWrapper {
        flex-wrap: nowrap !important;
    }

    #customSearchContainer {
        width: 210px !important;
    }

    .custom-search-box {
        width: 100% !important;
    }
}

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

.kf-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px;
    border-bottom: 1px solid #f0edf2;
    flex-wrap: nowrap;
}

/* FILTER WRAPPER */

.kf-filters-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.filter-item-box {
    width: 190px;
    flex: 0 0 190px;
    min-width: 0;
}

/* SEARCH */

.kf-search-box {
    width: 230px;
    min-width: 150px;
    height: 42px;
    border: 1px solid #e8e3ed;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 9px;
    background: #fff;
}

.kf-search-box i {
    font-size: 18px;
    color: #8d7c9d;
    flex-shrink: 0;
}

.kf-search-box input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 13px;
    color: #444;
    background: transparent;
}

/* ACTION BUTTONS */

.kf-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

/* FILTER ICON BUTTON */

.kf-filter-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #48236C;
    color: #fff;
    font-size: 21px;
    cursor: pointer;
    transition: .2s ease;
}

.kf-filter-toggle:hover {
    background: #B8177C;
}


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

@media (max-width: 768px) {

    .kf-table-header {
        display: flex;
       /*  flex-direction: column; */
        align-items: center;
        padding: 15px;
        gap: 14px;
        justify-content: space-between;
    }

    /* Filters hidden by default */

    .kf-filters-wrapper {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        order: 1;
        padding: 14px 0;
        /*  background: #faf8fc;
                border: 1px solid #eee8f3; */
        border-radius: 10px;
    }

    /* When filter button clicked */

    .kf-filters-wrapper.show-filters {
        display: flex;
    }

    .filter-item-box {
        width: 100%;
        flex: 0 0 auto;
    }

    /* Action buttons */

    .kf-header-actions {
      /*   width: 100%; */
        display: flex;
        align-items: center;
        order: 0;
        gap: 10px;

       /*  justify-content: end */
    }

    .kf-add-btn {
        /*   flex: 1; */
        min-width: 0;
        padding: 0 10px;
        height: 42px;
        font-size: 13px;
        white-space: nowrap;
    }

    .kf-filter-toggle {
        display: inline-flex;
        flex: 0 0 42px;
    }

    /* Search below buttons */

    .kf-search-box {
        width: 100%;
        min-width: 0;
        order: 2;
    }

}

/* SMALL MOBILE */

@media (max-width: 400px) {

    .kf-table-header {
        padding: 12px;
    }

    .kf-add-btn {
        font-size: 12px;
    }

}