
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Semibold-Italic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Thin-Italic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Regular-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rouble';
  src: url('../fonts/rouble.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima nova';
  src: url('../fonts/Proxima-Nova-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
        /* Стили для дерева */
        .tree {
            font-size: 13px;
            line-height: 24px;
            margin: 20px;
            margin-left: 0;
        }
        .tree > ul:first-child {       
            padding-left: 0;
        }
        .tree ul {
            list-style-type: none;            
            padding-left: 25px;
        }
        #orgStructure{          
            padding-left: 0;
        }
        .tree > ul:first-child li{       
            padding-left: 0;
        }
        .tree li {
            position: relative;
            padding-left: 15px;
            margin: 3px 0;
        }
        .toggle {    
            cursor: pointer;
    margin-right: 8px;
    user-select: none;
    font-weight: 900;
    width: 16px;
    height: 16px;
    display: inline-block;
    text-align: center;
    background-color: #F2ECEC;
    border-radius: 16px;
    font-size: 14px;
    line-height: 14px;
        }
        .person {
            display: inline-block;
            padding: 2px 5px;
            border-radius: 12px;
            cursor: pointer;
            transition:all .3s;
            margin-bottom: 16px;
        }
        .person div{
            padding: 3px 15px;
            border-radius: 12px;
            border:1px solid #77A14C;
            cursor: pointer;
            transition:all .3s;
            display: inline-block;
        }
        .person:hover div{
            background-color: #77A14C;
        }


        /* Стили для попапа */
        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .popup-content {
            background: white;
            padding: 25px;
            border-radius: 8px;
            width: 500px;
            max-width: 90%;
            max-height: 80vh;
           /* overflow-y: auto;*/
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);

    position: relative;
    left: calc(50% - 250px);
    top: 70px;
        }
        .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }

        .close-popup {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #7f8c8d;
        }
        .popup-description {
            margin-bottom: 20px;
            line-height: 1.5;
        }
        .popup-responsibilities {
            margin-top: 15px;
        }
        .popup-responsibilities ul {
            padding-left: 20px;
        }
        .popup-responsibilities li {
            margin-bottom: 8px;
            line-height: 1.4;
        }
    /* Стили для раздела сравнения */

.positions-list {
    display: flex;
    grid-template-columns: auto auto;
    /* grid-gap: 0 32px; */
    margin-top: 16px;
    flex-wrap: wrap;
        gap: 0 36px;
}

.position-tag {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;

    border: 1px solid #77A14C;
    border-radius: 32px;
    padding: 0 12px;
    margin-bottom: 16px;
    white-space: nowrap;
    transition: all .3s;
    font-size: 13px;
}

.position-tag:hover {
    background: var(--prime-color);
    color:white;
}

.position-tag.active {
    background: var(--prime-color);
    color: white;
}

.position-tag .remove-tag {
    display: none;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    position: absolute;
    right: -22px;
    background: #F2ECEC;
    width: 16px;
    height: 16px;
    color: black;
    line-height: 16px;
    padding-left: 5px;
    font-weight: 900;
    border-radius: 16px;
}

.position-tag.active .remove-tag {
    display: block;
}

/* Стили для попапа сравнения */
#positionCheckboxes {
    list-style: none;
    padding: 0;
    max-height: 50vh;
    overflow-y: auto;
}

#positionCheckboxes li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.1em;
    padding: 2px 12px;
    border-radius:3px;
    background-color:#FCFCFC;
    border:1px solid #919294;
    min-height:28px;
}

#positionCheckboxes input {
    margin-right: 10px;
}

.popup-footer {
    margin-top: 20px;
    text-align: right;
}

.btn {
    padding: 8px 20px;
    background: #4a6bdf;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.position-tag.added {
    background-color: var(--prime-color);
    border: 1px solid #B5CDA1;
    position:relative;
    padding-left: 30px;
    color:white;
}
.position-tag.added:before {
    content:'';
    width: 12px;
    height: 12px;
    position:absolute;
    left:12px;
    top:8px;
    display: block;
    background-image:url(../images/icn_added.svg);
    background-repeat:no-repeat;
    background-size:12px;
}

.your_audit__wrapper .positionname{
    border-radius: 32px;
    padding: 3px 12px;
    margin-bottom: 16px;
    /*white-space: nowrap;*/

}
.person.red {
    background-color: none;
    border-left:  none;
    padding-left: 10px;
}

