﻿
.legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding-top: 10px;
}

.legend-item {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
}

    .legend-item span {
        display: block;
    }

@media (max-width: 768px) {
    .legend {
        grid-template-columns: 1fr;
    }
}


.table-main {
    font-family: Montserrat;
    width: 100%;
    color: #243141;
}

    .table-main tr {
        height: 40px;
    }

.table-main-header {
    font-size: 18px;
}

    .table-main-header th {
        padding-bottom: 8px;
        font-size: 14px;
    }

.button_edit_button {
    padding: 10px;
}

    .button_edit_button:hover {
        background: rgba(0, 0, 0, 0.075);
        cursor: pointer;
    }

.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}

select:required:invalid {
    color: gray;
}

option[value=""][disabled] {
    display: none;
}

option {
    color: black;
}

.successButton {
    background-color: #243141;
    font-family: Montserrat;
    border-radius: 0px;
}

.secondaryButton {
    border: 1px solid #243141;
    color: #243141;
    font-family: Montserrat;
    /*font-weight: 600;*/
    border-radius: 0px;
}

.buttonSearchManagement {
    border-left: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-color: #ced4da;
    height: inherit;
    padding: 0.5rem 0.75rem;
}

.subTabObjectivesReview:hover {
    border-bottom: 5px solid #917C3F !important;
    font-weight: 600 !important;
    color: #917C3F !important;
    cursor: pointer !important;
}

    .subTabObjectivesReview:hover span {
        color: #917C3F !important;
    }

.input-group-addon .eyePassword {
    margin-left: -30px;
    cursor: pointer;
    z-index: 200;
    position: absolute;
    font-size: large;
    color: grey;
    margin-top: 8px;
}

.textPercentageDemonstrate {
    color: #917C3F;
    font-weight: 600;
}

.textPercentageDontDemonstrate {
    color: #243141;
    font-weight: 600;
}

.tabActivate {
    border-bottom: 5px solid #243141 !important;
    font-weight: 600 !important;
    color: #243141 !important;
}

    .tabActivate span {
        color: #243141 !important;
    }

.tabCompetencyModel:hover {
    border-bottom: 5px solid #243141 !important;
    font-weight: 600 !important;
}

    .tabCompetencyModel:hover span {
        color: #243141 !important;
    }

.subTabActivate {
    border-bottom: 5px solid #917C3F !important;
    font-weight: 600 !important;
}

    .subTabActivate span {
        color: #917C3F !important;
    }

.subTabCompetencyModel:hover {
    border-bottom: 5px solid #917C3F !important;
    font-weight: 600 !important;
    color: #917C3F !important;
}

    .subTabCompetencyModel:hover span {
        color: #917C3F !important;
    }


/* My Profile, profile picture hover START */

#image-container {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    /*margin: 0 55px;*/
    --bs-gutter-x: 0;
}

#image-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

    #image-overlay i {
        color: white;
        font-size: 30px;
    }

#image-container:hover #image-overlay {
    opacity: 1;
    cursor: pointer;
}

/* My Profile END */


.btn-link {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    color: #0000EE;
    padding: 0;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
}


/*Accordion changes for FAQs page*/

.accordion-button:not(.collapsed) {
    font-weight: 600 !important;
    background-color: #f8f9fa !important;
}

