﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.tabulator {
    font-size: 12px !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #979788;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    pointer-events: inherit;
    opacity: .65;
    cursor: not-allowed;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.breadcrumb {
    /*position: absolute;*/
    /*left: 0px;*/
    /*right: 0px;*/
    /*top: 61px;*/
    padding: 5px 15px 5px 40px;
    width: 100%;
    margin-top: -14px;
    margin-bottom: 5px;
    margin-left: 0px;
    margin-right: 0px;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #ddd;
}


/* ***************************  */
/* *** Dashboard defaults  ***  */
/* ***************************  */
.heading_row {
    border: 1px solid #777;
    min-height: 100px;
}

.data_panel {
    width: 100%;
    overflow: hidden;
}

.well {
    border: 0px;
    padding: 2px;
}

.table_panel {
    background-color: white;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.chart_panel {
    background-color: white;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.heading-text {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
}

.heading_select {
    width: 100%;
    margin-left: 5px;
}

.breadcrumb-text {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    padding-left: 30px;
    padding-bottom: 5px;
}

.well-sm {
    margin-bottom: 1px;
}

.map-rendering-row {
    margin-right: 0px;
    margin-left: 0px;
}

.map-rendering-col {
    padding-right: 5px;
    padding-left: 5px;
}

.map-rendering-heading {
    text-align: left;
    font-size: 14px;
}

@media (min-width: 768px) {
    .data_panel {
        height: 400px;
    }
}

@media (min-width: 992px) {
    .data_panel {
        height: 500px;
    }
}

@media (min-width: 1200px) {
    .data_panel {
        height: 610px;
    }
}

.map-rendering-parameters {
    z-index: 1;
    opacity: 1;
    position: absolute;
    /* bottom: 0; */
    top: 1.43em;
    left: 5em;
    margin: 0px;
    background: rgb(206 216 229 / 70%);
    color: black;
    border: 0px;
    transition: opacity 100ms ease-in;
    width: 250px;
    padding: 10px;
    border-radius: 3px;
}

.dateRangeButtonStyle {
    width: 32%;
    font-size: 12px;
    font-weight: bold;
    height: 34px;
    border-radius: 4px;
}

.dateRangeSelectedButton,
.dateRangeSelectedButton:hover {
    background-color: #C0C0C0;
    color: white;
    border: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

.table_header_spacer {
    height: 68px;
}

@media (max-width: 992px) {
    .table_header_spacer {
        height: 0px;
    }

    .heading-text {
        text-align: left;
    }
}

/* ***************************  */
/* *** Dashboard defaults  ***  */
/* ***************************  */
/* Tabs */

.tab-button-container button {
    width: 16%;
    min-width: 100px;
    background-color: #C0C0C0;
    border: solid 1px black;
    border-radius: 8px;
}


.tab-button-container button:disabled {
    pointer-events: inherit;
    opacity: .5;
    cursor: not-allowed;
    border: 0px;
}

.tab-button-container button:disabled span::before {
    content: "";
    font-size: 16px;
}



.tab-button-container .selected,
.tab-button-container .selected:hover {
    background-color: #979788;
    border: solid 2px black;
    border-radius: 8px;
    background-color: #606060;
    color: white;
    font-weight: bold;
}

.tab-button-container button span {
    float: left;
}

/*.tab-button-container .selected span::before {
    content: "\e252";
    font-size: 16px;
}
*/
/*.tab-button-container span::before {
    content: "\e250";
    font-size: 16px;
}
*/

.tab-button-container button.selected span::before {
    content: "\e013";
    font-size: 16px;
}

.tab-button-container button span::before {
    content: "\e157";
    font-size: 20px;
}

.table_header_spacer {
    height: 34px;
}

/* ***************************  */
/* *** Resizeable layout   ***  */
/* ***************************  */

.resize-container {
    position: absolute;
    left: 5px;
    right: 5px;
    top: 56px;
    bottom: 31px;
    padding-left: 10px;
    padding-right: 10px;
}

.resize-main {
    position: absolute;
    left: 200px;
    top: 30px;
    right: 0px;
    bottom: 200px;
    /*background-color: BurlyWood;*/
}

.resize-left {
    position: absolute;
    left: 0px;
    top: 30px;
    bottom: 0px;
    width: 200px;
    /*background-color: IndianRed;*/
}

.resize-bottom {
    position: absolute;
    left: 200px;
    top: calc(100% - 200px);
    right: 0px;
    bottom: 0px;
    /*background-color: blueviolet;*/
}

.resize-dragbar-v {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background-color: black;
    width: 3px;
    cursor: col-resize;
}

.resize-dragbar-r {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    background-color: black;
    width: 3px;
    cursor: col-resize;
}

.resize-dragbar-h {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    background-color: black;
    height: 3px;
    cursor: row-resize;
}

.resize-left-panel {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 3px;
    bottom: 0px;
    overflow: auto;
}

.resize-main-panel {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    overflow: hidden;
}

.resize-bottom-panel {
    position: absolute;
    left: 0px;
    top: 3px;
    right: 0px;
    bottom: 0px;
    overflow: auto;
}

.resize-right {
    position: absolute;
    right: 0px;
    top: 0px;
    bottom: 0px;
    width: 300px;
}

.resize-right-panel {
    position: absolute;
    left: 3px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    overflow: auto;
}


.resize-main-panel-header {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    height: 45px;
    background-color: #6bA6C4;
    font-size: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    padding-top: 5px;
    border: solid 1px black;
}

.resize-main-panel-header-button {
    position: absolute;
    left: 10px;
    width: 200px;
}

.resize-main-panel-header-caption {
    position: absolute;
    left: 210px;
    right: 0px;
    text-align: center;
}

.resize-main-panel-table {
    position: absolute;
    left: 10px;
    top: 55px;
    right: 10px;
    bottom: 10px;
}

/* ***************************  */
/* *** Resizeable layout   ***  */
/* ***************************  */

/* ***************************  */
/* *** Input decoration    ***  */
/* ***************************  */

input:invalid + span::after {
    /*content: "✖";*/
    content: "X";
    color: red;
    background-color: #FFFFFF;
    padding: 3px;
    font-weight: bold;
}

input:invalid {
    border-color: red;
    color: red;
    font-weight: bold;
}

input:valid + span::after {
    /*content: "✓";*/
    color: green;
    background-color: #FFFFFF;
    padding: 3px;
    font-weight: bold;
}

input:valid {
    border-color: black;
    color: black;
    font-weight: bold;
}

textarea:invalid + span::after {
    /*content: "✖";*/
    content: "X";
    color: red;
    background-color: #FFFFFF;
    padding: 3px;
    font-weight: bold;
}

textarea:invalid {
    border-color: red;
    color: red;
    font-weight: bold;
}

textarea:valid + span::after {
    /*content: "✓";*/
    color: green;
    background-color: #FFFFFF;
    padding: 3px;
    font-weight: bold;
}

textarea:valid {
    border-color: black;
    color: black;
    font-weight: bold;
}


/* ***************************  */
/* *** Input decoration   ***  */
/* ***************************  */
/* ***************************  */
/* *** help-container      ***  */
/* ***************************  */
.help-container {
    position: absolute;
    right: 10px;
    top: -17px;
    background-color: #FFF;
    width: 30px;
    padding: 0px;
}

.help-image {
    height: 30px;
    cursor: pointer;
}

/* ***************************  */
/* *** Input decoration   ***  */
/* ***************************  */

/* ***************************  */
/* *** Intro.js related   ***  */
/* ***************************  */

.introTooltipStyle {
    width: 500px;
    max-width: 700px;
    /*         height: 300px; */
}

.otherIntroTooltipStyle {
    width: 650px;
    max-width: 700px;
    /*         height: 300px; */
}


.explore-btn {
    height: 29px;
    width: 150px;
    position: absolute;
    top: -19px;
    right: 50px;
    padding: 0px 4px 0px 4px;
    background-color: green;
    color: white;
    border: solid 1px black;
}

.explore-btn:hover {
    height: 29px;
    width: 150px;
    position: absolute;
    top: -19px;
    right: 50px;
    padding: 0px 4px 0px 4px;
    background-color: #C0C0C0;
    color: #000000;
    border: solid 1px black;
}

.custom-bullet-start {
    vertical-align: super;
    font-size: 10px;
    padding-left: 1px;
    color: crimson;
    font-weight: bold;
    list-style-type: none;
    display: inline-block;
}

.custom-bullet-end {
    vertical-align: super;
    font-size: 10px;
    padding-left: 1px;
    color: crimson;
    font-weight: bold;
    list-style-type: none;
    display: inline-block;
}

/* ***************************  */
/* *** Intro.js related   ***  */
/* ***************************  */

/* ***************************  */
/* *** jstree  ***  */
/* ***************************  */

.jstree-default-large .jstree-node {
    margin-left: 16px;
}
.jstree-default-large .jstree-icon:empty{
    width: 24px;
}
/* ***************************  */
/* *** jstree  ***  */
/* ***************************  */
/* ***************************  */
/* *** Model Dialog  ***  */
/* ***************************  */

.dialog-primary {
    color: #000;
    background-color: #66B8D3;
    border-color: #66B8D3;
}
.dialog-info {
    color: #000;
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}
.dialog-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}
.dialog-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}
.dialog-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}
.dialog-site {
    color: #000;
    background-color: #66B8D3;
    border-color: #66B8D3;
}

.modal-backdrop.show {
    opacity: 0;
}

.modal-content {
    border: 10px solid rgba(0, 0, 0, .2);
}
/* ***************************  */
/* *** Model Dialog  ***  */
/* ***************************  */
/* ***************************  */
/* *** Open Layers         ***  */
/* ***************************  */
.ol-rotate {
    top: unset;
    right: unset;
    bottom: 0.5em;
    left: 0.5em;
    border-radius: 50%;
    background-color: transparent;
}

.ol-rotate-reset {
    width: 4em !important;
    height: 4em !important;
    border-radius: 50% !important;
    background-color: transparent !important;
}

.ol-compass {
    width: 100% !important;
    height: 100% !important;
    padding: 0.4em;
}

.ol-map-export {
    top: 100px;
    left: .5em;
    /*padding: 0.4em;*/
}

.map-legend {
    top: 127px;
    left: .5em;
    color: black;
    /*padding: 0.4em;*/
}

.map-legend-open,
.map-legend-open:hover {
    top: 127px;
    left: .5em;
    width: 300px;
    background-color: white;
    /*height: 5em;*/
    /*background-color:blueviolet;*/
    /*padding: 0.4em;*/
}

.map-legend-heading {
    width: 100%;
    /*border: 1px solid black;*/
    text-align: center;
    background-color: aliceblue;
    font-weight: bold;
    font-size: large;
}

#map_mouse_over {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 500px;
    word-wrap: break-word;
    background-color: white;
    border-color: black;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px 5px;
    padding: 5px;
    z-index: 20;
}

