﻿/* Page-specific styling */

html {
    position: relative;
    min-height: 100%;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 14px;
}

body {
    /*margin: 0 0 40px; 
    overflow-y: auto;*/
    margin: 0;
}

button {
    cursor: pointer;
    border: 1px solid lightgray;
    padding: 3px 5px;
}

.primary-btn-widget {
    background-color: #C6F4FF;
    border: 1px solid #96EBFF;
}

.cancel-btn-widget {
    background-color: #FFBEBC;
    border: 1px solid #FF909D;
}

.footer {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 40px;
    width: 100%;
}

.disable-events {
    pointer-events: none;
}

.padding {
    padding: 15px;
}

.hidden {
    display: none !important;
}

.disabled, .disable {
    pointer-events: none !important;
    opacity: 0.5;
}

.background-blur {
    opacity: 0.05;
}

.anchor-right {
    float: right;
}

div.anchor-right {
    text-align: end;
}

.anchor-right > button {
    margin-bottom: 2px!important;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.underline {
    text-decoration: underline;
}

.double-underline {
    text-decoration: underline double;
}

button.no-border {
    border: none;
    background-color: transparent;
    padding: 0;
}

.vertical-separator {
    display: inline-block;
    border-left: 1px solid #999;
    height: 1.5em; /* matches text height */
    margin: 0 3px;
    vertical-align: bottom;
    padding: 0;
}

.row-item {
    padding: 2px;
    overflow: hidden;
}

.row-item > * {
    padding-right: 5px;
    /*margin-right: 5px;*/
}

.row-item > button {
    margin: 0 2px;
}

.row-contents > * {
    display: inline;
}

.read-only.transparent {
    border-color: transparent;
}

.selected > span {
    font-weight: bold;
    text-decoration: underline;
}

.bottom-separator {
    border-bottom: 1px solid lightgray;
}

.panel-right-buttons {
    position: absolute;
    right: 10px;
    top: 5px;
}

.background-logo {
    margin: 20px;
}

.label-input-widget, .labeled-selector-widget {
    display: grid;
    grid-template-columns: minmax(15px, auto) auto;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

#login {
    margin: 10px;
}

#user_session_btn {
    width: inherit;
    line-height: 0;
    padding: 5px;
    background-color: lightblue;
    border: 1px solid #99CCEE;
}

#user_session_btn[data-isguess=true] {
    background-color: none;
    border: 1px solid lightgray;
}

.panel {
    padding: 5px;
    /*height: 95vh;*/
    overflow-y: auto;
}

.panel-container {
    /*overflow-y: auto; 
    height: 90vh;*/
    margin-top: 20px;
}

.panel input[type="text"] {
    max-width: 78vw;
}

.panel .vw-width2 {
    width: 45vw;
}

.panel .vw-width3 {
    width: 60vw;
}

.panel .row-item-main {
    padding-bottom: 20px;
}

.panel select {
    max-width: 83vw;
    min-width: 50px;
}

.panel-tab-container {
    position: fixed;
    padding-bottom: 5px;
    padding-top: 5px;
    position: fixed;
    background: white;
    width: 100%;
    top: 0;
}

.panel-tab-container > .panel-tab {
    padding: 1px 5px;
    display: inline;
    cursor: pointer;
}

.panel-tab-container > .active {
    font-weight: bold;
    border-bottom: 3px solid lightgray;
}

.panel-block .panel-block {
    padding-left: 5px;
}

.panel-block-top {
    padding-bottom: 5px;
    padding-top: 10px;
    margin-bottom: 2px;
    border-bottom: 2px solid lightgray;
}

.panel-block-body .panel-block-top {
    padding-bottom: 1px;
    padding-top: 1px;
    margin-bottom: 1px;
    border-bottom: 1px solid lightgray;
}

.panel-block-top > * {
    display: inline-block;
}

.panel-block-title {
    font-weight: bold;
}

.panel-hidden {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.2s;
}

.panel-show {
    overflow: hidden;
    /*max-height: 1000px;*/
    transition: max-height 0.5s;
}

.panel-box {
    border: 1px solid lightgray;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

#formatting-panel, #connections-panel {
    height: 92vh;
}

