﻿/* Page-specific styling */

#content-main {
    bottom: 50px; /* Same value as #content-footer's height */
}

    #content-main button {
        margin-top: 10px;
        width: 200px;
    }

#content-footer {
    background-color: #cecece;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Fixed footer height */
    overflow: hidden; /* Disable scrollbars for footer */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

#mainBody {
    margin: 0;
    padding: 16px;
}

#errorSpan {
    color: red;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    margin-bottom: 8px
}

.nested-list {
    margin-left: 20px;
}

input[type="checkbox"] {
    margin-right: 5px;
    align-content: flex-start;
}

ul, myUL {
    list-style-type: none;
}

myUL {
    margin: 0;
    padding: 0;
}

.dataItem,
.lblClass {
    cursor: pointer;
}

.caret {
    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none;
    position: relative;
    padding-left: 0px;
}

    .caret .dataLine,
    .caret .dataItem {
        margin-left: 40px;
    }

    .caret label {
        padding-left: 40px;
    }

    .caret .lblClass {
    }

    .caret::before {
        content: "";
        background-image: url("data:image/svg+xml,%0A%3Csvg width='11' height='6' viewBox='0 0 11 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L5.5 5.5L11 0H0Z' fill='%23000000'/%3E%3C/svg%3E%0A");
        width: 11px;
        height: 6px;
        display: block;
        position: absolute;
        top: 5px;
        left: 0;
        transform: rotate(-90deg);
        background-position: center;
    }

    .caret::after {
        content: "";
        background-image: url(../Images/big-folder.png);
        width: 16px;
        height: 16px;
        display: block;
        position: absolute;
        top: 0px;
        left: 16px;
        background-position: center;
        background-size: 100%;
    }

.caret-down::before {
    /*cursor: pointer;*/
    -ms-transform: rotate(-45deg); /* IE 9 */
    -webkit-transform: rotate(-45deg); /* Safari */
    transform: rotate(-45deg);
}

.rotateIt {
    /*cursor: pointer;*/
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.nested {
    display: none;
}

.active {
    display: block;
}

.list-btns {
    display: flex;
    width: 100%;
    background: #fff;
    padding: 8px;
    margin-bottom: 16px;
    /*box-shadow: 0 0 8px 0 #d2dce7;*/
    border: 1px solid #e6e6e6;
}

#div-data, #divEnvironment .tooltip {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 80px;
        background-color: black;
        font-size: 13px;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        /* Position the tooltip */
        position: absolute;
        z-index: 1;
        top: 100%;
        left: 50%;
        margin-left: -40px;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
    }

ul {
    padding-left: 0 !important;
}

.list-btns .Button--primary {
    margin-top: 0 !important;
    margin-right: 8px;
    min-width: 32px !important;
    width: 32px !important;
    height: 32px;
    background-color: #215389 !important;
    border-color: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

    .list-btns .Button--primary .Button-label {
        color: #000 !important;
        display: flex;
        align-items: center;
    }

    .list-btns .Button--primary img {
        width: 100%;
    }

ul.tree {
    padding: 4px !important;
    /* box-shadow: 0 0 8px 0 #d2dce7;*/
    border: 1px solid #e6e6e6;
}

.dataLine::after {
    background-image: none;
}

.dataLine.caret img {
    position: absolute;
    left: 15px !important;
    top: -2px !important;
}

.dataLine.caret li img {
    left: 0 !important;
}

.dataLine label {
    display: block !important;
}

.dataItem {
    position: relative;
    padding-left: 24px;
}

    .dataItem label {
        position: relative;
    }

    .dataItem::after {
        /*background-image: url("../Images/list.png");*/
        content: "";
        width: 16px;
        height: 16px;
        display: block;
        position: absolute;
        top: 0px;
        left: 0px;
        background-position: center;
        background-size: 100%;
    }

li {
    font-size: 14px;
    margin: 4px 0;
}

#myUL > li img {
    left: 10px;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

#btnLoginModal, .login-btn {
    display: block;
    padding: 4px 16px;
    background-color: #215389;
    border: 1px solid #215389;
    color: #ffffff;
    font-weight: 600;
    width: 100%;
    max-width: 120px;
    margin: 25px auto 8px auto;
}

.modal .modal-content {
    position: relative;
}


    .modal .modal-content p {
        font-size: 14px;
        line-height: 21px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .modal .modal-content input {
        padding: 8px;
        border: 1px solid #215389;
        font-size: 14px;
        line-height: 18px;
        border-radius: 5px;
        width: 100%;
    }

    .modal .modal-content #btnLogin {
        display: block;
        padding: 8px 16px;
        background-color: #215389;
        border: 1px solid #215389;
        color: #ffffff;
        font-weight: 600;
        width: 100%;
        text-align: center;
        margin: 8px auto;
    }

    .modal .modal-content #btnClose {
        position: absolute;
        right: 16px;
        top: 16px;
        width: 10px;
        height: 10px;
    }