.map-mouseover-header {
    font-size: 1.2em;
    font-weight: 600;
}

.map-mouseover-table {
    width: 100%;
    border: black 1px solid;
}

.map-mouseover-header-tr {
}

.map-mouseover-header-td {
    border: white 1px solid;
    padding: 4px;
    text-align: left;
    /*background-color: black;*/
    /*color: white;*/
    font-weight: bold;
    font-size: 16px;
    color: #000;
    background-color: #66B8D3;
    border-color: #66B8D3;
}

.map-mouseover-row-tr {
}

.map-mouseover-row-td {
    border: black 1px solid;
    padding: 2px;
    text-align: left;
}

.map-mouseover-row-td-left {
    border: black 1px solid;
    padding: 2px;
    text-align: left;
}

.map-mouseover-row-td-right {
    border: black 1px solid;
    padding: 2px;
    text-align: right;
}


/* ***************************  */
/* *** Open Layers         ***  */
/* ***************************  */

/* ***************************  */
/* *** Nav Bar             ***  */
/* ***************************  */

.navbar {
    z-index:1000;
}

.dropdown-header {
    font-weight: 600;
    font-size: 20px;
}

.dropdown-menu.dropdown-menu-wide.show {
    position: fixed;
    top: 60px;
    left: 0px;
    right: 0px;
    bottom: 200px;
}

