﻿.navbar-nav-right {
    height: 2rem;
    margin-top: 4px;
}
.navbar-title-erdb {
    position: fixed;
    left: 35%;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.90) !important;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}
/*sidebar*/
.layout-container {
    margin: 0 auto;
    display: flex;
    transition: 1s ease;
}

.sidebar {
    transition: 1s ease;
    position: relative;
}

/* toggle styling moved to brand.css */
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle):before {
    background-color: #19e63c !important;
}

/* collapsed sidebar (.sidebar_small) styling lives in brand.css */

::-webkit-scrollbar {
    width: 10px !important;
    height:10px !important;
}

/*loader*/
.loader {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.4);
    background-image: url('ajax-loader.gif');
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 100;
    filter: alpha(opacity=40);
}

.spinner-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

    .spinner-box p {
        color: #0a1b3d;
        font-size: 14px;
        font-weight: 700;
    }

.three-quarter-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #0a1b3d;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin .5s linear 0s infinite;
}
/*loader*/

.breadcrumb-container{
    padding-top: 1rem;
}

.container-card {
    padding: 10px;
}

.tab-content {
    padding-top: 0.5rem;
}

.card-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.card-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

thead {
    background-color: #eceef1 !important;
    position: sticky !important;
    top: -1px;
    z-index: 1 !important;
}
    thead tr:nth-child(1) td {
        font-weight: 600;
        color: #566a7f;
    }
        /*thead tr:nth-child(1) td::after {
            content: "\f0dc";
            font-family: FontAwesome;
            color: #ccc;
            float: right;
        }
        .tdpad::after{
            content: none !important;
        }
        .layout-page {
            transition: 1s ease;
        }*/

.layout-page_large {
    padding-left: 3% !important;
}

.sidebar_small {
    width: 3%;
}

    .sidebar_small .menu-header span {
        display: none;
    }

    .sidebar_small .layout-menu-toggle {
        position: absolute;
        left: 100%;
        transform: translateX(-50%);
    }

    .sidebar_small .menu-item .menu-link {
        font-size: 0 !important;
        padding-left: 0px;
    }

    .sidebar_small .app-brand {
        padding-left: 1rem;
    }

    .sidebar_small .bg-menu-theme .menu-header:before {
        left: 5% !important;
    }

    .sidebar_small .app-brand-logo img {
        display: none;
    }

/*search bar*/

.modal-xxl {
    max-width: 90%;
    width: 90%;
}

@media (max-width: 768px) {
    .modal-xxl {
        max-width: 95%;
        width: 95%;
    }
}

@media (max-width: 576px) {
    .modal-xxl {
        max-width: 100%;
        width: 100%;
    }
}




.search_dropdown .list-group {
    position: absolute;
    top: 45px;
    left: 0px;
    width: 100%;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    display: none;
    box-shadow: 8px 8px 6px -10px #b3c6ff;
    list-style-type: none;
}

    .search_dropdown .list-group.active {
        display: block;
        max-height: 250px;
        overflow: scroll;
    }

.search_dropdown .list-group-item {
    border: none !important;
}
/*.search_dropdown ul li {
                padding-bottom: 20px;
            }

                  .search_dropdown ul li:last-child {
                    padding-bottom: 0;
                }

                  .search_dropdown ul li:hover {
                    color: #6f768d;
                }*/

.avatar img{
    height: 95%;
    width: 95%;
}

.search_field {
    height: 100%;
    width: 100%;
    position: relative;
}

    .search_field .input {
        height: 100%;
        border: 0px;
        font-size: 16px;
        padding-left: 20px;
        padding-right: 38px;
        color: #6f768d;
    }

    .search_field .fas {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 22px;
        color: #19e63c;
        cursor: pointer;
    }

#tblansimesiapproval {
    table-layout: fixed;
    /*white-space: nowrap;*/
    overflow: hidden;
}
#tblansimesiapproval_wrapper{
    overflow:scroll;
}
#tblansimesiapproval td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table > :not(caption) > * > * {
    padding: 7px;
}
.table th{
    text-transform: none;
    letter-spacing: 0;
    font-size:medium;
}
/*#ApprovalRequestActionTable_ChangeMinMaxMRP > tbody > tr.child ul{
    width: 40%;
}*/
/* tbody > tr.child ul{
    width: 50%;
}*/
/*#ApprovalRequestActionTable_ChangeMinMaxMRP > tbody > tr.child ul.dtr-details > li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}*/

/* tbody > tr.child ul.dtr-details > li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}*/

#RequestItemsAccordion .dtr-title {
    width: 150px;
}
#tblapprovalrequestitems .dtr-title {
    width: 240px;
}

