﻿@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
    --base-clr: #ffffff;
    --line-clr: #cccccc;
    --hover-clr: #f0f0f0;
    --text-clr: #11121a;
    --accent-clr: #5e63ff;
    --secondary-text-clr: #555555;
}

.setpaddingmargin * {
    margin: 0 !important;
    padding: 0 !important;
}

html {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Verdana, Geneva, sans-serif !important;
    line-height: 1.5rem !important;
}

body {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background-color: var(--base-clr) !important;
    color: var(--text-clr) !important;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
}

#st_sidebar {
    box-sizing: border-box !important;
    height: 100vh !important;
    width: 250px !important;
    padding: 5px 1em !important;
    background-color: var(--base-clr) !important;
    border-right: 1px solid var(--line-clr) !important;
    position: sticky !important;
    top: 0 !important;
    align-self: start !important;
    transition: 300ms ease-in-out !important;
    overflow: hidden !important;
    overflow-y: auto !important;
    overflow-x: auto !important;

    text-wrap: nowrap !important;
}

    #st_sidebar.close {
        padding: 5px !important;
        width: 60px !important;
    }

    #st_sidebar ul {
        list-style: none !important;
    }

    #st_sidebar > ul > li:first-child {
        display: flex !important;
        justify-content: flex-end !important;
        margin-bottom: 16px !important;
    }

.logo {
    font-weight: 600 !important;
}

#st_sidebar ul li.active a {
    color: var(--accent-clr) !important;
}

svg {
    fill: var(--accent-clr) !important;
}

#st_sidebar a,
#st_sidebar .dropdown-btn,
#st_sidebar .logo {
    border-radius: .5em !important;
    padding: .85em !important;
    text-decoration: none !important;
    color: var(--text-clr) !important;
    display: flex !important;
    align-items: center !important;
    gap: 1em !important;
}

.dropdown-btn {
    width: 100% !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
    font: inherit !important;
    cursor: pointer !important;
}

#st_sidebar svg {
    flex-shrink: 0 !important;
    fill: var(--text-clr) !important;
}

#st_sidebar a span,
#st_sidebar .dropdown-btn span {
    flex-grow: 1 !important;
}

#st_sidebar a:hover,
#st_sidebar .dropdown-btn:hover {
    background-color: var(--hover-clr) !important;
}

#st_sidebar .sub-menu {
    display: grid !important;
    grid-template-rows: 0fr !important;
    transition: 300ms ease-in-out !important;
}

    #st_sidebar .sub-menu > div {
        overflow: hidden !important;
    }

    #st_sidebar .sub-menu.show {
        grid-template-rows: 1fr !important;
    }

.dropdown-btn svg {
    transition: 200ms ease !important;
}

.rotate svg:last-child {
    rotate: -90deg !important;
}

#st_sidebar .sub-menu a {
    padding-left: 3em !important;
}

#st_toggle-btn {
    margin-left: auto !important;
    padding: 1em !important;
    border: none !important;
    border-radius: .5em !important;
    background: none !important;
    cursor: pointer !important;
}

    #st_toggle-btn svg {
        transition: rotate -90ms ease !important;
    }

    #st_toggle-btn:hover {
        background-color: var(--hover-clr) !important;
    }


    


/*main p {
    color: var(--secondary-text-clr) !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}*/

/*.st_container {
    border: 1px solid var(--line-clr) !important;
    border-radius: 1em !important;
    margin-bottom: 20px !important;
    padding: min(3em, 15%) !important;
}

h2, p {
    margin-top: 1em !important;
}*/
.st_tooltip {
    position: fixed !important; /* escape overflow clipping */
    left: auto !important;
    top: auto !important;
    transform: none !important;
    background-color: dodgerblue !important;
    color: var(--base-clr) !important;
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    padding: 0.4em 0.8em !important;
    border-radius: 4px !important;
    z-index: 9999 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    /*transition: opacity 0.2s ease !important;*/
}

