@import url('https://use.typekit.net/dfi6ezd.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');


body {
    font-family: Urbane, sans-serif !important;
    color: white;
}

svg text {
    font-family: Urbane, sans-serif !important;
}

.app {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    background-color: #212121;
}

.header {
    font-size: 28px;
    margin: 16px 0 0 0;
    font-weight: 300;
}

.header:not(.first) {
    padding-top: 40px;
}

.header.break {
    border-top: 2px solid #666666;
}

.sidebar {
    margin: 20px;
    background-color: #3D3D3D;
    color: white;
    width: 250px;
}

.sidebar .container {
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
    max-height: 100%;
}

.sidebar-header img {
    max-width: 65%;
    display: block;
    margin: 20px auto;
}

.sidebar-header span {
    display: block;
    font-size: 14px;
    text-align: center;
    text-transform: uppercase;
}

.sidebar-header h2 {
    font-weight: normal;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2px;
    font-size: 19px;
}

.sidebar-header hr {
    border-top: 1px solid orange;
    width: 33%;
}

.sidebar .nav>span,
.sidebar .controls>span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.sidebar .Select-menu-outer {
    color: #333 !important;
    font-size: 12px;
}

.sidebar .nav .Select {
    margin-bottom: 20px;
}

.sidebar .sidebar-settings {
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.om-logo {
    margin-top: 8px;
    border-radius: 4px;
}

.sidebar .sidebar-settings a {
    display: block;
    border-radius: 4px;
    padding: 6px 6px 6px 12px;
    background-color: white;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
}

.sidebar .sidebar-settings a:hover {
    background-color: #f7f7f7;
}

.sidebar .sidebar-settings a i {
    margin-right: 8px;
}

.main {
    position: relative;
    min-height: 100%;
    overflow: auto;
    flex: 1;
    padding-right: 20px;
}

.main>div:last-child {
    margin-bottom: 40px;
}

.modebar {
    display: none;
}

.login {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .95);
    z-index: 10000000;
}

.login .login-box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 290px;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    border: 1px solid white;
    background-color: #212121;
    box-shadow: rgba(255, 255, 255, 0.25) 0px 0px 50px;
    padding: 10px 50px 30px 30px;
}

.login input {
    width: 280px;
    border-radius: 5px;
    border: none;
    padding: 8px;
    margin-top: 4px;
}

.login.error label {
    color: red;
}

.login button {
    width: 140px;
    padding: 8px;
    background-color: #212121;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 5px;
    cursor: pointer;
}

.login button:last-child {
    margin-top: 5px;
    margin-left: 20px;
}


#scatterplotwrapper,
#adjustedscatterplotwrapper,
#stakeholderchart,
.bubble-table {
    margin: 40px 0;
}

.bubble-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    position: relative;
}

.bubble-table th,
.bubble-table td {
    border: 1px solid #666666;
    padding: 4px;
    text-align: center;
    vertical-align: bottom;
    text-transform: capitalize;
    font-family: Urbane;
}

.bubble-table td {
    vertical-align: middle;
}

.bubble-table td {
    font-size: 14px;
    text-align: left;
}

.bubble-table td:first-child {
    width: 350px;
}

.bubble-table th {
    font-size: 14px;
    text-align: center;
    text-align: -webkit-center;
    padding-bottom: 10px;
    background-color: #212121;
    z-index: 1;
    height: 120px;
}

.allactions .bubble-table th {
    position: sticky;
    top: 0;
}

.bubble-table:not(.nohighlight) th:nth-child(2),
.bubble-table:not(.nohighlight) td:nth-child(2) {
    background-color: #333333;
    width: 75px;
}

.bubble-table th span {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}


.bubble-table th:first-child {
    color: #212121;
    border: none !important;
}

.bubble-cell {
    position: relative;
    height: 35px;
    min-width: 50px;
}

.bubble {
    display: flex;
    border-radius: 50px;
    border: 1px solid #ffffff;
    margin: 4px auto;
}

.bubble-value {
    position: absolute;
    bottom: 0px;
    right: 4px;
    font-size: 11px;
}

.button-tabs-wrapper {
    margin-bottom: 40px;
}

.button-tabs-wrapper .tab-parent {
    flex-direction: column-reverse !important;
}

.button-tabs-wrapper .tab-container {
    justify-content: center;
}

.button-tabs-wrapper .tab-content {
    border-top: none;
}

.button-tabs-wrapper .tab {
    background-color: unset !important;
    font-family: Urbane, sans-serif;
    border-top: 2px solid #3D3D3D !important;
    border-bottom: 2px solid #3D3D3D !important;
    border-left: none !important;
    border-right: none !important;
    padding: 10px !important;
    width: 200px !important;
    cursor: pointer;
}

.button-tabs-wrapper .tab:hover {
    border-top: 2px solid #999999 !important;
    border-bottom: 2px solid #999999 !important;
    color: #666666 !important;
}

.button-tabs-wrapper .tab:last-child {
    border-right: 2px solid #3D3D3D !important;
}

.button-tabs-wrapper .tab:first-child {
    border-left: 2px solid #3D3D3D !important;
}

.button-tabs-wrapper .tab:last-child:hover {
    border-right: 2px solid #999999 !important;
}

.button-tabs-wrapper .tab:first-child:hover {
    border-left: 2px solid #999999 !important;
}

.button-tabs-wrapper .tab--selected {
    background-color: white !important;
}

#overviewtablewrapper .tab-content>div {
    flex-grow: 1;
    max-width: 49%
}

#overviewtablewrapper .tab-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

/* 
    alltopics = default
    allactions
    filtered
    stakeholder
*/

.main.alltopics #stakeholderchart {
    display: none;
}

.main.allactions #scatterplotwrapper,
.main.allactions #adjustedscatterplotwrapper,
.main.allactions #stakeholderchartwrapper {
    display: none;
}

.main.filtered #scatterplotwrapper,
.main.filtered #adjustedscatterplotwrapper,
.main.filtered #stakeholdertable {
    display: none;
}

.main.stakeholder #stakeholderchartwrapper,
.main.stakeholder #stakeholdertable {
    display: none
}

.main.filtered #overviewtablewrapper .tab-content>div,
.main.allactions #overviewtablewrapper .tab-content>div {
    width: 100%;
    max-width: 100%;
}

#scatterplotwrapper,
#adjustedscatterplotwrapper {
    display: flex;
    flex-direction: column;
}

#scatterplotwrapper>div,
#adjustedscatterplotwrapper>div {
    flex-grow: 1;
}

.main.alltopics h2.issues {
    display: none;
}

.main.filtered h2.topics,
.main.allactions h2.topics {
    display: none;
}

#loader {
    display: flex;
    z-index: 2;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 33, 33, 0.9);
}

#loader.loading {
    opacity: 1;
    bottom: 0;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#loader.init {
    background-color: rgba(33, 33, 33, 1);
}

.lds-ring,
.lds-ring div {
    box-sizing: border-box;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    color: #CCCCCC;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid currentColor;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: currentColor transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 1365px) {
    .main {
        display: block;
    }

    .sidebar {
        position: absolute;
        top: 10px;
        left: -240px;
        z-index: 2;
        margin: 0;
        border-radius: 0 15px 15px 0;
        transition: .5s;
    }

    .sidebar:hover {
        left: 0;
        transition: .5s;
    }

    .sidebar .sidebar-settings {
        padding-bottom: 20px;
    }

    .main {
        margin-left: 20px;
        z-index: 1;
    }
}