.form-label {
    text-transform: none;
    font-size: 0.9375rem;
}

.cpm-red {
    color: #19e63c;
}

.btn.btn-cpm-green {
    border-radius: 3px;
    background: #0fa82b;
    border-color: #0fa82b;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 8px 7px;
}

.btn.btn-cpm-red {
    border-radius: 3px;
    background: #19e63c;
    border-color: #19e63c;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 8px 7px;
}
.btn.btn-cpm-grey {
    border-radius: 3px;
    background: #f7f7f7;
    border-color: #cccccc;
    justify-content: center;
    align-items: center;
    color: #697a8d;
    padding: 8px 7px;
}

.RefreshButtonDiv .bx{
    line-height: 1rem;
}

.btn.btn-danger,
.btn.btn-danger:hover {
    background: #19e63c;
    border-color: #19e63c;
}
    .btn.btn-outline-danger,
    .btn.btn-outline-danger:hover {
        border-color: #19e63c;
    }

div.dataTables_processing{
    z-index: 2;
}
    div.dataTables_processing div div{
        background-color: #19e63c !important;
    }

    .dataTables_length select {
        height: 34px;
        background-color: #f7f7f7;
    }
.dataTables_length .form-select-sm {
    font-size: 0.9375rem;
}
.dataTables_filter .form-control {
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB2ZXJzaW9uPSIxLjEiICAgaWQ9InN2ZzQ0ODUiICAgdmlld0JveD0iMCAwIDIxLjk5OTk5OSAyMS45OTk5OTkiICAgaGVpZ2h0PSIyMiIgICB3aWR0aD0iMjIiPiAgPGRlZnMgICAgIGlkPSJkZWZzNDQ4NyIgLz4gIDxtZXRhZGF0YSAgICAgaWQ9Im1ldGFkYXRhNDQ5MCI+ICAgIDxyZGY6UkRGPiAgICAgIDxjYzpXb3JrICAgICAgICAgcmRmOmFib3V0PSIiPiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+ICAgICAgICA8ZGM6dHlwZSAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4gICAgICAgIDxkYzp0aXRsZT48L2RjOnRpdGxlPiAgICAgIDwvY2M6V29yaz4gICAgPC9yZGY6UkRGPiAgPC9tZXRhZGF0YT4gIDxnICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLC0xMDMwLjM2MjIpIiAgICAgaWQ9ImxheWVyMSI+ICAgIDxnICAgICAgIHN0eWxlPSJvcGFjaXR5OjAuNSIgICAgICAgaWQ9ImcxNyIgICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAuNCw4NjYuMjQxMzQpIj4gICAgICA8cGF0aCAgICAgICAgIGlkPSJwYXRoMTkiICAgICAgICAgZD0ibSAtNTAuNSwxNzkuMSBjIC0yLjcsMCAtNC45LC0yLjIgLTQuOSwtNC45IDAsLTIuNyAyLjIsLTQuOSA0LjksLTQuOSAyLjcsMCA0LjksMi4yIDQuOSw0LjkgMCwyLjcgLTIuMiw0LjkgLTQuOSw0LjkgeiBtIDAsLTguOCBjIC0yLjIsMCAtMy45LDEuNyAtMy45LDMuOSAwLDIuMiAxLjcsMy45IDMuOSwzLjkgMi4yLDAgMy45LC0xLjcgMy45LC0zLjkgMCwtMi4yIC0xLjcsLTMuOSAtMy45LC0zLjkgeiIgICAgICAgICBjbGFzcz0ic3Q0IiAvPiAgICAgIDxyZWN0ICAgICAgICAgaWQ9InJlY3QyMSIgICAgICAgICBoZWlnaHQ9IjUiICAgICAgICAgd2lkdGg9IjAuODk5OTk5OTgiICAgICAgICAgY2xhc3M9InN0NCIgICAgICAgICB0cmFuc2Zvcm09Im1hdHJpeCgwLjY5NjQsLTAuNzE3NiwwLjcxNzYsMC42OTY0LC0xNDIuMzkzOCwyMS41MDE1KSIgICAgICAgICB5PSIxNzYuNjAwMDEiICAgICAgICAgeD0iLTQ2LjIwMDAwMSIgLz4gICAgPC9nPiAgPC9nPjwvc3ZnPg==);
    background-repeat: no-repeat;
    background-color: #f7f7f7;
    background-position: 95% 6px !important;
    height: 34px;
    width: 300px !important;
}

.dataTables_filter{
    position: absolute;
    top:0;
    right: 0;
}