.form-group {
    margin-top: 16px
}

    .form-group label {
        margin-bottom: 6px;
        display: inline-block;
    }


/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    text-align: right;
}

    .dropdown .dropbtn {
        width: 100%;
        max-width: 40px;
        margin-left: auto;
        border: none;
        background: transparent;
    }
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    right: 0;
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    text-align: left;
}

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        /* Change color of dropdown links on hover */
        .dropdown-content a:hover {
            background-color: #f1f1f1
        }

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.refresh-data-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-select {
    display: block;
    width: 100%;
    padding: 8px 16px;
    margin-top: 12px;
    /*overflow: hidden;
    word-break: break-all;
    text-overflow: ellipsis;
    white-space: nowrap;*/
}

#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #snackbar.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 16px;
    margin-top: 15px;
}

    .logo-section img {
        width: 150px;
    }

#divEnvironment {
    width: 100%;
    max-width: 300px;
    margin: 16px auto;
}

.refresh-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    color: #e7e9eb;
    margin: -3px 0 0 0;
    display: flex !important;
    align-content: center !important;
}

    .refresh-btn img {
        width: 14px;
        position: relative;
        top: 2px;
        margin: 0 5px 0 0;
    }


.refresh-data-content .dropdown {
    margin: 3px 0 0 10px;
}


#ulTree ul li.dataLine,
#ulTree li.dataItem {
    padding-bottom: 10px !important;
}

    #ulTree li.dataItem:last-child {
        padding-bottom: 0px !important
    }

#list-query-views label,
#list-views label {
    padding-bottom: 10px !important;
    display: inline-block;
}

.dataLine ul {
    margin-top: 10px !important;
}

    .dataLine ul li {
        font-size: 14px;
    }

#list-views label {
    display: inline-block;
}

#list-views img {
    float: right;
    width: 16px;
    margin: 2px 10px 0 0;
}

#list-views > label {
    cursor: pointer;
}

#list-query-views > label {
    cursor: pointer;
}

.dataLine label {
    cursor: pointer;
}

#searchViewQuery {
    width: 100%;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-bottom: 8px;
}

.loading-box {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 99;
    width: 100%;
}

.loading-img-box {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    margin: auto;
    height: 200px;
    width: 100%;
    align-items: center;
}

    .loading-img-box img {
        width: 60px;
        margin-bottom: 10px;
    }

    .loading-img-box label {
        padding-left: 20px;
    }

.searchItems {
    position: relative;
    padding: 0 0 0 38px;
}

    .searchItems img {
        position: absolute;
        left: 10px;
        top: 0;
        height: 18px;
    }

#myULQ .dataItem {
    position: relative;
    padding: 0 0 0 35px;
}


    #myULQ .dataItem img {
        position: absolute;
        left: 10px;
        top: 0;
        height: 18px;
    }

#myUL li.dataLine li {
    margin-bottom: 15px;
}

#myULQ li.dataItem {
    margin-bottom: 15px;
}

#btnBegin {
    cursor: pointer;
}

.initPage img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: flex;
    margin-bottom: 8px;
}

.initPage div a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 12px auto;
    width: 100%;
}

.firstRun {
    text-align: center;
    margin-bottom: 16px;
    margin-top: 15px;
    font-size: large;
    display:flex;
    height:600px;
    max-width:350px;
    margin:auto;
    flex-direction:column;
    justify-content:center;
     padding:16px;
    margin-top:48px;
}
    .firstRun ul li{
        justify-content:start;
    }
    .firstRun ul li img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        margin-right: 12px;
    }
    .firstRun ul li a {
        display: inline-flex;
        gap: 8px;
        justify-content: start !important;
        align-items:center;
        text-align:left;
        width: 100%;
        margin:4px 0;

    }

    .firstRun label{
        font-size:32px;
        line-height:40px;
    }
    .firstRun p {
        font-size: 16px;
        line-height: 24px;
        margin:16px 0;
    }
    
/*#btnBegin:disabled {
        background-color: #ccc;*/ /* Light gray background */
/*color: #666;*/ /* Dimmed text color */
/*cursor: not-allowed;*/ /* Change cursor to indicate it's disabled */
/*opacity: 0.5;*/ /* Make the button look faded */
/*}*/