/* Tooltip positioning logic */
#st_sidebar.close li:hover .st_tooltip {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    top: calc(var(--mouse-y, 0) * 1px) !important;
    left: calc(var(--mouse-x, 0) * 1px + 10px) !important;
}



.st_main-content {
    position: relative !important;
    background-color: #eee !important;
    min-height: 100vh !important;
    top: 0 !important;
    left: 80px !important;
    transition: all 0.5s ease !important;
    width: calc(100% - 80px) !important;
    padding: 1rem !important;
}

.st_container {
    display: flex !important;
    justify-content: space-between !important;
}


/* Responsive styles  for small screen*/
@media (max-width: 800px) {
    body {
        grid-template-columns: 1fr !important;
    }

    main {
        padding: 2em 1em 60px 1em !important;
    }

    .st_container {
        border: none !important;
        padding: 0 !important;
    }

    #st_sidebar {
        height: 60px !important;
        width: 100% !important;
        border-right: none !important;
        border-top: 1px solid var(--line-clr) !important;
        padding: 0 !important;
        position: fixed !important;
        top: unset !important;
        bottom: 0 !important;
     
    }

        #st_sidebar ul {
            padding: 0 !important;
            display: grid !important;
            grid-auto-columns: 60px !important;
            grid-auto-flow: column !important;
            align-items: center !important;
            overflow-x: scroll !important;

        }

            #st_sidebar ul li {
                height: 100% !important;
            }

            #st_sidebar ul a,
            #st_sidebar ul .dropdown-btn {
                width: 60px !important;
                height: 60px !important;
                padding: 0 !important;
                border-radius: 0 !important;
                justify-content: center !important;
                display: flex !important;
                align-items: center !important;
                text-align: center !important;
            }

            #st_sidebar ul li span,
            #st_sidebar ul li:first-child,
            #st_sidebar .dropdown-btn svg:last-child {
                display: none !important;
            }

            #st_sidebar ul li .sub-menu.show {
                position: fixed !important;
                bottom: 60px !important;
                left: 0 !important;
                width: 100% !important;
                height: 60px !important;
                box-sizing: border-box !important;
                background-color: var(--hover-clr) !important;
                border-top: 1px solid var(--line-clr) !important;
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                overflow-x: auto !important;
                padding: 0 10px !important;
                gap: 10px !important;
                z-index: 1000 !important;
            }

                #st_sidebar ul li .sub-menu.show li {
                    display: inline-flex !important;
                }

                #st_sidebar ul li .sub-menu.show a {
                    box-sizing: border-box !important;
                    padding: 1em !important;
                    width: auto !important;
                    justify-content: center !important;
                    display: flex !important;
                    align-items: center !important;
                    white-space: nowrap !important;
                }

        #st_sidebar .st_user,
        #st_sidebar .st_top {
            display: none !important;
        }



   





   

}




.st_user-img {
    width: 50px !important;
    background-color: transparent !important;*/
    height: auto !important;
   padding:0px !important;
    flex-shrink: 0 !important;
}
#st_sidebar.close .st_user-img {
    width: 50px !important;
    background-color: transparent !important;*/
    height: auto !important;
   padding:0px !important;
    flex-shrink: 0 !important;
}



#st_sidebar.close .st_logo,
#st_sidebar.close .st_user_det {
    display: none !important;
}










   



    .st_sidebar.active .st_top .st_logo {
        opacity: 1 !important;
    }

.st_top .st_logo i {
    font-size: 2rem !important;
    margin-right: 5px !important;
}

.st_user {
    display: flex !important;
    align-items: center !important;
    margin: 1rem 0 !important;
    max-width: 250px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
}


.st_user_det {
    max-width: 150px; /* Remaining width in sidebar */
    padding-left: 10px;
    box-sizing: border-box;
    overflow-wrap: break-word; /* Break long words */
    word-break: break-word; /* Break within long emails */
    white-space: normal; /* Allow multi-line wrapping */
}

    .st_user_det p {
        margin: 0 0 4px 0;
        font-size: 14px;
        
        white-space: normal;
        line-height: 1.2;
    }

    .st_user_det strong {
        font-weight: 600; /* Slightly bold for role name */
    }









