body {
    margin: 0;
}

.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
    border-bottom: 1px solid #ddd !important;
}

.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
    border: 0px solid #ddd;
}

.loading {
}

.nav-link.active > sb-nav-link-icon {
    filter: brightness(5);
}

.activePath {
    filter: brightness(5);
    color: white;
}

@keyframes borderLeft {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes borderRight {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.form-horizontal > .form-group > * {
    margin: auto;
}

.form-control,
.text-area-form-control,
.select2-container {
    border: 1px solid #6c757d !important; /* Bootstrap's secondary color */
}

.select2-container {
    border-radius: 0.4rem !important; /* Added rounded corners */
}

/*@media (min-width: 768px) {
    .form-horizontal > .form-group > label {
        margin-left: 17%;
    }
}*/

.line {
    border: 1px solid #fff;
    position: absolute;
    right: -42%;
    left: 58%;
    top: 25%;
    transform: translateY(-25%);
}

@media (max-width: 768px) {
    .steps {
        display: none;
    }
}

.btn-large {
    padding: 16px 50px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05rem !important;
}

@media (max-width: 980px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.gray-box {
    height: 100%;
}

.green-text {
    background-color: #eaffd0;
    color: #394c22;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    z-index: 2 !important;
    color: #0056b3 !important;
    text-decoration: none !important;
    background: #e9ecef !important;
    border-color: #dee2e6 !important;
}

a.page-number.paginate_button {
    color: #80b83b !important;
}

.page-number.paginate_button.currentPage {
    background: rgb(128, 184, 59);
    color: white !important;
}

    .page-number.paginate_button.currentPage:hover {
        background: rgb(128, 184, 59) !important;
        color: white !important;
    }

.selectedPlanTick::after {
    width: 20px;
    height: 9px;
    opacity: 1;
    content: "";
    z-index: 1;
    position: absolute;
    background: var(--unnamed-color-80b83b) 0% 0% no-repeat padding-box;
    background: #80B83B 0% 0% no-repeat padding-box;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(100% 0, 0 0, 50% 100%);
}

.draggable tr > td:first-child {
    cursor: move;
}

    .draggable tr > td:first-child::before {
        /*content: "\2637";*/
        content: "";
        background: url("../img/drag_indicator.svg") center no-repeat;
        padding: 0.5rem;
        margin-right: 0.2rem;
        opacity: 0.2;
        cursor: move;
    }

.draggable tr:hover > td:first-child::before {
    opacity: 0.5;
}

/*tr > td:first-child:hover::before {
    opacity: .5;
}*/

/*tr {
    position: relative;
}

    tr::before {
        content: "\2637";
        margin-right: 0.5rem;
        opacity: .2;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 3px;
    }

    tr:hover::before {
        opacity: .5;
    }
*/

.pageSizeList {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    background-color: transparent;
    padding: 4px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.long-text {
    max-width: 15ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.grid-col-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-column-gap: 1rem;
    white-space: nowrap !important;
    width: min-content !important;
}

.ActionButtons {
    display: grid !important;
    grid-column-gap: .4rem !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(2rem,1fr);
    justify-items: center;
}

.MasterColumns {
    display: flex;
    justify-content: start;
    align-content: center;
}

@media screen and (max-width: 700px) {
    .MasterColumns {
        justify-content: start;
        width: 80%
    }

        .MasterColumns > label {
            flex: 0 0 50%;
            word-wrap: break-word;
            margin-left: 15px;
            width: 60%;
        }

        .MasterColumns > input {
            margin-right: 15px;
            flex: 0 0 50%;
        }
}

@media screen and (max-width: 480px) {
    .MasterColumns {
        justify-content: start;
        width: 50%
    }

        .MasterColumns > label {
            flex: 0 0 50%;
            margin-left: 15px;
            word-wrap: break-word;
            width: 50%
        }

        .MasterColumns > input {
            flex: 0 0 20%;
        }
}
/*tr:hover .long-text {
    width: inherit;
    text-overflow: unset;
    white-space: inherit;
}*/

.ui-tooltip {
    background: #2c2c2c !important;
    border-radius: 0.5rem !important;
    color: #f7f7f7 !important;
}
/*.ui-tooltip {
    position: relative !important;
    display: inline-block !important;
    border-bottom: 1px dotted black !important;
}

    .ui-tooltip .ui-tooltiptext {
        visibility: hidden !important;
        width: 120px !important;
        background-color: black !important;
        color: #fff !important;
        text-align: center !important;
        border-radius: 6px !important;
        padding: 5px 0 !important;
        position: absolute !important;
        z-index: 1 !important;
        bottom: 150% !important;
        left: 50% !important;
        margin-left: -60px !important;
    }

        .ui-tooltip .ui-tooltiptext::after {
            content: "" !important;
            position: absolute !important;
            top: 100% !important;
            left: 50% !important;
            margin-left: -5px !important;
            border-width: 5px !important;
            border-style: solid !important;
            border-color: black transparent transparent transparent !important;
        }

    .ui-tooltip:hover .ui-tooltiptext {
        visibility: visible !important;
    }*/
.table-responsive::-webkit-scrollbar {
    width: 1rem;
    height: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #808080;
    border-radius: 5rem;
}

::-webkit-scrollbar {
    width: .8rem;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #808080;
    border-radius: 5rem;
}

#modal-default {
    margin-top: 0 !important;
}

@media (min-width: 768px) {
    .IsActiveBlock {
        margin-left: 3.9rem !important;
    }
}

@media screen and (max-width: 600px) {
    #saveSequence {
        visibility: hidden;
    }
}

body:not(.modal-open) {
    padding-right: 0px !important;
}

.inspection-status-icon {
    width: 82px;
    height: 29px;
}

.btn:hover .inspection-begin-icon {
    /*background: #CACACA;*/
    /*border-radius: 50%;*/
    filter: invert(59%) sepia(91%) saturate(323%) hue-rotate(45deg) brightness(95%) contrast(85%);
}

.inspection-begin-icon {
    position: relative;
    /*padding:4px;*/
}

.svg-icon:hover {
    filter: invert(59%) sepia(91%) saturate(323%) hue-rotate(45deg) brightness(95%) contrast(85%);
}

.table.dataTable thead .sorting_desc {
    background-image: none !important;
}

.inspection-pending {
    position: relative;
}

    .inspection-pending::before {
        position: absolute;
        content: "Pending";
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 85px;
        height: 30px;
        background: #fbebeb;
        border-radius: 5px;
        color: #ce7473;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.inspection-completed {
    position: relative;
}

    .inspection-completed::before {
        position: absolute;
        content: "Completed";
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 85px;
        height: 30px;
        background: #ecf8ea;
        border-radius: 5px;
        color: #74b57b;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.inspection-schedule {
    position: relative;
}

    .inspection-schedule::before {
        position: absolute;
        content: "Scheduled";
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 85px;
        height: 30px;
        background: #ecf8ea;
        border-radius: 5px;
        color: #74b57b;
        display: flex;
        justify-content: center;
        align-items: center;
    }

.filter-btn {
    font-size: 0.7rem;
}

    .filter-btn > span {
        font-size: 0.9rem;
    }

.treeview, .treeview * {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

    .treeview li {
        line-height: 25px;
    }

    .treeview label {
        font-size: 100%;
    }

    .treeview ul {
        margin-right: 25px;
        margin-bottom: 14px;
        list-style-type: none;
        border-left: 1px solid #ccc;
        border-right: 1px solid transparent;
    }

.node-plus, .node-minus, .node-none {
    margin: 0;
    padding-right: 8px;
    font-size: 170%;
    display: inline-block;
    cursor: pointer;
}

.node-none {
    width: 22px;
}

.node-plus::before {
    content: "+";
}

.node-minus::before {
    content: "-";
}

.node-plus:hover {
    color: #26c6da
}

.node-minus:hover {
    color: #e94949
}

.mng-img {
    width: 18px;
    height: 18px;
    margin: 0 4px;
    cursor: pointer
}

.newtreeview > li li {
    border-left: 1px solid #ccc;
    margin-left: 7px;
}

.selectborder {
    border: 1px solid #aaa !important;
}

    .selectborder:active {
        border: 1px solid #aaa !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .selectborder:focus {
        border: 1px solid #aaa !important;
        outline: none !important;
        box-shadow: none !important;
    }

.no-min-height {
    min-height: 0 !important;
}

.treegrid-container {
    display: flex;
    align-items: center;
}

    .treegrid-container > svg {
        width: 20px;
        height: 20px;
        margin-right: 0.5rem;
    }

.document__btns {
    display: flex;
    align-items: center;
}

    .document__btns a {
        flex: 0 0 25%;
    }

span.field-validation-valid.text-danger {
    display: block;
    text-transform: lowercase;
}

    span.field-validation-valid.text-danger::first-letter {
        text-transform: capitalize;
    }

span.text-danger {
    display: block;
    text-transform: lowercase;
}

    span.text-danger::first-letter {
        text-transform: capitalize;
    }

.cursor-pointer {
    cursor: pointer;
}

.dataTables_scrollHeadInner {
    margin: auto;
}

[class*=hint--]:after {
    white-space: normal !important;
    text-align: center !important;
}

.dataTables_wrapper .no-footer {
    overflow: scroll;
}

.cp__datatable-wrapper {
    overflow: scroll !important;
    width: 100% !important;
}

button[class^="hint--"]:focus {
    outline: none !important;
}

@media (max-height: 820px) {
    .ui-tooltip {
        max-width: 65ch !important;
    }
}

/*
    Chips CSS
*/

.chip {
    /* display: grid;
    grid-template-columns: repeat(5, minmax(max-content, 1rem));
    grid-gap: 0.4rem;
    grid-auto-flow: row;
    grid-auto-columns: minmax(max-content, 1rem);*/
    display: flex;
    flex-wrap: wrap;
    height: 3rem;
    overflow: hidden;
}

.chipShowAll {
    height: 100%;
    transition: height .7s ease-in;
}

/*    .chip:hover {
        height: max-content;
        transition: all .5s ease-in;
    }*/
.chip__wrapper {
    display: flex;
    width: max-content;
    margin: .4rem 0.2rem;
    padding: 0.2rem 0.3rem;
    background-color: #80b83b;
    color: #fff;
    border-radius: 0.5rem;
    line-height: 1rem;
    height: max-content
}

.chip__wrapper--SiteAdmin {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    cursor: pointer;
}

.chip__wrapper--red {
    background-color: #aa2a00;
}

.chip__wrapper-item {
    padding: .2rem;
}

    .chip__wrapper-item::after {
        content: "";
        background-color: #5c5c5c;
        -webkit-mask: url("../img/clear.svg") center no-repeat;
        mask: url("../img/clear.svg") center no-repeat;
        background-size: 1.2rem;
        padding: 0.5rem;
        margin-left: 0.4rem;
        opacity: .8;
        cursor: pointer;
    }


span.loadMore {
    color: #80b83b;
}


/*select 2 custom css*/
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #7DB43B !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #FFFFFF;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    color: #fff;
}

.wysiwyg-editor .editor-content[contenteditable='false'] {
    background-color: #e9ecef;
}



/*Sweetalert popup button: left side positive and right side negative*/
.sa-button-container {
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    column-gap: 1rem;
}


/* The switch - the box around the slider */
.radio-slider_switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 2.5em;
    height: 1.5em;
}

    /* Hide default HTML checkbox */
    .radio-slider_switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.radio-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 1px solid #adb5bd;
    transition: .4s;
    border-radius: 30px;
}

    .radio-slider:before {
        position: absolute;
        content: "";
        height: 1em;
        width: 1em;
        border-radius: 20px;
        left: 0.27em;
        bottom: 0.2em;
        background-color: #adb5bd;
        transition: .4s;
    }

input:checked + .radio-slider {
    background-color: #80b83b;
    border: 1px solid #80b83b;
}

input:focus + .radio-slider {
    box-shadow: 0 0 1px #007bff;
}

input:checked + .radio-slider:before {
    transform: translateX(1em);
    background-color: #fff;
}

.link-clear {
    background: none;
    border: none;
    color: #105780; /* Bootstrap primary blue */
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

    .link-clear:hover {
        text-decoration: underline;
        color: #0a58ca; /* Darker blue on hover */
        border: none;
    }

    .link-clear:focus {
        outline: none; /* Remove outline after click */
    }