.dataTables_wrapper .AdvancedSearchBtn{
    position: absolute;
    top: 7px;
    right: 0;
}
    .dataTables_wrapper .AdvancedSearchBtn .btn{
        line-height: 1;
    }
    .dataTables_wrapper .RefreshButtonDiv .btn {
        line-height: 1;
    }
    .dataTables_wrapper .ClearButtonDiv .btn {
        line-height: 1;
    }

    #tblansimesiapproval_filter {
        right: 150px;
    }

#ApproverWorkflowCanvas{
    width: 50%;
}

.card-sticky{
    position: sticky;
    top: 0;
    z-index:4;
    background: white;
}

.nav .nav-link:hover, .nav .nav-link:focus {
    color: #19e63c;
}

.nav .nav-item .active,
.nav .nav-item .active:hover,
.nav .nav-item .active:focus {
    background: none;
    box-shadow: none;
    border-bottom: 2px solid #19e63c;
    border-radius: 0;
    color: #19e63c;
}

.includeOriginatorFormGroup{
    margin-left: 55px;
}
#askforinformationcomments-container{
    margin-top: 1rem;
}
    #askforinformationcomments-container .no-data {
        display: none !important;
    }
    #askforinformationcomments-container .control-row{
        margin-top: 25px;
    }


    .control-row {
        position: relative;
        bottom: 2px;
        right: 0px;
    }

.control-row .highlight-background,
.control-row .upload {
    border-radius: 3px;   
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    padding: 8px 7px !important;
    width: 155px;

}
.control-row .highlight-background
 {
    background: #0fa82b !important;
    border-color: #0fa82b !important;   
}

.control-row .upload {
    background: #8d9391 !important;
    border-color: #8d9391 !important;
}

#comment-list,
#attachment-list {
    max-height: 50vh;
    overflow: scroll;
}