/* Tree style default */
.tree-item ul {
    padding-left: 1rem !important;
    margin: 0 !important;
    list-style: none !important;
}

/* When button is active */
.tree-item .dropdown-btn.active {
    background-color: #e7f3ff !important;
    color: #007bff !important;
    font-weight: bold !important;
}

/* Child items under tree view */
.tree-item ul li {
    padding: 5px 15px !important;
    border-left: 2px solid #ccc !important;
}

    /* Hover effect for links inside li */
    .tree-item ul li a {
        display: block !important;
        color: #333 !important;
        text-decoration: none !important;
        padding: 5px 0 !important;
    }

        .tree-item ul li a:hover {
            background-color: #f0f0f0 !important;
            color: #000 !important;
        }



















/*update  for css */








/*new chnages */
#st_sidebar {
    /*  background: linear-gradient(135deg, #FF9933, #138808) !important;*/
    background: linear-gradient(to right, #4b5563, #1e293b) !important;
    color: #ffffff !important;
}

    #st_sidebar a,
    #st_sidebar .dropdown-btn,
    #st_sidebar .logo {
        color: #e0e6f8 !important;
        font-weight: 500 !important;
        transition: background-color 0.3s ease, color 0.3s ease !important;
    }

        #st_sidebar a:hover,
        #st_sidebar .dropdown-btn:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #ffffff !important;
        }

    #st_sidebar ul li.active a {
        background-color: rgba(255, 255, 255, 0.15) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
    }

    #st_sidebar svg {
        fill: #e0e6f8 !important;
        transition: fill 0.3s ease !important;
    }

    #st_sidebar a:hover svg,
    #st_sidebar .dropdown-btn:hover svg,
    #st_sidebar ul li.active svg {
        fill: #ffffff !important;
    }

    #st_sidebar .sub-menu a {
        color: #cfd8ff !important;
    }

        #st_sidebar .sub-menu a:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #ffffff !important;
        }




    #st_sidebar.close {
        background: linear-gradient(to bottom, #003973, #000428) !important;
    }

        #st_sidebar.close a:hover {
            background-color: rgba(255, 255, 255, 0.15) !important;
        }
/*new changes end */

.st_user-img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: transparent !important; /* No gradient */
    padding: 0 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 10px auto !important; /* Centered image with spacing */
}

#st_sidebar.close .st_user-img {
    width: 40px !important;
    height: 40px !important;
    margin: 10px auto !important;
    display: block !important;
}

#st_sidebar.close .st_logo,
#st_sidebar.close .st_user_det {
    display: none !important; /* Hide text, keep image visible */
}













/*notification card style */


/* Custom size */
.custom-notification {
    width: 300px;
    height: 300px;
}

/* Move modal to top right */
#notificationModal .modal-dialog {
    position: fixed;
    top: 60px; /* adjust below navbar */
    right: 20px; /* spacing from right edge */
    margin: 0;
}









/*for the continer act as container fuild */
.container {
    max-width: 100% !important; /* override Bootstrap's max-width */
    width: 100% !important; /* ensure full width */
    padding-left: 15px !important; /* optional: keep default gutter or set 0 */
    padding-right: 15px !important;
}


















































/* 1) Classic on/off blink (visibility toggle) */
.blinker {
    display: inline-block;
    animation: blink-step 1s steps(1, start) infinite;
}

@keyframes blink-step {
    50% {
        visibility: hidden;
    }
}

/* 2) Smooth fade in/out */
.blinker-fade {
    display: inline-block;
    animation: blink-fade 1.2s ease-in-out infinite;
}