/* ***************************  */
/* *** Nav Bar             ***  */
/* ***************************  */

/* ***************************  */
/* *** Mega Menu Styling   ***  */
/* ***************************  */

.navbar .has-megamenu {
    position: static !important;
}

.navbar .megamenu {
    left: 0;
    right: 0;
    width: 100%; 
    margin-top: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.megamenu-header-row {
    background-color: #96d9eb; 
    padding: 10px 30px; 
    width: 100%;
}

    .megamenu-header-row span {
        font-size: 1.6rem;
        color: #000;
    }

.nav-item.dropdown.show > .nav-link {
    background-color: #96d9eb !important;
    color: #000 !important;
}

.megamenu-body-row {
    background-color: #ffffff;
    padding: 1px 20px 30px 20px;
}

.column-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    padding-top: 5px;
    /*color: grey;*/
}

.megamenu .dropdown-item {
    padding: 2px 10px 2px 0px;
    font-size: 1rem;
    color: #333 !important;
    border-radius: 4px; 
    transition: background-color 0.2s ease;
}

    .megamenu .dropdown-item:hover {
        background-color: #e9ecef !important; 
        color: #000 !important;
        text-decoration: none;
    }

/* 1. Reset Navbar to zero padding so the background can touch the edges */
.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

    /* 2. Ensure the container and nav-list fill the height */
    .navbar > .container,
    .navbar > .container-fluid,
    .navbar-nav {
        height: 100%;
        align-items: stretch !important; /* Forces children to span full height */
    }