#askforinformationcomments-container .dropdown {
    left: 12% !important;
    top: 44% !important;
    position:absolute !important;
}
.jquery-comments{
    position:relative;
}
#comments-container .dropdown {
    left: 5% !important;
    top: 12% !important;
}
.info-icon {
    background-image: url('../img/icons/info-circle.svg');
    content: "";
    display: inline-block;
    height: 18px;
    width: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
.tick-icon {
    background-image: url('../img/icons/tick-icon.svg');
    content: "";
    display: inline-block;
    height: 22px;
    width: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.approved-icon {
    background-image: url('../img/icons/approved_icon.svg');
    content: "";
    display: inline-block;
    height: 18px;
    width: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
.notapproved-icon {
    background-image: url('../img/icons/notapproved_icon.svg');
    content: "";
    display: inline-block;
    height: 18px;
    width: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
.error-icon {
    background-image: url('../img/icons/circle-exclamation-solid.svg');
    content: "";
    display: inline-block;
    height: 18px;
    width: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.show-hide-cols-icon {
    background-image: url('../img/icons/menu-hide-b.svg');
    content: "";
    display: inline-block;
    height: 29px;
    width: 31px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
.clear-filters-icon {
    background-image: url('../img/icons/filter-remove-icon.svg');
    content: "";
    display: inline-block;
    height: 18px;
    width: 23px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.double-arrow-right {
    background-image: url('../img/icons/double-arrow-right.svg');
    content: "";
    display: inline-block;
    height: 16px;
    width: 23px;
    margin-top: 5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
.arrow-down-red {
    background-image: url('../img/icons/arrow-down-red.svg');
    content: "";
    display: inline-block;
    height: 12px;
    width: 23px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
.arrow-up-green {
    background-image: url('../img/icons/arrow-up-green.svg');
    content: "";
    display: inline-block;
    height: 12px;
    width: 23px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}
.reserved-icon {
    background-image: url('../img/icons/reserved-icon.svg') !important;
    content: "";
    display: inline-block;
    height: 24px !important;
    width: 21px !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.totalRequestValue {
    font-size: 18px;
}

.spn_superscript .spn_superscript_badge {
    position: relative;
    top: -9px;
    right: 8px;
    font-size: 10px;
}

    .spn_superscript .spn_superscript_badge .badge{
        width:25px;
        height:18px !important;
    }

    .bx-minus-circle {
        color: #897300;
        font-size: 1.45rem !important;
    }

.select2-selection__arrow b {
    border: 1px solid #888 !important;
    margin-top: -0.28em !important;
    top: 44% !important;
    width: 0.42em !important;
    height: 0.42em !important;
    border: 1px solid;
    border-top: 0 !important;
    border-left: 0 !important;
    transform: rotate(45deg) !important;
    /*border-color: #888 !important;
    border-style: none !important;
    border-width: 0px !important;*/
}
.select2-search--inline {
    display: contents; /*this will make the container disappear, making the child the one who sets the width of the element*/
}

.select2-search__field:placeholder-shown {
    width: 100% !important; /*makes the placeholder to be 100% of the width while there are no options selected*/
}

.ApprovalRequestTypeToolbar {
    position: absolute;
    top: 0;
    left: 186px;
}
    .ApprovalRequestTypeToolbar .requestTypes{
        width: 60px;
    }
        .ApprovalRequestTypeToolbar .requestTypes .select2-selection {
            height: 35px;
            background: #f7f7f7;
        }
.field-validation-valid{
    color: red;
}
.form-check-success .form-check-input:checked, .form-check-success .form-check-input[type=checkbox]:indeterminate {
    background-color: #71dd37;
    border-color: #71dd37;
    box-shadow: 0 2px 4px 0 rgba(113,221,55,.4);
}
        

.ShowHideCols{
    position: absolute;
    top: 0;
    left: 252px;
}
.RefreshButtonDiv{
    position:absolute;
    top:7px;
    left:306px;
}
.ClearButtonDiv {
    position: absolute;
    top: 7px;
    left: 346px;
}
.FilteredMessageDiv {
    position: absolute;
    top: 11px;
    left: 450px;
}

#ShowHideCol_Names{
    height: 200px;
    width: 239px;
    overflow: scroll;
}
.showhideColumnBtnGroup {
    border: 1px solid #ccc;
    border-right: 1px solid #ccc !important;
    border-left: 1px solid #ccc !important;
    padding: 4px;
    height: 2.2rem;
    background: #f7f7f7;
    border-radius: 0.2rem;
}

.approverWorkflowUpdateTable {
    width: 50%;
    margin-left: 124px;
}
.notiflix-confirm-content{
    border-radius: 5px !important;
}
.nx-confirm-button-ok {
    background-color: #0fa82b;
}

#VersionedWorkflow{
    height: 80vh;
    overflow: scroll;
}

.modal-header {
    border-bottom: 2px solid #d9dee3;
}
.jquery-comments .profile-picture{
    width: 2.6rem;
}
#ModalAskforMoreInformation .modal-body{
    padding-bottom: 0px;
}

.modal-header {
    /*border: 2px solid #19e63c;*/
    border-bottom: none;
}
.modal-body {
   /* border-left: 2px solid #19e63c;
    border-right: 2px solid #19e63c;*/
}
.modal-footer {
    /*border-left: 2px solid #19e63c;
    border-right: 2px solid #19e63c;
    border-bottom: 2px solid #19e63c;*/
}
#ModalAskforMoreInformation .modal-body {
    border-bottom: 2px solid #f8b39e;
    border-bottom-left-radius: calc(0.5rem - 0px);
    border-bottom-right-radius: calc(0.5rem - 0px);
}


#RefreshApproverWorkflowList .bx-refresh {
    font-size: 1.45rem;
    line-height: 1.15;

}

.offcanvas-header {
    border-bottom: 2px solid #d9dee3;
}

#NotiflixNotifyWrap{
    width: 320px !important;
}
.notiflix-notify {
    font-size: 18px !important;
}

#NotificationList{
    height: 72vh;
    overflow: scroll;
}
.disabled-link {
    pointer-events: none;
}



.dropdown-list-image {
    position: relative;
    height: 2.5rem;
    width: 2.5rem;
}

    .dropdown-list-image img {
        height: 2.5rem;
        width: 2.5rem;
    }

.btn-light {
    color: #2cdd9b;
    background-color: #e5f7f0;
    border-color: #d8f7eb;
}

#RecentNotificationList, #EarlierNotificationList{
    height: 35vh;
    overflow: scroll;
}

.showhideColumnBtnGroup::after{
    display: none;
}

.reOrder-Col {
    cursor: move;
}

#SSJustification_Accord_Header .accordion-button::after {
    margin-left: 35px;
}

.ssjustificationaccordion{
    box-shadow:none !important;
}
    .ssjustificationaccordion .accordion-body,
    .ssjustificationaccordion button {
        padding: 0 !important;
    }


#Information_Toast .modal-content {
    color: #ffffff !important;
    background-color: #13c232;
}
    #Information_Toast .modal-content h5 {
        color: #ffffff !important;
    }
#SystemNotificationBody li{
    margin-top: 15px;
}

.dataTables_wrapper .ActionItemsForm {
    position: absolute;
    top: 0px;
    right: 450px;
}

.split {
    display: flex;
    flex-direction: row;
}

.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
}

    .gutter.gutter-horizontal {
        background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
        cursor: col-resize;
    }

