/*!
 * Custom CSS will be loaded after bootstrap CSS
 *
 */
/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
  background-color: #FFFFFF;
}

}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #c1ccfd;
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

body > .container {
  padding: 60px 15px 0;
}
.container .text-muted {
  margin: 20px 0;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

code {
  font-size: 80%;
}

label {
  cursor: default;
}

.table .text-right {text-align: right}
.table .text-left {text-align: left}
.table .text-center {text-align: center}

.btn-link{
  border:none;
  outline:none;
  background:none;
  cursor:pointer;
  color: black;
  padding:0;
  font-family:inherit;
  font-size:inherit;
}

/* Old btn-primary style: Bootstrap default blue */
/* .btn-primary { background-color: #0d6efd; } */
.btn-primary {
  background-color: #074579;
}

.btn-primary:hover {
  background-color: #1474b8;
}

/* .btn-success {
  background: linear-gradient(135deg,color-mix(in srgb, #5bb75b 50%, black) 0%,#5bb75b 50%);
}

.btn-success:hover {
  background: linear-gradient(135deg,color-mix(in srgb, #5bb75b 50%, black) 0%,#5bb75b 100%)
}

.btn-info {
  background: linear-gradient(135deg,color-mix(in srgb, #0dcaf0 50%, black) 0%,#0dcaf0 50%);
}

.btn-info:hover {
  background: linear-gradient(135deg,color-mix(in srgb, #0dcaf0 50%, black) 0%,#0dcaf0 100%)
}

.btn-danger {
  background: linear-gradient(135deg,color-mix(in srgb, #dc3545 50%, black) 0%,#dc3545 50%);
}

.btn-danger:hover {
  background: linear-gradient(135deg,color-mix(in srgb, #dc3545 50%, black) 0%,#dc3545 100%)
} */

container-fluid {
    padding: 15px 30px;
}

abbr[title],
abbr[data-original-title] {
  cursor: help;
  border-bottom: 1px none #999999;
}

.rzrow {
   /* background-color:#186595; php8.3 */
   /* background-color:#009A44; */
   background-image:none;
   color: white;
} 

.definputwidth {
   width:30%;
}

.deflabelwidth {
   width:15%;
}

#Report-Header { 
  color: white;
  font-size: large;
  font-weight: bold;
} 

select, 
textarea, 
input[type="text"], 
input[type="password"], 
input[type="datetime"], 
input[type="datetime-local"], 
input[type="date"], 
input[type="month"], 
input[type="time"], 
input[type="week"], 
input[type="number"], 
input[type="email"], 
input[type="url"], 
input[type="search"], 
input[type="tel"], 
input[type="color"] {
  height: 26px;
  margin-bottom: 6px;
} 

select {
  height: 26px;
  margin-bottom: 6px;
}

div#Report-Dates {
  color: white;
  font-size: small;
  font-weight: italic;
}
div#Report-DateChoice {
   margin-left:18px;
   color: white;
   font-size: x-small;
} 

li.dropdown { 
   color: red;
}