.float-box {
    position: absolute;
    background-color: white;
}

.mini-btn-widget {
    width: 15px;
    height: 15px;
    font-size: 10px;
    text-align: center;
    padding-left: 1px;
    font-weight: bold;
    border: none;
    background-color: unset;
}

.small-btn-widget {
    max-width: 30px;
    height: 19px;
    font-size: 10px;
    margin: 1px 2px 2px 2px;
}

.small-btn-widget.bigtext {
    font-size: 14px;
    padding: 1px;
    line-height: 1px;
}

.regular-btn-widget {
    min-width: 65px;
}

button.panel-block-hide::after {
    content: "_";
}

button.panel-block-hide.hide-enable::after {
    content: "+";
    font-size: 1.25em;
}

.block-scrollable-medium {
    max-height: 300px;
    overflow-y: auto;
}

.block-scrollable-large {
    max-height: 500px;
    overflow-y: auto;
}

.indent-1 {
    margin-left: 20px;
}

.hier-container {
    overflow-y: scroll;
    max-height: 250px;
    min-width: 200px;
    border: 1px solid lightgray;
}

.hier-container li, .tree-simple-container li {
    list-style-type: none;
    padding-left: 10px;
}

.hier-container ul, .tree-simple-container ul {
        padding-left: 5px;
}

.tree-simple-container ul {
    margin: 0;
}

.hier-box > .top-node {
    margin-top: 1px
}

.tree-simple-container {
    overflow: hidden;
    max-height: inherit;
}

