@import url("./style.css");
html {
    --scrollbarBG: rgba(0, 0, 0, 0.76);
    --thumbBG: #4E4E4E;
}

.data-main {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
}

.notify {
    position: absolute;
    right: 6%;
    top: 20%;
    background: #74A42E;
    border-radius: 13px;
    z-index: 1;
    padding: 10px 10px;
    font-size: var(--body-text);
    color: #FFFFFF;
}

.notify>* {
    margin: 0 5px;
    vertical-align: middle;
}

#notifyForm {
    padding: 10px 10px;
}

#notifyForm .form-group {
    margin-bottom: max(18px, 2vh);
}

#notifyForm label {
    text-transform: capitalize;
    font-weight: 600;
}

#notifyForm .form-control {
    border: 3px solid #C4C4C4;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: transparent;
    color: #FFFFFF;
    height: unset;
    margin-top: 1.2vh;
    font-size: var(--body-text);
}

#notifyForm .submit-btn {
    background: #20B6D8;
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    margin-top: 1.2vh;
    color: #FFFFFF;
    font-weight: 600;
}

#notifyForm option {
    background: #F4F4F4;
    color: #000000;
}

#notifyForm .dropdown-menu.show {
    background-color: #F4F4F4;
    padding: 1vh 0vw;
    color: #000000;
    width: 100%;
}

#notifyForm .dropdown-menu.show label {
    text-transform: capitalize;
    font-weight: 500;
    font-size: var(--body-text);
}

.drop-option:hover {
    background-color: var(--primary-color);
}

.sort-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav {
    display: none;
}

.base-nav {
    display: none;
}

.side-nav {
    max-width: max(14.79vw, 150px);
    box-shadow: 3px 0px 3px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin.side-nav {
    justify-content: flex-end;
}

.side-nav .nav-item {
    padding: 0;
}

.map-nav .nav-item a {
    font-family: var(--heading-font-family);
    font-weight: bold;
    background-color: var(--primary-color);
    text-align: center;
    color: #FFFFFF;
    border: 3px solid var(--primary-color);
    padding: 0.75vh;
    margin: 1.1vh 0;
    font-size: var(--link-text);
}

.side-nav ul {
    padding: 0 3.46vw;
    margin: 0;
}

.map-nav .nav-item a.active,
.map-nav .nav-item a:active,
.map-nav .nav-item a:hover {
    background-color: #FFFFFF;
    color: var(--primary-color);
    ;
}

#container {
    max-height: 80vh;
    margin: 0 auto;
    position: relative;
    top: 0;
    flex: 0.7;
}

.highcharts-container {
    top: 1.85vh;
    left: 2px;
}

.highcharts-button.highcharts-contextbutton {
    display: none;
}

.highcharts-point:not([fill="#F1F2F2"]) {
    stroke: #020202;
    stroke-width: 0.04375vw;
    cursor: pointer;
}

.country-title {
    font-family: var(--heading-font-family);
    text-transform: uppercase;
    font-size: var(--h2-font-size);
    text-align: right;
    margin: 0 0 2.5vh;
}

.loading {
    margin-top: 10em;
    text-align: center;
    color: gray;
}

.tippy-box {
    background: rgba(0, 0, 0, 0.66);
    border-radius: 20px;
    min-width: max(23.43vw, 310px);
}

.tippy-content {
    padding: 4vh max(1.56vw, 16px) 1.5vh;
    background: rgba(0, 0, 0, 0.66);
    border-radius: 20px;
}

.popover-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.popover-content .close {
    opacity: 0;
    display: flex;
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 1;
    color: #7D7D7D;
    border-radius: 50%;
    border: 3.3px solid;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
}

.popover-content button span:first-child {
    display: inline-table;
    color: inherit;
    font-size: 30px;
    width: 30px;
    height: 30px;
    text-shadow: none;
}