#GridViewTable_filter {
    right: 140px;
}

    #GridViewTable_filter .form-control {
        width: 250px;
    }

#GridViewTable {
    table-layout: fixed;
    width: 100%;
    white-space: nowrap;
}

#TreeGridViewTable {
    table-layout: fixed;
    width: 100%;
}

.jstree-default .jstree-clicked {
    border: 0;
    background: #E1E4E7 !important;
    box-shadow: none;
}

/* Enlarge the expand/collapse (open/close) arrow while keeping the original theme look */
.jstree-default .jstree-ocl {
    transform: scale(1.5);
    transform-origin: center;
}

.vakata-context, .vakata-context ul {
    padding: .1rem 0;
    min-width: 150px;
    font-size: 0.8rem;
    background: #ffffff;
    box-shadow: 0px 0px 50px 0px rgba(82, 63, 105, 0.15);
    border: 0;
    border-radius: .475rem;
}

    .vakata-context li, .vakata-context ul li {
        padding: 0;
        border: 0;
    }

        .vakata-context li > a {
            display: block;
            padding: 0 1em 0 1em;
            text-decoration: none;
            width: auto;
            color: #000;
            white-space: nowrap;
            line-height: 2.4em;
            text-shadow: 1px 1px 0 #fff;
            border-radius: 1px;
        }

        .vakata-context .vakata-context-hover > a, .vakata-context li a:hover, .vakata-context ul .vakata-context-hover > a, .vakata-context ul li a:hover {
            margin: 0;
            background-color: #FFFFFF !important;
            color: var(--bs-primary);
            box-shadow: none !important;
        }

        .vakata-context li > a:hover {
            position: relative;
            background-color: #e8eff7;
            box-shadow: 0 0 2px #0a6aa1;
        }

    .vakata-context .vakata-context-hover > a {
        position: relative;
        background-color: #e8eff7;
        box-shadow: 0 0 2px #0a6aa1;
    }

    .vakata-context li > a .vakata-contextmenu-sep {
        display: none !important;
        width: 1px;
        height: 2.4em;
        background: white;
        margin: 0 .5em 0 0;
        border-left: 1px solid #e2e3e3;
    }

.ui-dialog {
    background-color: white !important;
    border-radius: 8px !important;
    z-index: 99999 !important;
    width: 400px !important;
}

.ui-widget-header {
    border: none;
    background: none !important;
    color: #ffffff;
    font-weight: bold;
}


.ui-dialog-title {
    color: grey !important;
    width: 100% !important;
}

.ui-dialog-buttonset .btn {
    padding: 8px 16px;
    border-radius: 4px;
}

.ui-dialog-buttonset .btn-danger {
    background-color: #DC3545 !important;
    color: white !important;
}

.ui-dialog-buttonset .btn-primary {
    background-color: #19e63c !important;
    border-color: #19e63c !important;
    color: white !important;
}

.tabulator {
    background-color: transparent !important;
    font-family: var(--bs-body-font-family) !important;
    font-size: var(--bs-body-font-size) !important;
    font-weight: var(--bs-body-font-weight) !important;
    border: 1px solid #eceef1 !important;
}

.tabulator-headers, .tabulator-table {
    color: #566a7f !important;
}

.tabulator .tabulator-header .tabulator-col,
.tabulator .tabulator-footer {
    background-color: #f1f1f1 !important;
}

    .tabulator .tabulator-footer .tabulator-page.active {
        color: #fff !important;
        background-color: #19e63c !important;
    }

    .tabulator .tabulator-footer .tabulator-page {
        border: 1px solid #dfdfdf;
        color: #788899 !important;
    }

    .tabulator .tabulator-footer .tabulator-paginator,
    .tabulator .tabulator-footer .tabulator-paginator .tabulator-page-size {
        color: #788899 !important;
    }

.tabulator-row:hover {
    background-color: #f1f1f1 !important;
}

.tabulator .tabulator-alert {
    background: rgb(206 206 213 / 28%) !important;
}

    .tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg {
        border: 1px solid #e7e7e7 !important;
        color: #19e63c !important;
    }

.tabulator-row .tabulator-cell,
.tabulator-header .tabulator-col {
    border-right: 1px solid #dfdfdf !important;
}

.tabulator-row, .tabulator .tabulator-header {
    border-bottom: 1px solid #dfdfdf !important;
}

.tabulator .tabulator-footer {
    border-top: 1px solid #dfdfdf !important;
}
.tabulator .tabulator-header {
    font-size: var(--bs-nav-link-font-size) !important;
    font-weight: var(--bs-nav-link-font-weight) !important;
}

.nx-confirm-button-ok {
    background: #19e63c !important;
}