/* The Modal (background) */
.madol {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 999; /* Sit on top */
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 800px; /* Full width */
  max-width: 100%; 
  height: 600px; /* Full height */
  max-height: 100%;
  /* overflow: auto; Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: #5DADE2;
}

/* Modal Content/Box */
.madol-content {
  background-color: #fefefe;
  margin: 1% auto; /* 15% from the top and centered */
  padding: 2px;
  border: none;
  width: 95%; /* Could be more or less, depending on screen size */
}

.madol-close { 
 color: #aaaaaa;
  float: right;
  font-size: 20px;
  font-weight: bold;
} 

/* Geo Distribution */
#geodistmap { height: 600px; }
.mygeocluster {
   width: 40px;
   height: 40px;
   background-color: greenyellow;
   text-align: center;
   font-size: 16px;
}

/* editable table */
.table-editable {
  position: relative;

  .glyphicon {
    font-size: 20px;
  }
}

.table-remove {
  color: #700;
  cursor: pointer;

  &:hover {
    color: #f00;
  }
}

.table-up, .table-down {
  color: #007;
  cursor: pointer;

  &:hover {
    color: #00f;
  }
}

.table-add {
  color: #070;
  cursor: pointer;
  position: absolute;
  top: 8px;
  right: 0;

  &:hover {
    color: #0b0;
  }
}

// Changed from table-condensed which is top left bottom right   4px 5px 4px 5px;
// TO                                                            3px 0px 3px 3px;
.table-small th,
.table-small td {
    padding: 3px 0px 3px 3px; 
}

// https://stackoverflow.com/questions/11708092/detecting-browser-autofill 
// DPO-10893
&:-webkit-autofill {
    // Expose a hook for JavaScript when auto fill is shown.
    // JavaScript can capture 'animationstart' events
    animation-name: onAutoFillStart;

    // Make the backgound color become yellow _really slowly_
    transition: background-color 50000s ease-in-out 0s;
}

&:not(:-webkit-autofill) {
    // Expose a hook for JS onAutoFillCancel
    // JavaScript can capture 'animationstart' events
    animation-name: onAutoFillCancel;
}


/*
MIT License

Copyright (c) 2018 Matthias Thalmann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
.tj_container *{
	position: relative;
	box-sizing: border-box;
}

.tj_container ul{
	padding-left: 2em;
	list-style-type: none;
}

.tj_container > ul:first-of-type{
	padding: 0;
}

.tj_container li span.tj_description{
	cursor: pointer;
	padding: 2px 5px;
	display: block;
	border-radius: 2px;

	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

	text-align: left;
}

.tj_container li span.tj_description:hover{
	background-color: #ccc;
}

.tj_container li span.tj_mod_icon, .tj_container li span.tj_icon{
	margin-right: 0.5em;
	display: inline-block;
}

.tj_container li span.tj_mod_icon, .tj_container li span.tj_mod_icon *{
	width: 1em;
}

.tj_container li span.tj_description.tj_leaf{
	margin-left: 1.5em;
}

.tj_container li[disabled=""]{
	color: #b5b5b5;
}

.tj_container li[disabled=""]:hover span.tj_description{
	cursor: default;
	background-color: inherit;
}

.tj_container span.tj_description.selected{
	background-color: #2b2b2b;
	color: #fff;
}

.tj_container span.tj_description.selected:hover{
	background-color: #606060;
}

.dropdown-toggle::after {
  display: none !important;
}

#scrollToggleBtn {
    width: 50px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 10px 16px;
    background-color: rgba(13, 110, 253, 0.4);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#scrollToggleBtn:hover {
    background-color: #0a58ca;
}

html body .select2-container--default .select2-selection--single .select2-selection__clear {
  line-height: 26px !important;
  font-size: 14px !important;
}

html body .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #808080 !important;
  line-height: 26px !important;
}

html body .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #808080 !important;
  line-height: 26px !important;
  font-size: 14px !important;
}

html body .select2-container .select2-selection--single {
  height: 26px !important;
}

.select2-results__options .select2-results__option--selectable {
  font-size: 13px !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #1474b8 !important;
  color: #fff !important;
}

.select2-search--dropdown .select2-search__field {
  margin-bottom: 0px !important;
}

.select2-results__option {
  line-height: 18px !important;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 301px !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 14px !important;
}

/* Hide default arrow */
html body .selection .select2-selection__arrow b {
  display: none;
}

/* Custom arrow mimicking native select */
html body .selection .select2-selection__arrow {
  width: auto;
  height: auto;
  position: relative;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

html body .selection .select2-selection__arrow::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-style: solid;
  border-width: 3px 3px 0 0;
  border-color: #808080;
  transform: rotate(135deg);
  margin-left: 4px;
  margin-top: 20px;
  vertical-align: middle;
}

html body .selection .select2-container--default .select2-selection--single {
  border: 1px solid #E4E9EE !important;
}

html body .selection .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #E4E9EE;
}

.select2-container--default .select2-selection--single, .select2-dropdown, .select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #E4E9EE !important;
}

.select2-dropdown {
  z-index: 900 !important;
  background-color: #f0f0f0 !important;
}

#data-table {
    /* width: 100%; */
    table-layout: fixed;
    border-collapse: collapse;
}

/* prevent content from breaking layout */
#data-table th, #data-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 8px;
}

/* horizontal scroll only when needed */
#data-table-wrapper {
    max-width: 100vw;
    overflow-x: auto;
}

/* Common chart loader */
.chart-loader {
    display: none;
    text-align: center;
    padding: 40px 0;
}
.chart-loader .chart-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #074579;
    border-radius: 50%;
    animation: chart-spin 0.8s linear infinite;
}
@keyframes chart-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}