.accordion-button:focus {
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125) !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-item:last-of-type {
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

.accordion-item:first-of-type {
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.progress-bar {
    width: 100%;
    height: 35px;
    margin: auto;
}

    .progress-bar::-webkit-progress-bar {
        background-color: #cccccf;
    }

    .progress-bar::-webkit-progress-value {
        background-color: #917C3F;
    }

    /* Firefox */
    .progress-bar::-moz-progress-bar {
        background-color: #917C3F;
    }

.progress-number-left {
    color: #FFF;
    position: relative;
    font-size: 12px;
    left: 10px;
    font-weight: 600;
    margin: auto;
    width: 0px;
}

.progress-number-right {
    color: dimgrey;
    position: relative;
    font-size: 12px;
    right: 15px;
    font-weight: 600;
    margin: auto;
    width: 0px;
}


@property --p {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.pie {
    --p: 20;
    --b: 22px;
    --c: darkred;
    --w: 30%;
    width: var(--w);
    aspect-ratio: 1;
    position: relative;
    display: inline-grid;
    margin: 5px;
    place-content: center;
    font-weight: bold;
    color: #917C3F;
    font-size: 2rem;
}

    .pie:before,
    .pie:after {
        content: "";
        position: absolute;
        border-radius: 50%;
    }

    .pie:before {
        inset: 0;
        background: radial-gradient(farthest-side,var(--c) 98%,#0000) top/var(--b) var(--b) no-repeat, conic-gradient(var(--c) calc(var(--p)*1%),#0000 0);
        -webkit-mask: radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
        mask: radial-gradient(farthest-side,#0000 calc(99% - var(--b)),#000 calc(100% - var(--b)));
    }

    .pie:after {
        inset: calc(50% - var(--b)/2);
        background: var(--c);
        transform: rotate(calc(var(--p)*3.6deg)) translateY(calc(50% - var(--w)/2));
    }

.animate {
    animation: p 1s .5s both;
}

.no-round:before {
    background-size: 0 0,auto;
}

.no-round:after {
    content: none;
}

@keyframes p {
    from {
        --p: 0
    }
}

.currentYearEvaluation {
    display: grid;
    width: 30%;
    height: 35vh;
    border-radius: 10px;
    box-shadow: 0px 0px 25px 0px rgba(222,222,222,1);
    max-height: 350px;
}


@media (max-height: 800px) {
    .currentYearEvaluation {
        width: 45% !important;
        height: 45vh !important;
    }

    .pie {
        font-size: 1.5rem !important;
        --b: 20px !important;
    }
}

.evaluationOptionsDropdown a {
    text-decoration: none;
    color: #243141;
    text-align: right;
    display: block;
    width: 220px;
    height: 50px;
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

    .evaluationOptionsDropdown a:hover {
        background-color: #dee2e6 !important;
    }


@media (max-width: 500px) {
    #subTabObjectivesModelMobile {
    display: block !important;
    }

    #subTabObjectivesModel {
        display: none !important;
    }

    #individual-objectives-buttons-div {
        display: block !important;
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
    }

    #team-objectives-buttons-div {
        display: block !important;
        padding-left: calc(var(--bs-gutter-x) * .5) !important;
    }

}


@media only screen and (max-width: 800px) {

    #header-recognition-button {
        height: 61px !important;
    }


    #no-more-tables {
        font-size: 14px !important;
    }

    /* Force table to not be like tables anymore */
    #no-more-tables table,
    #no-more-tables thead,
    #no-more-tables tbody,
    #no-more-tables th,
    #no-more-tables td,
    #no-more-tables tr {
        display: block;
    }

        #no-more-tables td input {
            text-align: right !important;
        
        }

        #no-more-tables td span {
            display: block;
            text-align: right;
        }

    #no-more-tables tbody tr {
        display: contents !important;
    }

        #no-more-tables tbody tr td {
            text-align: center !important;
            width: 100% !important;
            min-height: 35px;
        }

            #no-more-tables tbody tr td:first-child {
                border-top: 2px solid #ccc;
                border-top-left-radius: 0px !important;
            }



        /* Hide table headers (but not display: none;, for accessibility) */
        #no-more-tables thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    #no-more-tables tr {
        border: 1px solid #ccc;
    }

    #no-more-tables td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 35%;
        white-space: normal;
        text-align: left;
    }

        #no-more-tables td:before {
            /* Now like a table header */
            position: absolute;
            /* Top/left values mimic padding */
            top: 6px;
            left: 6px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
            text-align: left;
            font-weight: bold;
        }

        /*
	Label the data
	*/
        #no-more-tables td:before {
            content: attr(data-title);
        }
}