.notiflix-confirm-head > h5 {
    color: #19e63c !important;
}
.tabulator .tabulator-header {
    font-size: 1.2em;
}

/* Style table rows */
.tabulator .tabulator-row {
    font-size: 1em;
}

/* Style individual cells */
.tabulator .tabulator-cell {
    padding: 10px;
}

/* Action column cells clip their contents by default, which cuts off the
   row action dropdown-menu as soon as it opens. Let it escape the cell. */
.tabulator-row .tabulator-cell:has(> .action) {
    overflow: visible;
}

.tabulator-row .tabulator-cell .action .dropdown-menu {
    z-index: 1060;
}

.updatemaskrow .form-check-input,
.addmaskrow .form-check-input {
    height: 2rem !important;
}

.PreviewBtnContainer {
    position: fixed;
    z-index: 999;
    right: -33px;
    top: 0px;
    color: #8636d7;
    display: flex;
    flex-direction: column;
}

#PreviewBtn {
    position: absolute;
    top: 180px;
    left: 0;
    z-index: -1;
    display: block;
    width: 42px;
    height: 42px;
    border-top-left-radius: 15%;
    border-bottom-left-radius: 15%;
    background: #19e63c;
    color: #fff !important;
    text-align: center;
    font-size: 18px !important;
    line-height: 42px;
    opacity: 1;
    -webkit-transition: all .1s linear .2s;
    -o-transition: all .1s linear .2s;
    transition: all .1s linear .2s;
    -webkit-transform: translateX(-62px);
    -ms-transform: translateX(-62px);
    transform: translateX(-62px);
}

.form-check-input:checked, .form-check-input[type=checkbox]:indeterminate {
    background-color: #19e63c !important;
    border-color: #19e63c !important;
    box-shadow: 0 2px 4px 0 rgba(255, 97, 85, 0.4);
}


.split #AssetTagTreeView,
.split #ClassifiedPlantTreeView {
    height: calc(100vh - 360px);
    overflow-y: auto;
}

.split #split-1 {
    overflow-y: auto;
    overflow-x: hidden;
}

.split #TagTreeView {
    height: calc(100vh - 390px);
    overflow-y: auto;
}

#TagDetailForm .accordion,
.offcanvas-body .accordion{
    border: 1px solid #d9d9d9;
}

.showhideColumnBtnGroup-sm {
    padding: 1px !important;
    height: 28px;
}

#ExcelLoadModal .modal-footer{
    display:block !important;
}

.ai-btn {
  position: absolute;
  bottom: 64px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fmg-navy, #0A1B3D);
  background: var(--fmg-surface, #fff);
  border: none;
  border-radius: var(--fmg-radius-pill, 50rem);
  cursor: pointer;
  overflow: visible;      /* needed for pseudo-elements */
  z-index: 1;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--fmg-shadow, 0 2px 12px rgba(10,27,61,0.10));
}