.pop-scrollable {
    padding: 0px 1.13vw;
    max-height: 41.6vh;
    overflow-y: auto;
}

.admin.pop-scrollable {
    padding: 0vh 6px;
    margin: auto -0.5vw;
}

.pop-scrollable::-webkit-scrollbar {
    width: 12px;
}

.pop-scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

.pop-scrollable.loading {
    min-width: 20vw;
    min-height: 20vh;
}

.pop-scrollable::-webkit-scrollbar-track {
    background: var(--scrollbarBG);
    border-radius: 10px;
}

.pop-scrollable::-webkit-scrollbar-thumb {
    background-color: var(--thumbBG);
    border-radius: 10px;
    height: 76px;
}

.pop-btn {
    font-family: var(--heading-font-family);
    background-color: #007e3b;
    border-radius: 20px;
    font-weight: bold;
    font-size: var(--body-text);
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 2.77vh;
    padding: 1.3vh;
    text-align: center;
}

.pop-btn:focus {
    outline: none;
}

input.pop-search {
    border: 2px solid #C4C4C4;
    box-sizing: border-box;
    border-radius: 20px;
    padding: 1.1vh 1.2vw;
    background-color: transparent;
    height: unset;
    max-width: unset;
    width: 100%;
    margin: auto auto 2.407vh;
    background-image: url(../img/svg/searchIcon.svg);
    background-repeat: no-repeat;
    background-position: 93% 45%;
    background-size: 7%;
    font: 400 var(--body-text) var(--heading-font-family);
    color: #000000;
}

input.pop-search:focus {
    transition: all 0.2s linear;
    background-color: white;
    background-image: none;
}

.pop-img {
    width: 100%;
}

.pop-svg {
    min-width: max(41px, 3.4vw);
    max-width: max(41px, 3.4vw);
    border-radius: 50%;
    height: max(41px, 3.4vw);
}

.pop-box:first-of-type {
    margin-top: 2vh;
}

.pop-box {
    font-family: var(--body-font-family);
    font-size: var(--body-text);
    line-height: 1.167;
    color: #FFFFFF;
    border-bottom: none;
    margin: 0 10px;
    padding: 1.8vh 0.4vw 1vw;
}

.pop-box p {
    text-align: right;
}

.pop-box p:last-of-type {
    font-style: italic;
    margin-top: 1vh;
}

.pop-block {
    flex-grow: 1;
}

.pop-block>div:nth-last-child(2) {
    display: flex;
    margin-left: -3.425vw;
    justify-content: space-between;
    align-items: flex-end;
}

.pop-info {
    display: flex;
    align-items: end;
    padding: 2vh max(1.14vw, 5px) 2vh max(1.14vw, 7.5px);
    font-family: var(--body-font-family);
    line-height: 1.2;
}

.pop-info:first-of-type {
    border-radius: 10px 10px 0px 0px;
}

.pop-box:nth-of-type(2n+1) {
    background-color: #4E4E4E;
}

.pop-info:nth-of-type(2n+1) {
    background-color: #4E4E4E;
}

.pop-info>div {
    margin-left: 1.19vw;
}

.pop-info-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: bold;
    margin-bottom: 0.8vh;
    font-size: var(--body-text);
}

.pop-info-title span:first-of-type {
    font-size: var(--body-text);
    max-width: 120px;
}

.pop-info-title span:last-of-type {
    font-size: var(--link-text);
    min-width: 5.78vw;
    text-align: right;
}

.pop-info-title[data-status="2"] span:last-of-type {
    color: #F48220;
}

.pop-info-title[data-status="3"] span:last-of-type {
    color: #20B6D8;
}

.pop-info-title[data-status="1"] span:last-of-type {
    color: #CAD023;
}

.pop-info-title span:last-of-type>span {
    display: inline-block;
    max-width: 15ch;
    text-overflow: ellipsis;
    /* overflow: hidden; */
    /* white-space: nowrap; */
    vertical-align: bottom;
}