.plus {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.plus:before {
    cursor: pointer;
    content: "\27a4";
    color: black;
    display: inline-block;
    margin-right: 2px;
    margin-left: -14px;
    font-size: 10px;
}

.minus::before {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

ul.nested {
    padding-left: 0px;
    display: none;
}

ul.active {
    animation: slide-down 200ms ease-in-out;
    display: block !important;
}

ul.inactive {
    display: block;
    max-height: 0;
    overflow: hidden;
    animation: slide-up 200ms ease-in-out;
}

li.highlighted > span {
    background: lightblue;
}

@keyframes slide-down {
    0% {
        max-height: 0;
        opacity: 0;
    }

    100% {
        max-height: 200px;
        opacity: 0.5;
    }
}

@keyframes slide-up {
    0% {
        max-height: 200px;
        opacity: 0.5
    }

    100% {
        max-height: 0;
        opacity: 0;
    }
}

.hier-tree-ps ul {
    cursor: pointer;
}

.sub-title {
    font-weight: bold;
    padding-bottom: 5px;
    padding-top: 10px;
    display: inherit;
}

table.table-selector {
    border: 1px solid lightgray;
    height: 250px;
    overflow: scroll;
    width: 100%;
    display: block;
    border-spacing: 0;
}

table.table-selector th {
    border: 1px solid lightgray;
}

table.info-table-widget .table-cell-widget {
    padding-right: 20px;
}

.table-body-widget > tr.dim-regular > td[data-field="expansion"] option.date {
    display: none;
}

.table-body-widget > tr.dim-measures > td[data-field="expansion"] option.date, .table-body-widget > tr.dim-measures > td[data-field="expansion"] option.normal {
    display: none;
}


.navi-buttons button {
    height: 18px;
    padding: 0;
    margin: 1px;
}

.formatting-bar {
    display: flex;
    flex-wrap: wrap;
    align-items:center;
}

.formatting-bar div {
    display: inline-block;
}

.formatting-bar .format-widget {
    border: 1px solid lightgray;
    margin: 1px 2px;
    border-radius: 3px;
}

.formatting-bar div.size-1 {
    width: 16px;
    height: 18px;
}

.formatting-bar span.size-1 {
    padding-right: 20px;
}

.formatting-bar span.size-2 {
    padding-right: 25px;
}

.formatting-bar div.size-2 {
    width: 25px;
    height: 18px;
}

.formatting-bar .formatting-font-size-input {
    width: 35px;
}

.formatting-bar .formatting-font-select {
    width: 120px;
    margin: 2px;
}

.formatting-bar .formatting-number-format-select {
    width: 100px;
    margin: 2px;
}

.formatting-bar .formatting-font-size-input {
    margin: 2px;
}

.formatting-bar .move-buttons {
    transform: translateY(5px);
    padding-right: 1px;
}


.formatting-bar .move-buttons > button {
    height: 8px;
    line-height: 0px;
    display: block;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 8px;
}


.custom-formatting-row label {
    font-style: italic;
}

.border-box {
    padding: 1px 1px 1px 1px;
    align-content: center;
    display: grid !important;
    grid-template-rows: 8px 7px;
    grid-template-columns: 8px 7px;
    height: 100%;
    width: 100%;
    grid-auto-rows: 1fr;
    grid-auto-columns: 1fr;
}

.button-like {
    cursor: pointer;
    padding: 1px;
}

div.row-item > span {
    padding: 0;
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;
}

.formatting-bar > * {
    /*margin: 2px;*/
}

.formatting-bar input {
    padding: 0;
}

.format-widget .color-text {
    font-size: small;
    position: relative;
    top: -1px;
}

.format-widget .color-slit {
    height: 5px;
    top: -3px;
    position: relative;
}

.format-widget .color-slit.need-border {
    border: 1px solid lightgray;
    height: 3px;
}

.button-like.pressed {
    background-color: lightgrey;
}

.button-like > *, .button-like > * > * {
    margin: 0;
}

.number-input-min {
    width: 40px;
}

.font-select {

}

.color-picker-btn {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    cursor: pointer;
    margin: 2px;
    border: solid 1px;
}

.color-picker-btn.selected-button {
    width: 14px;
    height: 14px;
}

.color-picker-widget {
    width: 192px;
}

.picker-box {
    display: flex!important;
    align-items: center;
    flex-wrap: wrap;
}

.box-slash {
    border-right: solid 1px lightgray;
    width: 100%;
    height: 140%;
    -webkit-transform: translateY(3px) translateX(-6px) rotate(-45deg);
    pointer-events: none;
    padding: 0;
}

.null-color {
    padding: 0;
}

.divider {
    width: 98%;
    height: 1px;
    background-color: lightgray;
    margin-left: 2px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.selected-button {
    border: 2px solid #202020 !important;
}

.dialog-box {
    background-color: white;
    position: absolute;
    border: 1px solid lightgray;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.color-picker-palette {
    position: relative;
    visibility: hidden;
    left: 65px;
}

.border-button-widget {
    margin: 2px;
    border-radius: 3px;
    border: 1px solid lightgray;
}

.dialog-freeze-widget {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.dialog-freeze-message {
    min-height: 50px;
    margin: 35px 10px 10px 20px;
}

.dialog-freeze-message > textarea {
    resize: none;
    overflow-y: hidden;
    border: none;
    box-sizing: border-box;
    font: inherit;
    padding: 4px;
    min-height: 30px;
    background-color: transparent;
    font-weight: bold;
}

.dialog-freeze-button-container {
    margin-right: 20px;
}

.bottom-message-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 95%;
    padding: 10px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.box-close::after {
    content: "X";
}

.title-error {
    color: red;
}

.title-warning {
    color: darkgoldenrod;
}


.bottom-message-box.hide-message-box:not(.forced) {
    transition: opacity 1s ease;
    opacity: 0;
}

.bottom-message-box.hide-message-box.forced {
    display:none;
}


.bottom-message-box-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bottom-message-box .message-box {
    margin: 5px;
    min-height: 60px;
}

.segment-title {
    padding-bottom: 10px;
    font-weight: 600;
}

.xinput-w-lock {
    display:flex;
    align-items: center;
}

.xinput-w-lock input[type="text"] {
    width: 150px;
}

.xinput-w-lock > .lock-icon-container {
    padding: 5px 0 0 0;
}

.xinput-w-lock > .lock-icon-container > img {
    border: 1px solid gray;
    padding: 0;
    cursor: pointer;
}

.xinput-w-lock > .lock-icon-container > img.unlock-icon {
    background-color: lightyellow;
}

.xinput-w-lock > .lock-icon-container > img.lock-icon {
    background-color: lightblue;
}