.nav-item {
    display: flex;
    align-items: stretch;
}

/* 3. The Link Styling */
.nav-link {
    display: flex !important;
    align-items: center !important; /* Keeps text centered vertically */
    padding: 0 20px !important;
    height: 100% !important;
    margin: 0 !important; /* Removes any gaps */
    border-radius: 0 !important; /* Square edges fill the bar better */
    transition: background-color 0.1s ease;
}

    /* 4. Persistent Highlight: Active OR when Dropdown is Open (.show) */
    /* Note: We removed :hover so it doesn't flicker when moving between menus */
    .nav-link.nav-active,
    .nav-item.show > .nav-link {
        background-color: #ffffff !important;
        font-weight: bold;
        color: #000000 !important;
    }

/* Light grey background for the selected sub-item */
.megamenu .dropdown-item.sub-active {
    background-color: #e9ecef !important; 
    color: #000000 !important;
    font-weight: 600;
    border-radius: 4px; /* Optional: gives a slight rounded look to the grey box */
}

/* Ensure it looks good on hover too */
.megamenu .dropdown-item:hover {
    background-color: #f8f9fa;
}


/* ***************************  */
/* *** Mega Menu Styling   ***  */
/* ***************************  */

/* Position the Skip (X) button in the top right */
.introjs-skipbutton {
    position: absolute !important;
    top: 5px !important;
    right: 10px !important;
    font-size: 22px !important;
    color: #999 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

    .introjs-skipbutton:hover {
        color: #000 !important;
    }

/* Adjust tooltip to make room for the X */
.introjs-tooltip {
    padding-top: 30px !important;
    z-index: 999999 !important;
}

/* Style the Progress Bar green to match your theme */
.introjs-progressbar-fill {
    background-color: #5cb85c !important;
}

/* Ensure Hints are visible during the tour */
.introjs-hint {
    z-index: 9999999 !important; /* Ensure they sit above the tour overlay */
}

.introjs-overlay {
    z-index: 999998 !important;
}

.tour-hover-tooltip {
    position: absolute;
    max-width: 300px;
    background: #2c3e50;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    z-index: 10000000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    pointer-events: none;
}

/* ***************************  */
/* *** Chart Y Axis Button Defaults  ***  */
/* ***************************  */

.chart-yaxis-button-container {
    position: absolute;
    top: 132px;
    right: 60px;
    z-index: 100;
    display: none;
}

.chart-yaxis-button {
    float: right;
    width: 40px;
    margin-right: 10px;
    background-color: #DBE2E9;
    border: solid 1px black;
}


/* ========================================================= */
/* Identity Account Management Overrides                     */
/* ========================================================= */

/* Hide the Two-Factor and Personal Data tabs from the sidebar */
li.nav-item:has(a[href*="TwoFactorAuthentication"]),
li.nav-item:has(a[href*="PersonalData"]),
a#two-factor, 
a#personal-data {
    display: none !important;
}

/* --- Unify Identity Sidebar with App Styling --- */
.nav-pills .nav-link {
    color: #0077cc;
    border-radius: 4px;
}

.nav-pills .nav-link.active {
    background-color: #1b6ec2 !important;
    font-weight: bold;
}