.pop-summary {
    font-size: var(--link-text);
    line-height: 1.15;
}

.pop-summary-location {
    margin-top: 0.8vh;
    font-style: italic;
    font-weight: bold;
    font-size: var(--body-text);
    text-align: right;
}

.edit-btn {
    margin-right: 1.49vw;
}

.edit-btn>img {
    width: 1.77vw;
    min-width: 20px;
}

.pop-info-btn {
    background-color: #20AAB3;
    border-radius: 7px;
    text-align: center;
    text-transform: capitalize;
    padding: 0.67vh;
    width: 100%;
    margin-top: 1.5vh;
}

.pop-info-btn::before {
    content: 'Mark as complete';
    font-size: var(--link-text);
    font-weight: 500;
    font-family: var(--body-font-family);
    color: #FFFFFF;
}

.pop-info-title[data-status="3"]~div>.pop-info-btn,
.pop-info-title[data-status="3"]~div>.edit-btn {
    display: none;
}

.pop-info-title[data-status="1"]~div>.pop-info-btn {
    background-color: #127F3C;
}

.pop-info-title[data-status="1"]~div>.pop-info-btn::before {
    content: 'Take over request';
}

.pop-article {
    font-family: var(--body-font-family);
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 21px;
}

.pop-footer {
    font-family: var(--body-font-family);
    font-style: italic;
    font-weight: normal;
    font-size: 12px;
    line-height: 14px;
    color: #B8B8B8;
    padding-top: 16px;
    text-align: center;
}

.tippy-box>.tippy-arrow::before {
    /* transform: scale(3.5); */
}

.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,
.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg {
    transform: rotate(0deg);
}

.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,
.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg {
    transform: rotate(-180deg);
}

.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,
.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg {
    top: 10px;
    transform: rotate(90deg);
}

.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg {
    transform: rotate(270deg);
    bottom: 10px;
}

#successMsg .modal-header .close {
    display: none;
}

#successMsg .modal-content {
    background: rgba(0, 0, 0, 0.76);
    border-radius: 19px;
    color: white;
    font-family: var(--heading-font-family);
    width: 30vw;
    min-width: 380px;
    padding: 8vh 4.2vw;
    text-align: center;
}

#successMsg .modal-title {
    font-weight: bold;
    font-size: var(--h2-font-size);
    line-height: 1.23;
}

#successMsg .modal-text {
    font-size: var(--big-text);
    line-height: 1.2;
    margin: 5vh 0 4vh;
}

@media (max-width: 767.98px) {
    .notify {
        vertical-align: middle;
    }
    .notify span {
        white-space: nowrap;
        display: inline-block;
        overflow: hidden;
        width: 0px;
        margin: 0;
    }
    .notify:hover span,
    .notify:active span {
        white-space: nowrap;
        display: inline-block;
        overflow: hidden;
        width: initial;
        margin: unset;
        transition: width ease-in-out 2s;
    }
    .data-main {
        min-height: 100vh;
        flex-direction: column;
    }
    #container {
        max-height: 92%;
        min-width: 85vw;
        margin: 0 0;
        position: relative;
        top: 1.2vh;
    }
    .side-nav {
        display: none;
    }
    .top-nav {
        display: unset;
        margin: 4vh 0 0 7vw;
    }
    .base-nav {
        display: flex;
        justify-content: space-between;
        margin: 4vh 7vw 0 7vw;
    }
    .map-nav .nav-item {
        width: 45%
    }
    .country-title {
        font-size: var(--h3-font-size);
        max-width: 88%;
        margin-left: auto;
    }
    .popover-content .close {
        visibility: visible;
    }
    #successMsg .modal-title {
        font-size: var(--h3-font-size);
    }
    #successMsg .modal-content {
        width: min(90vw, 373px);
    }
    #successMsg .modal-text {
        font-size: var(--bold-text);
    }
}