.person.yellow {
    background-color: none;
    border-left:  none;
    padding-left: 10px;
}

.person.green {

    background-color: none;
    border-left:  none;
    padding-left: 10px;
}


.person .positionname{
    background-repeat: no-repeat;
    background-size: 12px;
    padding-left: 30px;
    background-position: 12px center;
    cursor: default;
}


.person.red .positionname{
    background-color: #FFDFDF;
    background-image:url(../images/icn_error.svg);
}

.person.yellow .positionname{
    background-color: #FFFFCF;
    background-image:url(../images/icn_attention.svg);
}

.person.green .positionname{
    background-color: #F4F9F6;
    background-image:url(../images/icn_ok.svg);
}


.selection-info {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}
/* Стили для попапа рекомендаций */
#recommendationsPopup .popup-content {
    max-width: 600px;
    padding: 30px;
}

.recommendations-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.recommendation-section {
    margin-bottom: 25px;
}

.recommendation-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.no-recommendations {
    color: #7f8c8d;
    font-style: italic;
    padding: 10px 0;
}

.recommendations-list {
    padding-left: 5px;
    margin-top: 5px;
}

.recommendations-list > li {
    margin-bottom: 6px;
    padding: 0;
    background: none;
    border-radius: 0px;
}
.recommendations-list.tasks-list .position-name {
    border: 1px solid #77A14C;
}
.position-name {
    font-weight: 500;
    color: #000000;
    font-size: 13px;
    border: 1px solid #DEDEDE;
    padding: 3px 12px;
    border-radius: 12px;
}

.tasks-count {
    font-size: 12px;
    color: #7f8c8d;
    margin-left: 10px;
    display: block;
}

.tasks-sublist {
    padding-left: 20px;
    margin-top: 2px;
    list-style-type: disc;
}

.tasks-sublist > li {

    margin-bottom: 4px;
    color: #000000;
    font-size: 12px;
    line-height: 1.2;
}

.popup-footer {    
    text-align: right;
    padding-top: 0;
    display: flex;
    border-top: 1px solid #eee;
    justify-content: space-between;
}

.btn-close {
    background: #2980b9;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-close:hover {
    background: #3498db;
}





/* Стили для попапа KPI */
#kpiPopup .popup-content {
    max-width: 500px;
    padding: 25px;
}

.kpi-content {
    max-height: 60vh;
    overflow-y: auto;
    margin: 20px 0;
}

.kpi-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kpi-list li {
    margin-bottom: 6px;
}

.kpi-link {
    display: inline-block;
    background-color: none;
    text-decoration: none;
    transition: all 0.3s;

    font-weight: 500;
    color: #000000;
    font-size: 13px;
    border: 1px solid #DEDEDE;
    padding: 3px 12px;
    border-radius: 12px;
    line-height: 16px;
}
.kpi-link:hover {
    background-color: #78A14D;
    color: #ffffff;
}

.popup-footer {
    text-align: right;
    /*padding-top: 15px;*/
    border-top: 1px solid #eee;
}

.btn-close {
    background: #2980b9;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-close:hover {
    background: #3498db;
}


.directory .person span:not(.toggle){
    border:1px solid #77A14C;
    border-radius:32px;
    padding: 3px 12px;
    margin-bottom: 16px;
    white-space:nowrap;
    transition:all .3s;
}

.directory .person span:not(.toggle):hover{
    background-color:#77A14C;
    color:white;
}
.directory__wrapper{
    display: flex;
    align-items:flex-start;
}
.popup-title {
  font-family: 'Proxima nova', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin: 0;
}
#popupDescriptionPosition{
    font-size: 12px;
    line-height: 1.4em;
    color:#000000;
}
.popup-responsibilities h3, .popup-body h3, .recommendations-content h3{
    font-size: 13px;
    color:#585858;
}
.popup-body h3{
    margin-bottom: 0;
}
.popup-responsibilities li {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.4;
    list-style:disc;
}
    @media (min-width: 1100px) {   

        .directory__container .popup-overlay {
    display: none;
    position: sticky;
    top: 20px;
    left: 0;
    width: 439px;
    height: auto;
    background: none;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
        .directory__container .popup-content {
    background: white;
    padding: 25px;
    border-radius: 5px;
    width: 500px;
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #DFF2EC;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    position: static;
    left: inherit;
    top: inherit;
}

     }