@keyframes blink-fade {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 3) Pulse (scale + glow) — good for attention without hard flashing */
.blinker-pulse {
    display: inline-block;
    animation: blink-pulse 1.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes blink-pulse {
    0%,100% {
        transform: scale(1);
        text-shadow: none;
        opacity: 1;
    }

    50% {
        transform: scale(1.06);
        text-shadow: 0 0 8px rgba(0,0,0,0.08);
        opacity: 0.85;
    }
}

/* 4) Caret style (like a typing cursor) */
.blinker-caret::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 6px;
    vertical-align: middle;
    background: currentColor;
    animation: blink-step 1s steps(1,start) infinite;
}

/* 5) Small dot blinker (e.g., status indicator) */
.blinker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    background: #e33;
    animation: blink-dot 1s linear infinite;
}

@keyframes blink-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 6) Fast subtle flash (for urgent small indicators) */
.blinker-fast {
    display: inline-block;
    animation: blink-fast 0.6s ease-in-out infinite;
}

@keyframes blink-fast {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Variants: speed modifiers */
.blink-slower {
    animation-duration: 2.4s !important;
}

.blink-slow {
    animation-duration: 1.8s !important;
}

.blink-fast {
    animation-duration: 0.6s !important;
}

/* Accessibility: stop animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .blinker,
    .blinker-fade,
    .blinker-pulse,
    .blinker-caret::after,
    .blinker-dot,
    .blinker-fast {
        animation: none !important;
        transition: none !important;
    }
}
.gradient-bg {
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    background: linear-gradient(90deg, #ff3d00, #ff9100, #ffc400) !important;
    font-weight: bold !important;
}









/*CSS FOR VALID PRIORITY*/


.row-to-save {
    background-color: #f1fff1 !important;
    transition: background-color 0.3s ease;
}

.valid-priority {
    border: 2px solid #198754 !important;
    font-weight: bold;
}







 













/*loader */


/* Fullscreen overlay */
#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    #globalLoader .loader-content {
        text-align: center;
    }

    #globalLoader p {
        font-size: 1.1rem;
        color: #333;
        font-weight: 500;
        margin-top: 10px;
    }

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
















/* style for multiselect */

.ddl-header {
    border: 1px solid #999;
    padding: 5px;
    cursor: pointer;
    background: white;
}

.ddl-list {
    display: none;
    position: absolute;
    top: 35px;
    width: 100%;
    height: 140px;
    border: 1px solid #999;
    background: white;
    overflow-y: auto;
    z-index: 9999;
}

.ddl-ul {
    list-style: none;
    padding: 5px;
    margin: 0;
}

    .ddl-ul li {
        display: flex;
        gap: 8px;
        align-items: center;
        margin-bottom: 4px;
    }













/*annexure  image data css*/
.divBoder {
    border: 2px solid #000;
}


.photo-container {
    border: 2px solid #000;
    padding: 20px;
    width: 100%;
}

.photo-grid {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

    .photo-grid td {
        width: 50%;
        text-align: center;
        padding: 20px;
    }

    .photo-grid img {
        width: 500px;
        height: 400px;
        object-fit: cover; /* keeps image proper without distortion */
        border: 1px solid #000; /* optional border for each photo */
    }

































/* style For Multiselect start */



.custom-multiselect {
    position: relative;
    width: 100%;
    overflow: visible !important; /* 🔥 FIX */
}
/* Header same as Bootstrap select */
.ddl-header.form-select {
    cursor: pointer;
    /* Exact Bootstrap feel */
    height: calc(2.25rem + 2px);
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    display: flex;
    align-items: center;
    /* Optional: arrow like select */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}


    /* Focus effect like Bootstrap */
    .ddl-header.form-select:focus,
    .ddl-header.form-select.active {
        border-color: #86b7fe;
        outline: 0;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }
/* Dropdown list */
.ddl-list {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    z-index: 1000;
    display: none;
}

/* UL styling */
.ddl-ul {
    list-style: none;
    padding: 5px;
    margin: 0;
}

    /* List items */
    .ddl-ul li {
        padding: 4px 8px;
    }

        /* Hover effect */
        .ddl-ul li:hover {
            background-color: #f8f9fa;
        }





/* style For Multiselect end */