.ai-btn .ai-icon {
  display: inline-flex;
  color: var(--fmg-green, #19E63C);
}

/* Thick glowing border pseudo-element */
.ai-btn::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: inherit;
  padding: 3px;         /* border thickness */
  background: linear-gradient(270deg, var(--fmg-green, #19E63C), var(--fmg-navy, #0A1B3D), var(--fmg-green, #19E63C));
  background-size: 400% 400%;
  z-index: -1;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: glowGradient 3s linear infinite;
}

/* Hover effect */
.ai-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

/* Active press effect */
.ai-btn:active {
  transform: translateY(1px) scale(0.98);
}

/* Disabled / in-flight state */
.ai-btn:disabled,
.ai-btn.is-loading {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.ai-btn:disabled::before,
.ai-btn.is-loading::before {
  animation-play-state: paused;
}

/* Inline placement inside the PDF viewer's bottom toolbar, instead of floating over the canvas */
.ai-btn--toolbar {
  position: static;
  bottom: auto;
  right: auto;
  padding: 6px 14px;
  font-size: 13px;
  /* Bake in .ai-btn:hover's transform as the resting state -- .ai-btn:hover still wins by
     specificity when actually hovered, but now to an identical value, so nothing visibly
     changes and it no longer disturbs the toolbar row it sits in. */
  transform: translateY(-2px) scale(1.03);
}

/* Lines up the relocated Analyse/Resend button, the "Analysis complete" badge, and the
   "View analysis" link on one row -- scoped under .toolbar (the PDF viewer's own footer class,
   _PdfViewer.cshtml) so this doesn't affect Bootstrap's .float-end anywhere else in the app. */
.toolbar .float-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Gradient animation */
@keyframes glowGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* AI status badge (processing / done / error pill shown next to the PDF toolbar) */
.ai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: var(--fmg-radius-pill, 50rem);
    font-size: 12px;
    font-weight: 600;
}

.ai-status-badge--processing {
    color: var(--fmg-navy, #0A1B3D);
    background: rgba(10, 27, 61, 0.08);
}

.ai-status-badge--done {
    color: var(--fmg-green-active, #0FA82B);
    background: var(--fmg-green-soft, rgba(25, 230, 60, 0.12));
}

.ai-status-badge--error {
    color: #b02a37;
    background: rgba(220, 53, 69, 0.10);
}

.ai-status-badge--linked {
    color: var(--fmg-green-active, #0FA82B);
    background: var(--fmg-green-soft, rgba(25, 230, 60, 0.12));
}

.ai-status-badge--new {
    color: var(--fmg-navy, #0A1B3D);
    background: rgba(10, 27, 61, 0.08);
}

.ai-status-badge--disregarded {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.12);
}

/* ===========================================================================
   Quick Navigation FAB — fixed bottom-right icon (internal users only, see
   _Layout.cshtml). Always fully visible, no peek/slide — just a static icon
   pinned to the corner. Click toggles .quick-nav--open (see ERDB.js), which
   reveals the link menu (stacked ABOVE the icon, since the icon anchors the
   bottom-right corner) and swaps the icon for a close ("x") glyph so the
   same button closes the menu again.
   The menu is positioned absolutely (not a flex sibling) so it never
   inflates .quick-nav's own box while closed — otherwise the (invisible but
   still laid-out) menu area would extend the hover hit-zone far above the
   icon. With absolute positioning, .quick-nav's box is just the icon
   itself.
   =========================================================================== */
.quick-nav {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
}

.quick-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 2px 6px rgba(10,27,61,0.35));
    transition: filter 0.2s ease;
}

.quick-nav:hover .quick-nav-toggle,
.quick-nav.quick-nav--open .quick-nav-toggle {
    filter: drop-shadow(0 4px 10px rgba(10,27,61,0.45));
}

.quick-nav-toggle-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.quick-nav-close-icon {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: var(--fmg-navy, #0A1B3D);
}

/* Icon swap — plain compass at rest/hover, cross once the menu is open. */
.quick-nav.quick-nav--open .quick-nav-toggle-icon {
    display: none;
}

.quick-nav.quick-nav--open .quick-nav-close-icon {
    display: inline-flex;
}

.quick-nav-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px); /* stacked above the icon, not below/beside it */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;

    /* Hidden until opened by a click — hover alone only reveals the icon. */
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.quick-nav.quick-nav--open .quick-nav-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quick-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--fmg-navy, #0A1B3D);
    background: var(--fmg-surface, #fff);
    border: 1px solid var(--fmg-border, #E3E8EE);
    border-radius: var(--fmg-radius-pill, 50rem);
    box-shadow: var(--fmg-shadow-sm, 0 1px 4px rgba(10,27,61,0.08));
    text-decoration: none;
}

.quick-nav-link i {
    font-size: 16px;
    color: var(--fmg-green, #19E63C);
}

.quick-nav-link:hover {
    color: var(--fmg-navy, #0A1B3D);
    background: var(--fmg-green-soft, rgba(25,230,60,0.12));
    border-color: var(--fmg-green-dim, rgba(25,230,60,0.30));
}

@media (max-width: 575.98px) {
    .quick-nav {
        right: 16px;
        bottom: 16px;
    }

    .quick-nav-link span {
        display: none; /* icon-only chips on very small screens */
    }
}

/* ---------------------------------------------------------------------- */
/* Document Review offcanvas (AI-extracted tag review + drawing preview)  */
/* ---------------------------------------------------------------------- */
.doc-review-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.75rem;
}

.doc-review-main {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.doc-review-panel--top {
    height: 55%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.doc-review-panel--bottom {
    flex: 1 1 0%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.doc-review-table {
    flex: 1 1 0%;
    min-height: 0;
    overflow: auto;
}

#DocumentReviewTable .tabulator-col-group {
    background-color: rgba(10, 27, 61, 0.05) !important;
}

.doc-review-splitter {
    height: 6px;
    cursor: row-resize;
    background: #dee2e6;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fmg-radius-pill, 50rem);
    transition: background 0.15s;
}

.doc-review-splitter:hover,
.doc-review-splitter:active {
    background: var(--fmg-green-soft, rgba(25, 230, 60, 0.25));
}

.doc-review-splitter i {
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
}

.doc-review-preview {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    cursor: grab;
    user-select: none;
}

.doc-review-preview-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--fmg-radius-pill, 50rem);
    box-shadow: var(--fmg-shadow, 0 2px 12px rgba(10, 27, 61, 0.10));
}

.doc-review-action-group {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.doc-review-action-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 4px;
    border-radius: var(--fmg-radius-pill, 50rem);
    font-size: 12px;
    padding: 3px 10px;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* Mask Candidates modal (ranked candidate cards)                         */
/* ---------------------------------------------------------------------- */
.mask-candidate-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mask-candidate-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 16px;
    color: #788899;
    text-align: center;
}

.mask-candidate-empty i {
    font-size: 32px;
    color: #c3cad3;
}

.mask-candidate-card {
    border: 1px solid #eceef1;
    border-left: 4px solid #dfe3e8;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

.mask-candidate-card--best {
    border-left-color: var(--fmg-green-active, #0FA82B);
    background: var(--fmg-green-soft, rgba(25, 230, 60, 0.06));
}

.mask-candidate-card--possible {
    border-left-color: #e6a339;
}

.mask-candidate-card--low {
    border-left-color: #c3cad3;
}

.mask-candidate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.mask-candidate-title {
    font-weight: 700;
    color: var(--fmg-navy, #0A1B3D);
    font-size: 14px;
}

.mask-candidate-formula {
    display: inline-block;
    margin-top: 2px;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 11px;
    color: #566a7f;
    background: #f1f1f1;
    border-radius: 4px;
    padding: 1px 6px;
}

.confidence-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--fmg-radius-pill, 50rem);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.confidence-badge--best {
    color: var(--fmg-green-active, #0FA82B);
    background: var(--fmg-green-soft, rgba(25, 230, 60, 0.14));
}

.confidence-badge--possible {
    color: #92620a;
    background: rgba(230, 163, 57, 0.16);
}

.confidence-badge--low {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.12);
}

.mask-candidate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.attr-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid #eceef1;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
}

.attr-chip-label {
    color: #96a2b0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.attr-chip-value {
    color: #364150;
    font-weight: 600;
}

.mask-candidate-missing-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #92620a;
    background: rgba(230, 163, 57, 0.12);
}

.mask-candidate-validation-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #9a2b2b;
    background: rgba(217, 63, 63, 0.1);
}

.mask-candidate-missing-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mask-candidate-missing-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #566a7f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mask-candidate-missing-label input,
.mask-candidate-missing-label select {
    text-transform: none;
    letter-spacing: normal;
    /*min-width: 160px;*/
}

.mask-candidate-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/*AI Loader indicator*/
/* Full-page or container overlay */
.ai-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.4); /* semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* Loader box holding text */
.ai-loader-box {
    position: relative;
    padding: 20px 40px;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 0 20px var(--fmg-green-dim, rgba(25, 230, 60, 0.30));
}

/* Text */
.ai-loader-text {
    font-weight: 700;
    font-size: 16px;
    color: var(--fmg-navy, #0A1B3D);
    text-align: center;
}

/* Attachment uploader (AssetTag / EquipmentTag / ClassifiedPlant Attachment tab) */
.au-dropzone {
    border: 2px dashed #c5ccd6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.au-dropzone:hover {
    border-color: #9aa4b2;
    background: #fafbfc;
}

.au-dropzone.au-dragover {
    border-color: #d9534f;
    background: #fff5f5;
    color: #d9534f;
}

.au-browse {
    color: #d9534f;
    text-decoration: underline;
}

.au-pending-list:empty {
    margin-top: 0 !important;
}

.au-pending-card {
    position: relative;
    border: 1px solid #e7ebef;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    height: 100%;
}

.au-pending-thumb {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
}

.au-pending-thumb-pdf {
    width: 100%;
    height: 70px;
    border: 0;
    border-radius: 4px;
    margin-bottom: 4px;
}

.au-pending-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.au-pending-name {
    font-size: 0.8rem;
}

.au-pending-size {
    font-size: 0.72rem;
}

.au-file-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(217, 83, 79, 0.9);
    color: #fff;
    cursor: pointer;
}

.au-saved-list:empty::before {
    content: "No attachments saved yet.";
    display: block;
    color: #9aa4b2;
    font-size: 0.85rem;
    padding: 8px 0;
}

.au-saved-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e7ebef;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.au-saved-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 auto;
}

.au-saved-thumb-pdf {
    width: 90px;
    height: 70px;
    border: 0;
    border-radius: 4px;
    flex: 0 0 auto;
}

.au-saved-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6b7280;
    flex: 0 0 auto;
}

.au-saved-meta {
    flex: 1 1 auto;
    min-width: 0;
}

.au-saved-name {
    font-weight: 600;
}

.au-saved-actions {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}
