* {
    box-sizing: border-box;
}

html {
    margin: 0;
    height: 100svh;
}

body {
    margin: 0;
    height: 100svh;
    min-height: 100svh;
    /* background-color: #FAFFFF; */
    font-family: Roboto, Verdana, Tahoma;
}

@supports (height: 100dvh) {
  html, body {
    height: 100dvh;
    min-height: 100dvh;
  }
}

label {
	font-weight: initial;
}

.ws_label {
	/* color: red;
	background-color: white; */
	font-size: 14px;
	border-radius: 5px;
	padding-left: 1px;
	padding-right: 1px;
}

.ws_slider {
	width: 53px !important;
	padding-top: 1px;
	padding-left: 2px;
}

.ui-dialog .ui-dialog-content {
	padding: 0 !important
}

.ui-widget.ui-widget-content {
    border: none;
}

/* .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    // font-family: Trebuchet MS,Tahoma,Verdana,Arial,sans-serif;
    // font-size: initial !important
} */

.current_weather {
	font-size: smaller !important;
	padding-left: 8px;
	padding-top: 5px;
	padding-bottom: 5px;
}

/* .ui-widget-content {
	background-color: white !important;
} */

.weatherdatatable {
	border-collapse: collapse;
}

.weatherdatatable td {
	padding-top: 0;
	padding-bottom: 0;
	padding-right: 8px;
}

.chosen-container .chosen-results {
	max-height: initial !important;
}

.chosen-container .chosen-results li {	
	padding: 2px 2px !important;
}

.chosen-container .chosen-results li.group-result {
	margin-left: 20px;
}

/* .chosen-container {
	/font -size: initial !important; 
} */

svg text {
	-webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
}

svg text::selection {
	background: none;
}

.bartooltip {
    border: 1px solid #2f7ed8;
    background-color: #fff;
    /* opacity: 0.8500000000000001; */
    padding: 4px 12px;
    border-radius: 3px;
    position: absolute;
    top:100px;
    box-shadow: 1px 1px 3px #666;
    font-size: 12px;
}

.smallbutton {
	padding: 1px 3px !important;
	font-size: 10px !important; 
	line-height: 13px !important; 
}

.picdialog > .ui-dialog-titlebar, .meteogramdialog > .ui-dialog-titlebar {
  /* background-color: #8EA882; */
  background-image: none;
  color: #000;
  padding: .4em 1em !important;
  border: none !important;
  border-bottom: 1px solid rgb(237, 237, 237, .2);
  color: white;
}

.picdialog > .ui-dialog-titlebar .ngdialog-close, .meteogramdialog > .ui-dialog-titlebar .ngdialog-close{
    right: 8px;
}


.selectDisable {-webkit-user-select: none;  -k-html-user-select: none;   -moz-user-select: none; -o-user-select: none;    user-select: none; }

.topcontrols {
    /* background-color: #d9d9d9; */
    /* height: 30px; */
    margin: 0;
    padding: 0;
    padding-left: 10px; 
    /* padding-top: 2px; */
    vertical-align: middle;
    font-size: 14px;
    font-family: Roboto,Verdana, Tahoma;
    /* display: none !important; */
}

.bottomcontrols {
    font-size: 12px;
    /* background-color: lightgray; */
    margin: 0;
    padding: 0;
    /* padding-left: 10px;  */
    vertical-align: middle;
    padding-top: 0px;
    position: relative;
}

#cyclecontrols {
    border-collapse: collapse;
    padding: 0;
    margin-bottom: 10px;
}

#cyclecontrols td{
    padding: 0;
    margin: 0;
}

#cycleribbon {
    display: block;
    width: 100%;
    height: 10px;
    padding: 0;
    margin: 0;
}

.ui-dialog-titlebar-close > .ui-icon {
    background-image: url(https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/images/ui-icons_222222_256x240.png);
    margin-top: 50%;
    margin-left: 50%;
    top: -8px;
    left: -9px;
}
.ui-dialog .ui-dialog-titlebar-close {
    width: 21px;
    height: 21px;
    font-family: 'Roboto', sans-serif;
}

.ui-dialog:not(.meteogramdialog):not(.picdialog) {
    font-family: 'Roboto', sans-serif;
    background: rgb(71,71,71) !important;
    padding: 0 24px 24px 24px !important;
    /* color: white !important; */
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.ui-dialog.meteogramdialog, .ui-dialog.picdialog {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.ui-dialog.picdialog{
    background: rgb(71,71,71) !important;
}

.ui-dialog.meteogramdialog{
    background: rgb(218 224 225) !important;
}


.ttk-cselect--disabled .ttk-cselect__button, .ttk-cselect__button_like:disabled { opacity: .6; cursor: not-allowed; }

#camera_weather {
    color: black;
    font-family: "Roboto", sans-serif;
}

/* body#allpics #camera_weather{
    bottom: 7px !important;
    left: 9px !important;
}

body#allsites #camera_weather{
    bottom: 7px !important;
} */


.titlebar-select {
	position: inherit !important;
	right: .3em;
	top: 50%;
	width: 20px;
	margin: -10px 0 0 0;
	padding: 1px;
	height: 20px;
}

.currentMeasurement td {
  border-bottom: 3px solid LightBlue;
}

div.login {
    width: 300px;
    height: 230px;
    background-color: lightgrey;

    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;

    margin: auto;
    padding: 10px;
}

.logindialog .ui-dialog-titlebar {
    display: none;
}

.logindialog .ui-dialog-content {
    margin: 14px;
    background-color: #FAFFFF !important;
}

/* .ui-widget-content {
    background: #FAFFFF !important;
} */


.logindialog button,
.logindialog span,
.logindialog label, 
.logindialog input {
    color: #444 !important;
    font-family:Helvetica,sans-serif !important;
    font-size:13px !important;
    line-height:15px !important;
}

.loginerror {
    color: red !important;
}

.statuserror {
    color: red !important;
}


.logindialog {
    background-color: #faffff !important;
    padding: 14px;
}


/* .nonpublic {
} */

.nonpublic_hidden {
	display: none !important;
}

.show_et_hidden {
	display: none;
}

.hidden {
	display: none;
}

.ngdialog.ngdialog-theme-default.loginpopup .ngdialog-content {
    width: fit-content !important;
    min-width: 450px !important;
}

.ngdialog.ngdialog-theme-default.feedbackpopup .ngdialog-content, .ngdialog.ngdialog-theme-default.applypopup .ngdialog-content {
    width: 100% !important;
    max-width: 800px !important;
    padding: 24px !important;
    padding-top: 0 !important;
    font-size: 14px;
    color: white;
    font-family: 'Roboto';
    line-height: normal;
}

.ngdialog.ngdialog-theme-default.feedbackpopup .title,  .ngdialog.ngdialog-theme-default.applypopup .title{
    display: flex;
    align-items: center;
    padding: 16px 0px 8px 0px;
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid rgb(237, 237, 237, .2);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 14px;
}

.feedbackpopup .ngdialog-close, .applypopup .ngdialog-close{
    top: 11px !important;
    right: 16px !important;
}


.ngdialog.ngdialog-theme-default.applypopup .ngdialog-content {
    width: 800px !important;
    margin-top: 20px;

}

.applypopup > .ngdialog-content {
    width: 800px !important;
}

.applypopup  {
    padding-top: 20px !important;
}

.ang {
    line-height: 20px;
    font-size: 13px;
    font-family: Roboto;
}

.clickable {
	cursor: pointer;
}

.clickable:hover {
    text-decoration: underline;
}

.allpics_placeholder {
	float: left;
}

table.rtable tr td {
    padding: 0;
    margin: 0;
    border-spacing: 10px;
    border-collapse: separate;
    padding-right: 10px;
}

table.rtable {
    padding: 0;
    margin: 0;
    border-spacing: 0;
    border-collapse: separate;
}

table.rtable > tbody > tr:nth-child(odd) {
	background-color: #eafafa;
}

table.userstatstable tr td {
    padding: 0;
    margin: 0;
    border-spacing: 10px;
    border-collapse: separate;
    padding-right: 10px;
    font-size: 12px;
}

table.userstatstable {
    padding: 0;
    margin: 0;
    border-spacing: 0;
    border-collapse: separate;
    font-size: 12px;
}

table.userstatstable > tbody > tr:nth-child(odd) {
    background-color: #eafafa;
}

div.down_arrow {
	margin-top: 1px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 10px 6px 0 6px;
	border-color: #005b11 transparent transparent transparent;
}
div.right_arrow {
	margin-top: 1px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #005b11;
}

.nonActive {
    color: grey;
}

.geolocation {
    display: inline-block;
    /*display: none !important;
    */position: relative;
    width: 51px;
    height: 51px;
    margin-bottom: 12px;
    cursor: pointer;
    text-shadow: 0 0 4px black;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    background-position: center center;
    background-size: 29px;
    background-repeat: no-repeat;
    -webkit-border-radius: var(--cs-radius);
    -moz-border-radius: var(--cs-radius);
    -ms-border-radius: var(--cs-radius);
    -o-border-radius: var(--cs-radius);
}
.tracking_on{
    background-image: url(images/ui_icons/geolocation_on.svg?v=1);
}
.tracking_off{
    background-image: url(images/ui_icons/geolocation_off.svg?v=1);
}

.tracking_on:hover {
    background-image: url(images/ui_icons/geolocation_on_hover.svg?v=1);
}
.tracking_off:hover {
    background-image: url(images/ui_icons/geolocation_off_hover.svg?v=1);
}

#report_table_wrapper {
    padding: 10px;
    text-align: 'left';
    white-space: nowrap;
}

#report_table thead th {
    font-size: 12px;
}

#report_table tbody td {
    font-size: 11px;
}

.report_input {
    font-family: tahoma;
    font-size: 14px;
    font-weight: bold;
    border-width: 1px;
    height: 33px;
    border-color: #98999e;
    border-radius: 3px;
    padding: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.report_selector {
    display: flex;
    flex-direction: column;
    font-size: 9px;
    color: #98999e;
}

.report_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

.report_column {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
  }

.dropdown {
    display: none;
    position: absolute;
    width: 100%;
    /* border: 1px solid; */
    max-height: 150px;
    overflow: auto;
    z-index: 1;
    padding: 6px 8px 10px;
}

.dropdown-item {
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 8px;
    /* background-color: #fff; */
}

.dropdown-item:hover {
    background-color: var(--cs-item-selected);
    /* font-weight: bold; */
}

.search_icon {
    background-image: url('img/search.svg');
    background-repeat: no-repeat;
    background-position: right;
}

[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    color: white;
    height: 8px;
    width: 8px;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZmlsbD0icmdiKDIxMywyMTMsMjEzKSIgZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);
    background-size: 8px 8px;
    opacity: 1;
}

#vehicle_locate {
    display: none;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    margin-right: 18px;
    cursor: default;
    z-index: 1
}

table.dataTable thead th { 
    white-space: nowrap;
}

.dataTables_filter input {
    padding-left: 8px!important;
    margin-left: 0px !important; 
}

.treeselect-input {
    max-width: 100%;
    min-height: 30px !important;
    border-color: #98999e!important;  
    color: black;
    font-weight: bold;
    padding: 5px !important;
}

.treeselect-input__arrow svg{
    stroke: black !important;
}

.treeselect-input__clear svg{
    stroke: black !important;
}

.treeselect-list__item-icon svg{
    stroke: #646666 !important;
}

.treeselect-list__item-checkbox-container{
    background-color: #08c !important;
}

.treeselect-list__item-label{
    color: black;
}

.treeselect-list__item--checked {
    background-color: white !important;
}
.datetimerange{
    border-style: solid;
    border-color: #98999e;
    padding-block: 0px;
    min-height: 33px;
}

.dropdown-container{
    position: relative;
    display: inline-block;
}

.dropdown-icon {
    position: absolute;
    top: 20px;
    right: 8px;
    font-weight: lighter;
    pointer-events: none;
}
.table-button {
    height: 33px;
    border: 1px solid;
    border-color: #98999e;
    border-radius: 3px;
    margin-bottom: 5px;
}

.mapchart-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    width: 100%;
    background-color: white;
}

.subtable-container{
    overflow: auto;
    width: 100%
}

.main-container{
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}
  
.top-row {
    display: flex;
    width: 100%;
}

.chart-container {
    flex: 1;
    max-height: 150px;
    overflow: hidden;
} 

.chart-canvas {
    max-width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
}

.segments-container {
    overflow: hidden;
    display: flex;
    width: 500px;
    flex-direction: column;
    cursor: grab;
    transition: flex-basis 0.3s ease;
}

.legend-container {
    background-color: white;
    padding: 10px;
    overflow: hidden;
    gap: 8px;
    width: 350px;
    transition: flex-basis 0.3s ease;
}

.map-container {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
}

.map-view {
    flex: 1;
    height: 100%;
    width: 100%;
    border: 1px solid white;
}

.map-view-hidden {
    display: none;
}
.table-wrapper {
    overflow-y: auto;
    overflow-x: hidden;
    white-space:nowrap;
    flex: 1;
}

.segments-hidden {
    transform: translateX(-100%);
    flex-basis: 0;
}

.legend-hidden {
    transform: translateX(100%);
    flex-basis: 0;
    padding: 0;
}


.fixed-header-table {
    width: 100%;
    border-collapse: collapse;
}

.fixed-header-table thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 5;
    box-shadow: inset 0 -1px 0 #04233d;
    padding: 8px;
    text-align: left;
}

.fixed-header-table td {
    padding: 8px;
    border: 1px solid #ccc;
}

.fullscreen {
    height: 100% !important;
    width: 100% !important;
}

.fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 35px;
    width: 35px;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    text-align: center;
    z-index: 999;
}

.fa-expand {
    color: #565656;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 1px;
}

.expanded::before {
    content: '▼' !important;
    color: #565656;
}

  .chart-zoom-reset-btn {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #565656;
    background-color: #f0f0f0;
    border: 1px solid #c5c5c5;
    border-radius: 3px;
    padding: 4px;
    cursor: pointer;
    z-index: 10;
}

.chart-toggle-button {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 6px 12px;
    background: #f9f9f9;
    border: 2px solid #f9f9f9;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.segments-toggle-button {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 12px 6px;
    background: #f9f9f9;
    border: 2px solid #f9f9f9;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
}

.legend-toggle-button {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 12px 6px;
    background: #f9f9f9;
    border: 2px solid #f9f9f9;
    border-radius: 6px 0 0 6px; 
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.section-info {
    position: absolute;
    right: 8px;
    margin-top: 8px;
    background-color: #fff;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: none;
}

.map-zoom-reset-btn {
    position: absolute;
    top: 8px;
    right: 50px;
    height: 35px;
    width: 35px;
    font-size: 1.5em;
    color: #565656;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    z-index: 1000;
}

.basemap-btn {
    height: 35px;
    width: 35px;
    font-size: 1.5em;
    color: #565656;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    z-index: 1000;
}

.button-row button{
    transition: all 0.2s ease;
}

.button-row button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.button-row button:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.trackLengthSelect {
    position: absolute;
    right: 91px;
    height: 35px;
    min-width: 180px;
    max-width: 190px;
    font-weight: bold;
    color: #565656;
    background-color: #fff;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    margin-top: 8px;
    z-index: 1000;
}

.tooltip-custom,
.usage-tooltip-custom {
    position: absolute;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    padding: 5px;
    font-size: 14px;
    z-index: 1000;
    white-space: nowrap;
    display: none;
    pointer-events: none;
    will-change: transform;
}

#tooltip-map {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
    pointer-events: none;
    white-space: nowrap;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup-content {
    background: white;
    width: 400px;
    padding: 15px;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.popup-body {
    max-height: 400px;
    overflow-y: auto; 
    margin-top: 30px;
    padding-right: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: black;
}

.chat-log {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 14px;
    color: #444;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.chat-input-wrapper button {
    padding: 10px 15px;
    border: none;
    background: #04233d;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.chat-input-wrapper button:hover {
    background: #06345a;
}


.chat-message {
    margin-bottom: 12px;
}

.chat-username {
    font-size: 14px;
    color: #04233d;
    font-weight: bold;
}

.chat-text {
    font-size: 14px;
    color: #000;
}

.chat-timestamp {
    font-size: 10px;
    color: #888;
    text-align: right;
    margin-top: 2px;
}

td.dt-control.arrow-colored::before {
    border-left-color: #04233d !important;
    border-top-color: transparent !important;
}
tr.dt-hasChild td.dt-control.arrow-colored::before {
    border-left-color: transparent !important;
    border-top-color: #04233d !important;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 50px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #04233d;
}

input:checked + .slider:before {
    transform: translateX(14px);
}

.toggle-container {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.toggle-container label {
    margin-right: 10px;
    display: inline-block;
    margin: 10px;
}

.column-toggle .settings-toggle {
    cursor: pointer;
}

.icon-button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 25%;
    background-color: white;
    cursor: pointer;
    outline: none;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.icon-button img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
}

.icon-button:hover {
    box-shadow: 0 0 0 2px #caced3;
    background-color: #e3e7ec;
}

.header-container {
    display: none;
    width: 100%;
    height: 100px;
    padding: 10px;
}
  
.header-dropdown {
    width: 305px;
    flex-shrink: 0;
    vertical-align: middle;
}
  
.header-slider {
    flex: 1;
    padding: 20px 60px 0px 20px;
}

  .noUi-tooltip {
    font-size: 12px;
    font-weight: bold;
  }

  .noUi-handle {
    background-color: #04233d !important;
    border-radius: 50%;
  }

  .noUi-target {
    border-color: #98999e !important;
  }

#wrm_status_table thead th {
    font-size: 12px;
}

#wrm_status_table tbody td {
    font-size: 11px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

.main-content{ 
      flex: 1;
      overflow-y: auto;
      background: white;
}

.slide-panel {
    flex: 0 0 auto;
    max-height: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    transition: max-height .3s ease;
    background: #f4f4f4;
    box-shadow: 0 -2px 6px rgba(0,0,0,.2);
    display: flex;
    flex-direction: column;
}

.slide-panel.open {
    max-height: 80vh;
}

.slide-panel .header {
    height: 40px;
    line-height: 40px;
    padding: 0 1rem;
    background: #e7e7e7;
    font-family: Verdana, Tahoma;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    }
    .slide-panel .header .arrow {
    display: inline-block;
    margin-right: .5rem;
    transition: transform .3s ease;
    color: #727372;
    }
    .slide-panel.open .header .arrow {
    transform: rotate(180deg);
    color: #727372;
}

.slide-panel .body {
    padding: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1;
    background-image: linear-gradient(
        to bottom,
        #e7e7e7 5%,
        white   85%
    );
}

.sections_elem{
    display: none;
}

.dropdownsearch-container {
    color: black;
    padding: 0px;
}

.dropdownsearch-toggle {
    padding: 7px 30px 7px 10px;
    border: 1px solid #98999e;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.dropdownsearch-toggle::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #555;
    transform: translateY(-50%);
}

.dropdownsearch-menu {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    z-index: 10;
    max-height: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dropdownsearch-menu input {
    width: calc(100% - 16px);
    margin: 8px;
    padding: 6px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
}

.dropdownsearch-options {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
  }

.dropdownsearch-option {
    padding: 6px 12px;
    font-weight: 100;
    cursor: pointer;
}

.dropdownsearch-option:hover {
    color: white;
    background-color: #1967d2;
}

.dashboard-main {
    padding: 20px;
    margin: auto;
}

.dashboard-dropdown-row {
    margin: 10px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
.dashboard-info {
    color:#04233d;
    font-size: 33px;
    padding-top: 10px;
    padding-right: 10px;
    margin-left: auto;
    cursor: pointer;
}

.tile-info-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 40px repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.dashboard-tile {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    min-height: 250px;
}

.dashboard-row-header {
    writing-mode: vertical-rl; /* vertical text */
    transform: rotate(180deg); /* rotate to read from bottom up */
    text-align: center;
    font-weight: bold;
    font-size: 1.4rem;
    color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    letter-spacing: 2px;
  }

.dashboard-tile-header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    flex-shrink: 0;
}

.dashboard-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    flex: 1;   
}

.dashboard-tile:hover {
    transform: translateY(-4px);    
}

.dashboard-tile-body {
    display: flex;
    flex: 1;
    justify-content: center;
    width: 100%;
}

.dashboard-tile-footer {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
  
.dashboard-number {
    font-size: 2rem;
    font-weight: bold;
}

.dashboard-icon {
    max-width: 200px;
    max-height: 200px;
}

.dashboard-icon-exclamation {
    padding-right: 10px;
    padding-top: 4px;
    height: 196px;
}

.dashboard-icon-clock {
    padding-top: 10px;
    padding-right: 20px;
    height: 200px;
}

.dashboard-phrase {
    display: flex;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1.4;
    align-items: center;
}

.dashboard-container {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
.dashboard-line {
    display: flex;
    justify-content: flex-start;
    align-self: flex-start;
    align-items: baseline;
    margin: 4px 0;              
    font-size: 0.95rem;
    color: #333;
}
  
.dashboard-line-label {
    font-weight: bold;
    width: 80px;
    flex-shrink: 0;
}
  
.next-event-label {
    width: 100px;
}
  
.dashboard-line-text {
    font-weight: normal;
    padding-left: 20px;
}

.dashboard-dropdown select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
}


.dashboard-checkbox {
    height: 24px;
    width: 24px;
    accent-color: #04233d;
    margin: 4px 0px 4px 0px;
}

.forecast-table {
    display: none;
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.9rem;
}
  
.forecast-table th,
.forecast-table td {
    padding: 6px 4px;
}
  
.forecast-table thead {
    font-weight: bold;
}
  
.forecast-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.phase-reason {
    width: 64px;
    height: 64px;
}
  
.phase-symbol{
    display: inline-block;
    height: 30px;
    width: 30px;
}
  
.chart-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 10px;
    font-size: 0.9rem;
}
  
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
  
.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

input.accepted-checkbox {
    accent-color: #ccc;
    margin: 0;
}

input.accepted-checkbox.manual {
    accent-color: #04233d;
    margin: 0; 
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 0;
    border: 1px solid #ccc;
}

.checkbox-wrapper:has(.accepted-checkbox.manual) {
    border: 1px solid #04233d;
    box-shadow: 0 0 4px rgba(4, 35, 61, 1);
}

select.reason-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
}

select.manual {
    border: 1px solid #04233d;
    box-shadow: 0 0 4px rgba(4, 35, 61, 1);
    border-radius: 4px;
}

.classification-cell {
    padding: 4px;
    vertical-align: middle;
}

.classification-bar {
    display: flex;
    width: 100%;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar {
    display: flex;
    width: 100%;
    height: 100%;
}

.usage-segment {
    height: 100%;
}

/* Kristjan */

header {
    display: none;
    padding-top: 0px;
    padding-bottom: 14px;
    /* background-color: #d9d9d9; */
}

/* #maplayers {
    position: absolute;
    z-index: 1;
    top: 50px;
    font-size: 10px;
} */

#loadingpanel {
    position:relative;
    height: 50px;
    z-index: 3;
}

.iflex {
    display: inline-flex;
}

.rightSide {
    display: inline-flex;
    float: right;
}

.rightSide div:nth-of-type(1){
    order: 3;
}
.rightSide div:nth-of-type(2){
    order: 1;
}
.rightSide div:nth-of-type(3){
    order: 2;
}

#rightButtons {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 10px;
    right: 20px;
    gap: 15px;
    z-index: 1;
}

#rightButtons > div {
    display: flex;
    padding: 5px;
    border-radius: 2px;
    background-color: rgb(255, 255, 255); 
    box-shadow: rgb(0 0 0 / 30%) 0px 1px 4px;
    /* cursor : pointer; */
    justify-content: center;
    align-items: center;
}

.material-symbols-outlined {
    font-size: 36px;
}

div.close {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 28px;
    height: 24px;
    padding: 5px 10px;
    background-color: white;
    border-radius: 5px;
    display: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.mobile {
    display: none;
}

.onlyMobile {
    display: none;
}

#liveTimeMobile {
    display: none;
}

div.layer_selector_subheaders::after{
    content: ":";
}


/* MOBIILI ASJAD */

@media (min-width: 1181px){
    .controls {
        display: block;
    }

}

@media (max-width: 1044px){
    #toolbar.topcontrols > div:first-of-type {
        order:2;
    }
}



@media (max-width: 1180px){
    #controls, #legendContainer {
        top: 0;
        display: none !important;
        flex-direction: column;
        position: absolute !important;
        z-index: 2;
        padding: 20px;
        /* padding-right: 40px; */
        height: auto;
        width: 80vw;
        gap: 10px;
        margin: 10px;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        overflow-y: auto;
        background-color: #d9d9d9;
        max-height: 97%;
    }

    /* #bottomcontrols {
        margin-top: 11px;
    } */

    #mobileTimeSelector {
        background-color: white;
        display: none;
        justify-content: center;
        align-items: center;
        min-height: 35px;
        width: 100px;
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 20px;
        box-shadow: rgb(0 0 0 / 30%) 0px 1px 4px;
    }

    select:not(#siteselector, #temperature_type, #temp_fc_source) {
        background-color: rgb(233, 233, 234);
        border-radius: 10px;
        border: 1px solid white;
        display: flex;
        margin-bottom: 5px;
        width: 100%;
        min-height: 35px;
        align-items: center;
        font-size: 14px;
    }

    /* .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable.meteogramdialog {
        width: 100% !important;
    } */
    
    #kaur, #forecast_source_wrapper, .satbuttons, .maptype {
        margin-right: 0 !important;
    }

    .maptype {
        margin-left: 0 !important;
        width: unset !important;
        order: 1 !important;
    }

    #liveTimeMobile {
        display: none;
        position: absolute;
        right: 10px;
        bottom: 120px;
        width:auto;
        height: 32px;
        padding: 5px;
        border-radius: 2px;
        background-color: rgb(255, 255, 255);
        box-shadow: rgb(0 0 0 / 30%) 0px 1px 4px;
        /* cursor: pointer; */
        justify-content: center;
        align-items: center;
        margin-left: 0;
        cursor: pointer;
    }

    #liveTimeMobile.show {
        display: inline-flex;
    }

    #help_dialog_img{
        width: 100%;
        height: auto;
    }

    [id*="sources_dialog_"] > div {
        width: 100% !important;
    }

    #controls::-webkit-scrollbar, #maplayers::-webkit-scrollbar, #legendContainer::-webkit-scrollbar, .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable::-webkit-scrollbar {
        display: none;
      }
      
      /* Hide scrollbar for IE, Edge and Firefox */
    #controls, #maplayers, #legendContainer, .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    }

    #controls.show, #maplayers.show, #legendContainer.show  {
        display: flex !important;
    }

    #maplayers_collapsible_content{
        display: flex !important;
        flex-direction: column;
    }

    /* #legendContainer .gmnoprint {
        display: block !important;
    } */

    #legendContainer .maplegend_content,
    #legendContainer .service_legend_content,
    #legendContainer .radarlegend_content,
    #legendContainer .custom-control {
        display: block !important;
        background-color: rgb(233, 233, 234);
        border-radius: 10px;
        border: 1px solid white;
        margin-bottom: 5px;
        width: 100%;
        min-height: 35px;
        align-items: center;
        font-size: 14px;
        padding: 5px;
    }

    #legendContainer .collapsible_header {
        display: none;
    }

    #maplayers .custom-control, #legendContainer .custom-control {
        background-color: transparent;
        border: none;
        box-shadow: none;
        cursor: default;
    }
    



    #controls > span, #controls > div {
        order: 2;
    }

    #kaur, #forecast_source_wrapper, .satbuttons {
        order: 1 !important;
    }

    .chosen-container, #controls select {
        width: 100% !important;
    }

    #logo {
        display: none !important;
    }

    .mobile.label {
        font-size: 85%;
        color: rgb(119 119 119);
    }

    div.iflex > span:not(:empty, .nonpublic_hidden), #maplayers .controls  div:not(.layer_selector_subheaders, .fc) {
        background-color: rgb(233, 233, 234);
        border-radius: 10px;
        border: 1px solid white;
        display: flex;
        margin-bottom: 5px;
        width: 100%;
        min-height: 35px;
        align-items: center;
        font-size: 14px;
    }



    #legendContainer span.label{
        font-size: 10px;
    }

    #legendContainer table {
        width: unset !important;
        margin: 0 auto;
        font-size: 14px;
    }

    #legendContainer span.label {
        display: block;
    }

    #legendContainer .custom-control-container {
        margin: 0;
    }
    /* div.layer_selector_subheaders::after {
        background-color: white;
        width: 100%;
    } */

    div.layer_selector_subheaders::after{
        content: "";
    }

    #layer_maintenence_div {
        display: flex;
        flex-direction: column;
    }

    div.iflex > span a {
        width: 100%;
        display: flex;
        align-items: center;
    }

    div.iflex img {
        margin-top: 0 !important;
        margin-left: 10px;
        width: 24px;
        float: left;
    }

    div.iflex img + span {
        text-align: center;
        width: 100%;
    }

    div.iflex#login {
        margin-top: 20px;
    }

    #b_logout, #b_login, #b_username  {
        /* display: inline-flex; */
        /* align-items: center;
        justify-content: center; */
        font-size: 18px;
        margin: 10px 0px;
    }

    .clickable:hover{
        text-decoration: none;
    }

    .iflex.column {
        flex-direction: column;
    }

    .iflex.column.i24 a>span {
        width: calc(100% - 40px);
    }

    /* .mobile {
        display: inline-block;
    } */


    .nonpublic_hidden {
        display: none !important;
    }

    .mobile:not(.label){
        margin-left: -17px;
        width: calc(100% - 40px);
    }

    .gm-bundled-control, .gm-style-mtc-bbw {
        display: none;
    }

    .rightSide {
        flex-direction: column;
        margin-top: -10px;
    }

    .rightSide div:nth-of-type(1){
        order: 2;
    }
    .rightSide div:nth-of-type(2){
        order: 1;
    }
    .rightSide div:nth-of-type(3){
        order: 3;
    }

    div.close {
        display: block;
    }
    
    header {
        padding: 0;
    }

    .loader {
        top: 0;
    }
    .fc {
        flex-direction: column;
    }

    #rightButtons {
        display: flex;
    }

    #rightButtons.desktop {
        right: unset;
        left: 20px;
    }

    #rightButtons.desktop > div {
        cursor: pointer;
    }

    #rightButtons.desktop  #legendButton {
        display: none !important;
    }


    /* #right_bottom_container, #maplegend_radar {
        display: none !important;
    } */

    .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable:not(.meteogramdialog, .info-dialog, .textforecastdialog) {
        width: auto !important;
        top: 50% !important;
        left: 50% !important;
        overflow: auto;
        height: auto !important;
        max-height: 100%;
        max-width: 100%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
}

    .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable.info-dialog,  .ui-dialog.ui-corner-all.ui-widget.ui-widget-content.ui-front.ui-draggable.textforecastdialog{
        width: 90% !important;
        max-height: 90vh !important;
        overflow: hidden;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
        -o-transform: translate(-50%, -50%);
    }

    .info-dialog .ui-dialog-content, .textforecastdialog .ui-dialog-content {
        overflow: auto !important;
  /* lahuta pealkirjariba kõrgus (kohanda px vastavalt tegelikule) */
        max-height: calc(90vh - 48px) !important;
    }

    #textforecast_wrapper {
        width: 100% !important;
        scrollbar-gutter: stable both-edges;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.35) transparent;
    }

    /* #sat_image_wrapper, #sat_image_wrapper img, #camera_image_wrapper, #camera_image_wrapper img  {
        height: auto !important;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    } */

    #sat_image_wrapper img, #camera_image_wrapper img {
        padding-right: 0px !important;
    }

    #camera_weather {
        height: unset !important;
        /* left: 0 !important; */
    }

    .geolocation.loggedIn {
        /* bottom: 180px !important; */
        display: flex;
    }

    .hallTaust {
        display: none;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.6);
    }


    @media (hover: hover) and (pointer: fine) {
        #playControlsM {
            right: 50px;
        }

        #live_image2 {
            right: 50px !important;
        }
    }

}




.tooltip {
    position: relative;
    display: inline-block;
  }

  .tooltip .tooltip-text {
    visibility: hidden;
    width: max-content;
    background-color: rgb(0 0 0 / 41%);
    color: white;
    text-align: center;
    padding: 5px 8px;
    border-radius: 4px;
    position: absolute;
    z-index: 10;
    bottom: -100%;/* Position above image */
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
  }

  .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

  #btn-group-weather {
    margin-right: 20px;
  }

  #btn-group-weather button {
    padding: 5px 10px;
    margin: 1px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #f1f1f1;
    color: black;
    transition: 0.2s;
    min-width: 57px;
    font-family: 'Roboto', sans-serif;
    -webkit-transition: 0.2s;
    -moz-transition: 0.2s;
    -ms-transition: 0.2s;
    -o-transition: 0.2s;
}

#btn-group-weather button.active {
    background-color: rgb(70,70,70);
    color: white;
}

.weatherInfo {
    display: flex;
    align-items: center;
}

#pictureTime {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: white;
    display: block;
    padding: 8px 2px;
    font-size: 14px;
    height: 17px;
}

#map.article {
    position: absolute !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    contain: layout paint;
}

/* #map.article > div:first-of-type {
    height: calc(100% - 50px) !important;
    top: 50px !important;
} */

footer {
    z-index: 1;
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .8) 100%); */
    /* background: linear-gradient(180deg,rgba(0, 0, 0, 0) 31%,rgba(0, 0, 0, 0.4) 54%,rgba(0, 0, 0, 0.78) 74%,rgba(0,0,0,0.9) 100%); */
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 31%, rgb(0 0 0 / 40%) 35%, rgba(0, 0, 0, 0.8) 75%, rgba(0, 0, 0, 0.9) 100%);
    color:white;
}

header {
    z-index: 1;
    /* background: linear-gradient(180deg,rgba(0, 0, 0, .8) 0%,  rgba(0, 0, 0, 0) 100%); */
    /* min-height: 76px; */
    color: white;
}

.gm-bundled-control-on-bottom, .gm-style-mtc-bbw {
    display: none;
}

.loader {
    top: 0;
}

#loadingpanel, #loading_g {
    position: absolute;
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    left: 0;
    top: 5px;
    width: 245px;
    border-radius: 0px 20px 20px 0px;
    padding: 20px;
}

#loadingpanel img {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

/* asenda olemasolev #sliderWrap ja #sliderIcons plokk nendega */
#sliderWrap {
    visibility: hidden;
    align-items: center;
    justify-content: center;
    position: relative;            /* JS paneb siia dünaamilise paddingu */
}

svg#slider {
  display: block !important;
  margin: 0;
  max-width: 100%;                  /* was 0 auto; remove auto-centering */
  overflow: visible;
}

#sliderIcons {
    position: absolute;
    left: 0;
    bottom: 10px;
    display: flex;
    gap: 24px;
}

/* kui kasutasid varem margin-left: 24px igal ikoonil, eemalda see */
#sliderIcons > img,
#sliderIcons > input[type="image"], #live_image2 {
    height: 36px;
    width: 36px;
    /* margin-left: 24px;  <-- eemalda/kommenteeri, sest kasutame gap’i */
}

:root {
    --svgHeight: 60px;
    --fade: 45px;
}

#leftControls {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;

}

:root {
    --left-row-height: 76px; /* ridade kõrgus */
    --left-control-icon: 36px; /* ikoonide suurus */
}

#leftControls > div, #leftControls > a {
    height: var(--left-row-height, 76px);
    width: var(--left-row-height, 76px);
    align-items: center;
    justify-content: center;
    display: flex;
    /* background: linear-gradient(180deg, rgba(61,61,61,0.53) 0%, rgba(0,0,0,0.64) 100%); */
}

#mapType {

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;

    cursor: pointer;
    text-shadow: 0 0 4px black;
    /* box-shadow: 0 1px 2px rgba(0, 0, 0, .35); */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
}

#mapButtons {
    visibility: hidden;
    position: absolute;
    z-index: 4;
    right: 5px;
    bottom: 0;
    margin-bottom: calc(var(--svgHeight) + 10px);
}

#mapType > img {
    height: 27px !important;
    width: 27px !important;
}

#leftControls > div#user {
    display: flex;
}

#leftControls > div{ position:relative; }
#leftControls > div::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background: linear-gradient(180deg, rgba(61,61,61,0.53) 0%, rgba(0,0,0,0.64) 100%);
}
#leftControls > div::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background:#000; opacity:0; transition:opacity 180ms ease;
}
#leftControls > div:active::after,
#leftControls > div.active::after{
  opacity:.7; /* lülita must “tugi” sisse */
}
#leftControls > div > *{ position:relative; z-index:1; } /* ikoonid üleval */

#leftControls > div > img, #mapType > img {
    height: var(--left-control-icon, 36px);
    width: var(--left-control-icon, 36px);
    filter: brightness(1.2) contrast(1.05); /* valikuline tuunimine */
}

#leftSidebar{
  width: calc(288px + var(--left-row-height, 76px)); 
  height: 100svh;
  max-height: calc(100svh - var(--svgHeight));
  background-color: rgb(60 60 59);
  display: none;
  position: absolute;
  z-index: 2;
  right: 0;
  padding: 16px;
  padding-right: calc(16px + var(--left-row-height, 76px));
  --safeLeft: 0px;   

  /* 2 maskikihti:
     1) vasakul täisnähtav riba
     2) ülejäänul vertikaalne alt-fade */
  -webkit-mask-image:
    linear-gradient(#000, #000000), /* vasak riba */ linear-gradient(to bottom, #000000 0, #000 calc(100% - var(--fade) - 15px), rgb(0 0 0 / 90%) calc(100% - 3px), rgb(0 0 0 / 60%) 100%);
  mask-image:
    linear-gradient(#000, #000000), /* vasak riba */ linear-gradient(to bottom, #000000 0, #000 calc(100% - var(--fade) - 15px), rgb(0 0 0 / 90%) calc(100% - 3px), rgb(0 0 0 / 60%) 100%);

  /* mõõdud ja paigutus: riba vasakul, fade paremal */
  -webkit-mask-size: var(--safeLeft) 100%, calc(100% - var(--safeLeft)) 100%;
  mask-size:         var(--safeLeft) 100%, calc(100% - var(--safeLeft)) 100%;
  -webkit-mask-position: left top, right top;
  mask-position:          left top, right top;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat:         no-repeat, no-repeat;

     
}

@supports (height: 100dvh) {
  #leftSidebar{
    height: 100dvh;
    max-height: calc(100dvh - var(--svgHeight));
  }
}

 #leftSidebar > div {
    width: 100%;
    padding-bottom: 43px;
 }

 #leftSidebar.open {
    display: flex;
}


#leftSidebar > div > h1 {
    color: white;
    font-weight: 500;
    font-size: 22px;
    margin-top: 0px;
    margin-bottom: 16px;
}


#datatypeList, #leftSidebar > div > div{
  display: block;
  font: 14px/1.35 Roboto, sans-serif;
  color: #cfcfcf;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.35) transparent;
  max-height: calc(100% - 48px);
  padding: 0px 3px;
}

#leftSidebar > div > div > div {
  padding: 6px 0;
  color: #d5d5d5;
  /* cursor: pointer; */
  /* user-select: none; */
}


#leftSidebar a, #leftSidebar a:visited, .ngdialog-content a, .ngdialog-content a:visited {
    color: #d5d5d5;
}

#kihid .dl-group:not(:first-of-type) { margin-top: 14px; }
/* .dl-group:first-child { margin-top: -30px; } */

/* #kihid .dl-group:nth-of-type(2) {margin-top: 0;} */

.dl-group-title {
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa0a6 !important;  
  border-bottom: 1px solid #9aa0a6;         /* helehall pealkiri */
  margin: 0 0 10px 0;
}

.dl-item {
  padding: 6px 0;
  color: #d5d5d5;
  cursor: pointer;
  user-select: none;
}

.dl-item:hover, .clickable:hover, #leftSidebar a:hover, #leftSidebar .layer-row:hover, #leftSidebar  > #kihid label:hover, .ngdialog-content a:hover { color: #ffffff !important; text-decoration: none; }
.dl-item.active { color: #ffffff; font-weight: 600; }
.dl-item.nonpublic { opacity: .85; } /* kui tahad neid veidi tuhmimaks */

/* (valikuline) peida select visuaalselt, kuid jäta kättesaadavaks */
.select-visually-hidden {
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* === Üldine peidetud-scroll + noolevihjed kahele konteinerile === */
:is(#datatypeList, #leftSidebar > div > div){
  position: relative;
  height: 100%;
  overflow: auto;
  -ms-overflow-style: none;   /* IE/Edge legacy */
  scrollbar-width: none;      /* Firefox */
  padding-bottom: 0;       /* ruum alumisele noolele */
}
:is(#datatypeList, #leftSidebar > div > div)::-webkit-scrollbar{ width:0; height:0; }

/* Õrnad gradient-vihjed, kui on veel sisu üleval/all */
:is(#datatypeList, #leftSidebar > div > div).has-more-top::before,
:is(#datatypeList, #leftSidebar > div > div).has-more-bottom::after{
  content:"";
  position:absolute; left:0; right:0; height:28px; pointer-events:none; z-index:2;
}
:is(#datatypeList, #leftSidebar > div > div).has-more-top::before{
  top:0;
  /* background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0)); */
}
:is(#datatypeList, #leftSidebar > div > div).has-more-bottom::after{
  bottom:0;
  /* background: linear-gradient(to top, rgba(0,0,0,.25), rgba(0,0,0,0)); */
}



/* Custom dropdowni paneel ei tohi scrolli "läbi anda" (wheel/touch-chain) */
.ttk-cselect__panel,
.ttk-cselect__list{
  overscroll-behavior: contain;      /* katkestab scroll-chaining’u */
  -webkit-overflow-scrolling: touch;
}

/* globaalne overlay-kiht (pointer-events: none; et ei segaks klikke) */
#scroll-hints-layer {
  position: fixed;
  inset: 0 0 auto 0;       /* ankur ekraani külge */
  pointer-events: none;
  z-index: 99 !important;
}

/* nooled – lubame kliki ainult nooltele */
#scroll-hints-layer .scroll-arrow {
  position: fixed;         /* ⟵ tähtis: ei liigu elemendi scrolliga */
  width: 28px; height: 28px; border-radius: 50%;
  background: rgb(60 60 58);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: none;
  align-items:center; justify-content:center;
  opacity: .95; visibility: visible;
  pointer-events: auto;    /* ainult nool ise on klikitav */
  transition: transform .05s;
}
#scroll-hints-layer .scroll-arrow::before{
  content:"";
  width: 16px; height: 16px;
  background: center/contain no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23EAECEE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  opacity: .9;
}
#scroll-hints-layer .scroll-arrow.top    { transform: rotate(180deg); -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); }
#scroll-hints-layer .scroll-arrow:active { transform: scale(.98); }
#scroll-hints-layer .scroll-arrow.top:active { transform: rotate(180deg) scale(.98); }



:root{
  --cb-size: 18px;
  --cb-radius: 4px;
  --cb-border: #9aa0a6;          /* raam (unchecked) */
  --cb-hover:  #b8bdc3;          /* hoveril raam */
  --cb-bg:     transparent;      /* unchecked taust */
  --cb-checked-bg: #ffffff;      /* checked taust */
  --cb-check:  #111;             /* linnu värv */
  --cb-focus:  rgba(255,255,255,.35);
  --cb-text:   #d5d5d5;
  --cb-text-on:#ffffff;
}

/* GLOBAL custom checkbox – kehtib kõigile, v.a. [data-native] */
:where(input[type="checkbox"]){
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: var(--cb-size); height: var(--cb-size);
  border: 2px solid var(--cb-border);
  border-radius: var(--cb-radius);
  background: var(--cb-bg);
  display: inline-grid; place-content: center;
  vertical-align: middle;
  margin: 0; /* väldi erinevaid default margin'eid */
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
  /* align-content: baseline; */
  justify-content: center;
}

/* linnuke */
:where(input[type="checkbox"])::before{
  content: "";
  width: 10px; height: 6px;
  border: 2px solid transparent;
  border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease-in-out, border-color .12s ease-in-out;
}

.dashboard-main :where(input[type="checkbox"]), .dashboard-main :where(input[type="checkbox"])::before, #snowreport_page :where(input[type="checkbox"]), #snowreport_page :where(input[type="checkbox"])::before {
    background-color: initial;
    cursor: default;
    appearance: auto;
    box-sizing: border-box;
    margin: 3px 3px 3px 4px;
    padding: initial;
    border: initial;
}

/* hover/focus */
:where(input[type="checkbox"]):hover{ border-color: var(--cb-hover); }
:where(input[type="checkbox"]):focus{ outline: none; box-shadow: 0 0 0 3px var(--cb-focus); }

/* checked */
:where(input[type="checkbox"]):checked{
  background: var(--cb-checked-bg);
  border-color: var(--cb-checked-bg);
}
:where(input[type="checkbox"]):checked::before{
  border-color: var(--cb-check);
  transform: rotate(-45deg) scale(1);
  position: relative;
  bottom: 2px;
}

/* disabled */
:where(input[type="checkbox"]):disabled{
  opacity: .55; cursor: not-allowed;
}

/* Kui label tuleb kohe järel – tee tekst heledam */
:where(input[type="checkbox"]) + label{
  margin-left: 8px; color: var(--cb-text);
  cursor: pointer;
  line-height: 0;
}
:where(input[type="checkbox"]):checked + label{
  color: var(--cb-text-on); font-weight: 500; line-height: 0;
}

/* Kui checkbox on labeli sees (wrap), kasuta :has – progressive enhancement */
label:has(> input[type="checkbox"]:checked){
  color: var(--cb-text-on); font-weight: 500;
}

#leftSidebar #kihid div[id^="layer_"] {
    padding: 5px 0px;
}

/* #forecast_source_wrapper{
    display: none !important;
} */

div#chosenParameter {
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%); */
    text-shadow: 0 0 7px black;
    font-size: 24px;
}

div#chosenSource {
    /* position: absolute;
    left: 50%;
    top: 35px;
    transform: translateX(-50%); */
    text-shadow: 0 0 7px black;
    /* display: none; */
    /* font-size: 24px; */
}

div#parameterSourceInfo {
    display: inline-flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 300px;
    /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%); */
    padding: 15px;
}

#logo {
    margin-top: 20px;
}

/* High-contrast režiim: lase süsteemi vaikestiil (ligipääsetavus) */
@media (forced-colors: active){
  input[type="checkbox"]:not([data-native]){
    appearance: auto; -webkit-appearance: auto; -moz-appearance: auto;
    border: initial; background: initial;
  }
}

/* Väike utiliitklass väiksemaks checkboxiks */
.cb-sm{ --cb-size: 16px; }

/* =================== Slideri stiil (native + jQuery UI) =================== */
/* vajadusel timmi toone siin */
:root{
  --ttk-slider-track: linear-gradient(90deg,rgba(89, 89, 89, 1) 0%, rgba(252, 252, 252, 1) 100%);
  --ttk-slider-track-focus: linear-gradient(90deg,rgba(89, 89, 89, 1) 0%, rgba(252, 252, 252, 1) 100%);
  --ttk-slider-thumb: #fff;
  --ttk-slider-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Scope – kuhu stiil rakendub; lisa siia veel oma konteinerite ID-sid */


:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;            /* suurem klikiala */
  background: transparent; /* tracki joonistame pseudo-elemendiga */
  margin: 6px 0 16px;
}

:is(#datawrapper) input[type="range"]{
  -webkit-appearance: none;
  appearance: none;
  width: unset;
}

/* WebKit (Chrome, Edge, Safari) */
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-webkit-slider-runnable-track{
  height: 4px;
  border-radius: 999px;
  background: var(--ttk-slider-track);
}
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]:focus::-webkit-slider-runnable-track{
  background: var(--ttk-slider-track-focus);
}
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;        /* tsentreeri 4px trackile */
  border-radius: 50%;
  background: var(--ttk-slider-thumb);
  border: none;
  box-shadow: var(--ttk-slider-shadow);
  cursor: pointer;
}
 #datawrapper input[type="range"]::-webkit-slider-runnable-track{
  height: 4px;
  border-radius: 999px;
  background: white;
}
#datawrapper input[type="range"]:focus::-webkit-slider-runnable-track{
  background: white;
}


/* Firefox */
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-moz-range-track{
  height: 4px;
  border-radius: 999px;
  background: var(--ttk-slider-track);
}
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--ttk-slider-thumb);
  box-shadow: var(--ttk-slider-shadow);
  cursor: pointer;
}

/* IE/Edge Legacy (kui vaja) */
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-ms-track{
  height: 4px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-ms-fill-lower,
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-ms-fill-upper{
  background: var(--ttk-slider-track);
  border-radius: 999px;
}
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) input[type="range"]::-ms-thumb{
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--ttk-slider-thumb);
  box-shadow: var(--ttk-slider-shadow);
  cursor: pointer;
}

/* -------------------- jQuery UI slider (.ui-slider) -------------------- */
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) .ui-slider{
  position: relative;
  height: 4px !important;
  border-radius: 999px !important;
  background: var(--ttk-slider-track) !important;
  border: none !important;
  margin: 6px 0 16px;
}

#meteogram_dialog .ui-slider, #meteogram_dialog .ui-slider-handle{ background: rgb(71,71,71) !important; }


:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) .ui-slider .ui-slider-range{
  background: var(--ttk-slider-track-focus) !important;
  border: 0 !important;
  border-radius: 999px !important;
}
:is(#leftSidebar, #meteogram_dialog, #datawrapper, [id^="maplegend_"]) .ui-slider .ui-slider-handle{
  width: 18px !important;
  height: 18px !important;
  top: -7px !important;      /* tsentreeri 4px trackile */
  margin-left: -9px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: var(--ttk-slider-thumb) !important;
  box-shadow: var(--ttk-slider-shadow) !important;
  cursor: pointer !important;
}

.legend-slot { pointer-events: auto; }
.legend-slot input[type="range"],
.legend-slot .ui-slider {
  touch-action: none; /* väldi map-pan */
}

/* --- põhitonid (soovi järgi timmi) --- */
:root{
  --cs-bg: rgba(255,255,255,0.06);
  --cs-bg-hover: rgba(255,255,255,0.09);
  --cs-border: rgba(255,255,255,0.10);
  --cs-border-focus: rgba(255,255,255,0.25);
  --cs-text: #eef0f2;
  --cs-muted: #bfc5cc;
  --cs-panel-bg: rgba(60,60,59,0.98);
  --cs-shadow: 0 10px 30px rgba(0,0,0,0.45);
  --cs-radius: 8px;
  --cs-item-hover: rgba(255,255,255,0.12);
  --cs-item-selected: rgba(255,255,255,0.18);
}

.ttk-cselect{ position: relative; width:100%; --ttk-cselect-reserve-above:0px; --ttk-cselect-reserve-below:0px; }
.ttk-cselect__button, .ttk-cselect__button_like{
  width:100%;
  height:30px;
  padding:5px px 5px 9px;
  border-radius:var(--cs-radius);
  border:1px solid var(--cs-border);
  background:var(--cs-bg);
  color:var(--cs-text);
  box-shadow:0 1px 2px rgba(0,0,0,.35);
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  -webkit-border-radius:var(--cs-radius);
  -moz-border-radius:var(--cs-radius);
  -ms-border-radius:var(--cs-radius);
  -o-border-radius:var(--cs-radius);
}

#leftSidebar .ttk-cselect {
  --ttk-cselect-reserve-above: 50px;
  --ttk-cselect-reserve-below: 50px;
}

@media(max-height:700px){
  #leftSidebar .ttk-cselect {
    --ttk-cselect-reserve-above: 5px;
    --ttk-cselect-reserve-below: 0px;
  }
}


.ttk-cselect__button_like {
    cursor: default;
    margin-top: 10px;
    font: 13px / 1.35 Roboto, sans-serif;
    display: flex;
    justify-content: center;
}


button.ttk-cselect__button_like, #loginButtons .ttk-cselect__button_like{
    cursor: pointer;
    width: auto;
    margin-top: 0;
    padding: 0 20px;
    width: auto;
    margin-left: auto;
}
#loginButtons .ttk-cselect__button_like a {
    color: var(--cs-text);
}

a.ttk-cselect__button_like {
    text-decoration: none;
    padding: 0 10px;
    cursor: pointer;
}
a.ttk-cselect__button_like:not(:disabled):hover, button.ttk-cselect__button_like:not(:disabled):hover, #loginButtons .ttk-cselect__button_like:not(:disabled):hover { background:var(--cs-bg-hover); border-color:var(--cs-border-focus); color: unset; }

.login-fields{
  display: grid;
  grid-template-columns: max-content minmax(max-content, 1fr); /* 1. veerg silt, 2. veerg input */
  column-gap: 12px;
  row-gap: 10px;
  width: 100%;   /* võtab täpselt sisu laiuse */
  /* margin: 0 auto;       ja keskele */
  align-items: center;  /* vertikaalne joondus */
}
.login-fields label{ text-align: left; }
.login-fields input{ display: block; }



.ttk-cselect__button:hover{ background:var(--cs-bg-hover); border-color:var(--cs-border-focus); }
.ttk-cselect__button:focus-visible{ outline:0;  }
.ttk-cselect__label{ min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-family: 'Roboto'; margin-left: 16px}
#parameterSource .ttk-cselect__label, #parameterSourceInfo .ttk-cselect__label { margin-left: 8px; flex:1; }
.ttk-cselect__chevron{ position:absolute; right:12px; top:50%; transform:translateY(-50%); width:18px; height:18px; pointer-events:none; opacity:.9; }
.ttk-cselect--open .ttk-cselect__chevron{ transform:translateY(-50%) rotate(180deg); }

.ttk-cselect__panel{
  position:absolute; left:0; right:0; top:calc(100% + 6px);
  background:var(--cs-panel-bg); border:1px solid var(--cs-border);
  border-radius:var(--cs-radius); z-index:9999; display:none;
}
.ttk-cselect__search{
  width:100%; height:38px; padding:8px 14px; border:0; border-bottom:1px solid var(--cs-border);
  border-top-left-radius:var(--cs-radius); border-top-right-radius:var(--cs-radius);
  background:var(--cs-bg); color:var(--cs-text);
}
.ttk-cselect__search::placeholder{ color:var(--cs-muted); }
.ttk-cselect__search:focus{ outline:none; border-bottom-color:var(--cs-border-focus); }

.ttk-cselect__list{ max-height:240px; overflow:auto; margin:0; padding:6px 4px; list-style:none; }
.ttk-cselect__option{ padding:4px 10px; border-radius:8px; margin:2px 4px; color:var(--cs-text); cursor:pointer; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height: normal; font-size: 13px !important;}
.ttk-cselect__option:hover{ background:var(--cs-item-hover); }
.ttk-cselect__option[aria-selected="true"]{ background:var(--cs-item-selected); }
.ttk-cselect__option.is-focused{ outline:2px solid var(--cs-border-focus); }

/* multi-variandi ruudud */
.ttk-cselect--multi .ttk-cselect__option{ display:flex; align-items:center; gap:8px; }
.ttk-cselect--multi .ttk-cselect__option input[type="checkbox"]{ width:16px; height:16px; }

/* peida originaal <select>, kuid jäta vormi */
.ttk-visually-hidden{
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip:rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important;
}

/* parem kerimine paneelis kaartide kohal */
.ttk-cselect__panel{ overscroll-behavior: contain; }
.ttk-cselect__panel, .ttk-cselect__list{ -webkit-overflow-scrolling: touch; }

/* Drop-up asend – kui all ruumi napib, avatakse üles */
.ttk-cselect--dropup .ttk-cselect__panel{
  top: auto;
  bottom: calc(100% + 6px);
}

/* Pane see koos ülejäänud ttk-cselect CSS-iga */

/* Paneeli pealkiri (hall label paneeli sees, nagu pildil) */
.ttk-cselect__heading{
  font-size: 12px;
  line-height: 1;
  color: var(--cs-muted);
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--cs-border);
  border-top-left-radius: var(--cs-radius);
  border-top-right-radius: var(--cs-radius);
}

/* Listi spacing ühtlasemaks */
.ttk-cselect__list{
  padding: 6px 8px 10px;   /* pisut “õhku” äärtes */
}

/* Option: suurem rida ja pehmelt ümardatud taust */
/* .ttk-cselect__option{
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 2px 4px;
} */

.ttk-cselect > div.chosen-container, #prognoos div.chosen-container {
  display: none !important;
}

#parameterSource, #parameterSourceInfo {
    font-size: 14px;
}

#parameterSource div.ttk-cselect, #parameterSourceInfo div.ttk-cselect {
    width: 250px;
}

#parameterSource button.ttk-cselect__button, #parameterSourceInfo button.ttk-cselect__button {
    background: rgba(0,0,0,0.2);
    padding: 5px 9px 5px 9px;
}

#meteogram_dialog button.ttk-cselect__button {
    background: rgb(82,82,82);
}

.highcharts-background {
    fill: rgb(218 224 225);
}

.highcharts-plot-background{
    fill: rgba(164, 205, 214, 0.2);
}

#meteogram_dialog div.ttk-cselect {
    width: 170px;
    font-size: 13px;
    /* margin-bottom: 10px; */
    display: inline-flex;
}

#meteogram_dialog div.ttk-cselect--id-temp_fc_source, .ttk-cselect--id-sourceselector {
    width: 120px !important;
}

.meteogramdialog .ui-dialog-title {
    overflow: unset;
}

.ttk-cselect.ttk-cselect--id-siteselector {
    font-size: 13px;
    font-weight: 400;
    width: 260px;
    display: inline-block;
}

#noUserLanguage{
    position: absolute;
    top: -65px;
    right: 0;
}

 #noUserLanguage div.ttk-cselect {
    width: 85px;
}



/* #noUserLanguage {
    position: absolute;
    top: 15px;
    right: 100px;
} */



#parameterSource span.ttk-cselect__label, #parameterSourceInfo span.ttk-cselect__label {
    
    text-shadow: 0 0 4px black;
    padding: 4px;
}


@media(min-height: 700px) {
    #parameterSource .ttk-cselect__list, #parameterSourceInfo .ttk-cselect__list {
        max-height: calc(100vh - 165px) !important;
    }
}


/* Valitud rea linnuke paremale (single-select) */
.ttk-cselect:not(.ttk-cselect--multi) .ttk-cselect__option[aria-selected="true"]{
  position: relative;
  background: var(--cs-item-selected);
}
.ttk-cselect:not(.ttk-cselect--multi, .ttk-cselect--id-langSelector2) .ttk-cselect__option[aria-selected="true"]::after{
  content: "";
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; opacity: .9;
  background: center/contain no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="%23DDE2E7" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
}

/* Keelatud valik tumedamaks */
.ttk-cselect__option[aria-disabled="true"]{ opacity: .5; cursor: default; }

/* Õhuke ja diskreetne scrollbar kõigis brauserites */
.ttk-cselect__panel {
  overflow: auto;                 /* väldi püsivat paksu rulli 'overflow: scroll' tõttu */
  scrollbar-width: thin;          /* Firefox */
  scrollbar-color: var(--sb-thumb, rgba(0,0,0,.35)) transparent;
  /* scrollbar-gutter: stable;       hoiab sisu paigal, kui rullik tekib */
}

/* Chromium / Safari / Edge (WebKit) */
.ttk-cselect__panel::-webkit-scrollbar, .ui-dialog::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.ttk-cselect__panel::-webkit-scrollbar-track {
  background: transparent;
}
.ttk-cselect__panel::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb, rgba(0,0,0,.35));
  border-radius: 999px;
  border: 2px solid transparent;  /* „paksu“ mulje kaotamiseks */
  background-clip: content-box;
}
.ttk-cselect__panel:hover::-webkit-scrollbar-thumb {
  background-color: var(--sb-thumb-hover, rgba(0,0,0,.5));
}

.ui-dialog {
  scrollbar-width: thin;  
  scrollbar-color: rgba(255,255,255,.35) transparent;        /* Firefox */
}


#textforecast_content {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.35) transparent;
}


/* Tume teema */
@media (prefers-color-scheme: dark) {
  .ttk-cselect__panel {
    scrollbar-color: rgba(255,255,255,.35) transparent;
  }
  .ttk-cselect__panel::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,.35);
  }
  .ttk-cselect__panel:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,.5);
  }
}

/* Kõrge kontrastsus (Windows) – lase süsteemil juhtida */
@media (forced-colors: active) {
  .ttk-cselect__panel { scrollbar-color: ButtonText Canvas; }
  .ttk-cselect__panel::-webkit-scrollbar-thumb { background-color: CanvasText; border-color: Canvas; }
}

/* kohanda #leftSidebar -> sinu konteiner */
#leftSidebar input[type="search"]:not([data-unstyled]), .ngdialog-content input:not([data-unstyled], input[type="checkbox"]), .ngdialog-content textarea:not([data-unstyled]), div.inads-input-div > .inads-input{
  display:block;
  width:100%;
  font-size: 14px !important;
  padding:8px 36px 8px 12px;
  /*ruumparemaleikoonile*/font:14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:#E6EAEE;
  background:transparent;
  border:1px solid #767676;
  border-radius:5px;
  outline:none;
  transition:border-color .15s, box-shadow .15s, background-color .15s;
  /*luubiikoon*/
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
  -ms-border-radius:5px;
  -o-border-radius:5px;
}

.ngdialog-content input:not([data-unstyled], input[type="checkbox"]), .ngdialog-content textarea:not([data-unstyled]){
    padding: 5px 12px;
}

.ngdialog-content input:not([data-unstyled]):-internal-autofill-selected, .ngdialog-content textarea:not([data-unstyled]):-internal-autofill-selected {
    color: #E6EAEE !important;
    background-color: transparent !important;
}

.ngdialog input[type="checkbox"]:before {
    box-sizing: unset !important;
}



#leftSidebar input[type="search"]:not([data-unstyled]):placeholder-shown{
  background-image:url("img/search.svg");
  background-repeat:no-repeat;
  background-size:16px 16px;
  background-position:right 8px center;
}

#leftSidebar input[type="search"]::placeholder{ color:#B5BDC7; opacity:.95; }
#leftSidebar input[type="search"]:hover{ border-color:#8A8F95; }
#leftSidebar input[type="search"]:focus{
  border-color:#A4AAB1; background:#30343A; box-shadow:0 0 0 2px rgba(140,170,255,.18);
}

/* puhasta brauseri search-nupud */
#leftSidebar input[type="search"]{
  -webkit-appearance:none; appearance:none;
}
#leftSidebar input[type="search"]::-webkit-search-decoration,
#leftSidebar input[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none; appearance:none;
}

.loading-ellipsis{
  display:inline-block;
  width:0ch;
  overflow:hidden;
  vertical-align:baseline;
  animation: dots 1.1s steps(4, end) infinite;
}
.loading-ellipsis::after{
  content:'...';
  letter-spacing:.1ch; /* natuke õhku punktide vahele */
}

@keyframes dots{
  0%   { width:0ch; }
  34%  { width:1ch; }
  67%  { width:2ch; }
  100% { width:3ch; } /* tsükli lõpus reset 0ch -> “kaob ära” */
}

#kaurcontrols {

    position: absolute;
    bottom: 0px;
    left: 10px;
    margin-bottom: calc(var(--svgHeight) + 10px);
}

#kaurcontrols > #parameterSource {
    width: 100%;
    min-width: 250px;
    position: relative;
    z-index: 1;
}

#kaurcontrols > #parameterSource > #kaur > label.label,
#kaurcontrols > #parameterSource > #kaur > #forecast_source_2_wrap > label.label {
    display: block;
    margin: 0 0 6px 2px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
}

#kaurcontrols > #parameterSource > #kaur > #forecast_source_2_wrap {
    margin-top: 8px;
}

#kaurcontrols > #sourceInfoTable, #forecast_source_2_wrap{
    margin-top: 10px;
    display: block;
}

#kaurcontrols > #parameterSource button.ttk-cselect__button, div.inads-input-div > .inads-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--cs-border);
}

div.inads-input-div > .inads-input:hover{
    border-color: var(--cs-border-focus);
}

#kaurcontrols > #parameterSource div.ttk-cselect {
    width: 100%;
}

#kaurcontrols > #parameterSource .ttk-cselect__chevron {
    transform: translateY(-50%) rotate(180deg);
    -webkit-transform: translateY(-50%) rotate(180deg);
    -moz-transform: translateY(-50%) rotate(180deg);
    -ms-transform: translateY(-50%) rotate(180deg);
    -o-transform: translateY(-50%) rotate(180deg);
}

#kaurcontrols > #parameterSource .ttk-cselect--open .ttk-cselect__chevron {
    transform: translateY(-50%) rotate(0deg);
    -webkit-transform: translateY(-50%) rotate(0deg);
    -moz-transform: translateY(-50%) rotate(0deg);
    -ms-transform: translateY(-50%) rotate(0deg);
    -o-transform: translateY(-50%) rotate(0deg);
}

#kaurcontrols > table {
    background: rgba(0, 0, 0, 0.3);
    width: fit-content;
    padding: 8px 9px 5px 9px;
    text-shadow: 0 0 4px black;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    min-width: 250px;
}

a, button, input, label, [role="button"] { -webkit-tap-highlight-color: transparent !important; }

#links  .dl-group > div:not(.dl-group-title) {
    margin: 8px 0px;
    font-size: 16px;
}

#links .scroll-arrow, #user .scroll-arrow {
    display: none !important;
}

* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;  /* väldib iOS callout'i */
    -webkit-user-select: none;
    user-select: none;
}

#closer {
    display: none;
}

#closer.open {
    --top: 45%;
    display: flex !important;
    position: absolute;
    right: calc(288px + var(--left-row-height, 76px) - 17.5px);
    /* right: 346.5px; */
    z-index: 3;
    top: var(--top);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgb(60 60 58);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    display: none;
    align-items:center;
    justify-content:center;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform .05s;
    transform: translateY(calc(var(--top) * -1));
    -webkit-transform: translateY(calc(var(--top) * -1));
    -moz-transform: translateY(calc(var(--top) * -1));
    -ms-transform: translateY(calc(var(--top) * -1));
    -o-transform: translateY(calc(var(--top) * -1));
}



#closer.open::before{
  background: center/contain no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23EAECEE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  content:"";
  width: 18px;
  height: 18px;
  opacity: 1;
  transform: rotate(-90deg);
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
}

#sliderLogo > img {
    display: none;
    position: absolute;
    right: 20px;
}

#sliderLogo > img {
    height: 40px;
    bottom: 11px;
}

#sliderLogo > img:first-of-type {
    display: block;
}

#sliderLogo.allpicsLogo > img {
    top: unset;
    right: unset;
}

#playControlsM {
    display: none !important;
    position: absolute;
    bottom: 10px;
    right: 20px;
    line-height: 0;
}

#live_image2 {
    display: none !important;
    position: absolute;
    bottom: 10px;
    right: 20px;
}


@media (max-width: 1180px) or (max-height: 700px){
    .hideMobile {
        display: none !important;
    }

    .onlyMobile {
        display: block;
    }

    #sliderLogo > img:first-of-type {
        display: none;
    }

    #live_image2 {
        display: block !important; 
    }

    #live_image {
        display: none !important;
    }

    .legend-row{ font-size: 18px; margin: 10px 0px; }

    .dl-group-title {
        font-size: 18px;;
    }

    #links a {
        font-size: 18px;
    }

    #links .dl-group > div {
        margin: 10px 0px;
        font-size: 18px;
    }
    #sources {
        font-size: 18px;
    }

    #user {
        font-size: 18px;
    }

    #kaurcontrols > #parameterSource button.ttk-cselect__button, #kaurcontrols > #sourceInfoTable {
        min-height: 51px;
    }
}

@media only screen and (hover:hover) {

    #rightButtons > div {
        cursor: pointer;
    }

    #maplayers label {
        cursor: pointer;
    }

    #right_bottom_container .mobile{
        display: none;
    }
}

.legend-slot{ display:none; margin-bottom: 20px; margin-left: 26px; }
.legend-row{ display:flex; align-items:center; font-size: 16px; margin: 3px 0px; padding: 5px 0px; }

/* Allow long checkbox labels to wrap instead of overflowing the sidebar */
.legend-row > input[type="checkbox"],
.legend-row > input[type="radio"]{ flex: 0 0 auto; margin: 0; }
.legend-row > label{
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1;
}
  
  .legend-toggle{
    margin-left:auto; cursor:pointer; border:0; background:transparent;
    font:14px/1 system-ui,-apple-system,Segoe UI,Roboto,sans-serif; color:lightgrey;
  }
  .legend-row .legend-toggle[aria-expanded="true"]{ transform: rotate(270deg); }
  .legend-row .legend-toggle[aria-expanded="false"]{ transform: rotate(90deg); }

  /* Slot juhib nähtavust – legendide sisud peavad jääma blockiks */
  .legend-slot .maplegend_content,
  .legend-slot .service_legend_content,
  .legend-slot .legend_wrm_o_content,
  .legend-slot .legend_wrm_s_content,
  .legend-slot .radarlegend_content{ display:block !important; }
  /* sujuvam külgriba scroll ja vähem "läbimöllamist" map'ile */
  #leftSidebar{ overscroll-behavior: contain; }
  #leftSidebar, #leftSidebar > div{ -webkit-overflow-scrolling: touch; }

/* .legend-toggle {
    display: inline !important;
} */

#ui-datepicker-div {
    z-index: 4 !important;
    /* top: unset !important;
    bottom: var(--svgHeight) !important; */
    background: rgb(62, 62, 62) !important;
    color: white;
    box-sizing: border-box;
}

#ui-datepicker-div * {
    box-sizing: border-box;
}

.ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
    border: 1px solid rgb(71, 71, 71);
    background: rgb(71, 71, 71);
    font-weight: normal;
    color: white;
}

.ui-widget-header {
    border: none;
    border-bottom: 1px solid rgb(237,237,237,.2);
    background: rgb(71, 71, 71);
    color: white;
    font-weight: bold;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
}

.ui-dialog .ui-dialog-titlebar {
    display: flex;
    align-items: center;
    padding: 16px 0px 8px 0px;
    font-family: 'Roboto', sans-serif;
}

.ui-widget-content:not(#meteogram_dialog), .ui-widget-content a, .ui-widget-content a:link, .ui-widget-content .ui-widget-content a:visited {
    color: white;
}

#textforecast_content, #textforecast_content  * {
    user-select: text;
}

#ui-datepicker-div .ui-datepicker-prev, #ui-datepicker-div .ui-datepicker-next {
    /*background-color: white;
    */width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(60 60 58);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    display: flex;
    align-items:center;
    justify-content:center;
    opacity: .95;
    visibility: visible;
    pointer-events: auto;
    /*ainultnooliseonklikitav*/transition: transform .05s;
    -webkit-transition: transform .05s;
    -moz-transition: transform .05s;
    -ms-transition: transform .05s;
    -o-transition: transform .05s;
}

#ui-datepicker-div .ui-datepicker-prev {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}
#ui-datepicker-div .ui-datepicker-next {
    transform: rotate(-90deg);
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
}

#ui-datepicker-div .ui-datepicker-prev.ui-state-disabled, #ui-datepicker-div .ui-datepicker-next.ui-state-disabled {
    opacity: .3;;
}

#ui-datepicker-div .ui-datepicker-prev:not(.ui-state-disabled):hover, #ui-datepicker-div .ui-datepicker-next:not(.ui-state-disabled):hover {
    border-color: white;
}



#ui-datepicker-div .ui-datepicker-prev::before, #ui-datepicker-div .ui-datepicker-next::before {
    content:"";
    width: 16px; height: 16px;
    background: center/contain no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23EAECEE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    opacity: .9;
}

.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span {
    display: none;
}

table.ui-datepicker-calendar  a.ui-state-hover,  table.ui-datepicker-calendar  a.ui-state-active{
    border-color: white;
}

#ui-datepicker-div .ui-datepicker-prev-hover {
    top: 2px;
    left: 2px;
    cursor: pointer;
}
#ui-datepicker-div .ui-datepicker-next-hover {
    top: 2px;
    right: 2px; 
    cursor: pointer;
}

input#current_date {
    bottom: 40px;
    position: relative;
}

#notifCount, #notifCount2 {
    position: absolute !important;
    background: red;
    border-radius: 50%;
    font-size: 10px;
    top: 10px;
    right: 13px;
    color: white;
    font-weight: 600;
    height: 22px;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#notifCount2 {
    right: 10px;
    top: unset;
}

#leftSidebar span.label, #meteogram_dialog span.label {
    font-size: 11px;
}

.ngdialog.ngdialog-theme-default .ngdialog-content {
    background: rgb(60, 60, 59);
    color: white;
    font: Roboto, sans-serif;
    position: absolute;
    animation: none !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -webkit-animation: none !important;
}

.ngdialog.ngdialog-theme-default .ngdialog-close:before/* , .ui-dialog-titlebar .ngdialog-close:before */ {
    color:rgb(135, 135, 135);
    font-size: 26px;
    font-weight: 400;
    height: unset;
    width: unset;
    line-height: 0;
    position: absolute;
    right: 8px;
    text-align: center;
    top: 14px;
}



.ui-dialog-titlebar .ngdialog-close{
    position: absolute;
    right: 0;
}

.ui-dialog-titlebar .ngdialog-close:before {
    color:rgb(135, 135, 135);
    font-size: 26px;
    font-weight: 400;
}

/* Allpics styles */

#datawrapper{
    color: white;
}

#datawrapper.allsites, #datawrapper.onesite {
    background: rgb(60 60 59);
}

#datawrapper.allpics > div.topcontrols {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgb(60, 60, 60);
}

#datawrapper  button.ttk-cselect__button_like {
    display: inline-flex;
    margin-left: unset;
} 

#datawrapper.allsites table, #datawrapper.onesite table {
    color: black;
}

#datawrapper .allsites .groupCheckbox{
    margin-right: 5px;
}

#datawrapper .allsites .groupCheckbox > input[type=checkbox]:checked  {
    border-color: #9aa0a6;
}

#datawrapper > .topcontrols {
    padding: 15px 10px;
}

#datawrapper .ui-state-default .ui-icon {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/images/ui-icons_444444_256x240.png") !important;
}

#datawrapper table.dataTable thead th div.DataTables_sort_wrapper {
    text-align: left;
    padding-left: 3px;
}

#datawrapper table.dataTable thead th:first-of-type div.DataTables_sort_wrapper {
    text-align: left;
    padding-left: 10px;
}

#datawrapper table td.sorting_1 {
    padding-left: 10px;
}

label {
    vertical-align: middle;
}

/* #datawrapper span {
    display: inline-flex;
    align-items: center;
} */

/* #datawrapper .sourceControls > span {
    display: unset;
} */

.ttk-cselect__group {
    color: #9aa0a6;
    border-bottom: 1px solid #9aa0a6;
    margin: 10px 0px 5px 0px;
    padding-left: 15px;
    font-size: 12px;
    font-weight: lighter;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 500;
}

#datawrapper ul#table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

#datawrapper .ttk-cselect {
    width: 240px;
    display: inline-block;
}

#datawrapper li.allimages {
    cursor: pointer;
}

.ngdialog-close:focus-visible {
    outline: none;
}

#nonEditControls, #editControls, #groupEditControls {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    /* margin-left: 185px; */
}

#datawrapper.allsites #nonEditControls, #datawrapper.allsites #editControls {
    margin-left: 0px;
}

.hide {
    visibility: hidden !important;
}

.loginInfo.ng-binding.hide {
    height: 0;
}

/* Allsites tabelid */

/* .ui-state-default {
    background: rgb(87, 87, 86);
}

table.dataTable thead th, table.dataTable tfoot th {
    font-weight: 500;
}

table.dataTable.stripe tbody tr.even, table.dataTable.display tbody tr.even, table.dataTable.display tbody tr.even>.sorting_1, table.dataTable.order-column.stripe tbody tr.even>.sorting_1 {
    background: rgb(140, 140, 139);
}

table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd, table.dataTable.display tbody tr.odd>.sorting_1, table.dataTable.order-column.stripe tbody tr.odd>.sorting_1 {
    background: rgb(180, 180, 179);
}

table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover, table.dataTable.display tbody tr:hover>.sorting_1, table.dataTable.order-column.hover tbody tr:hover>.sorting_1 {
    background: rgb(100, 100, 99);
} */


:root{
  --sidebar-bg: rgb(60 60 59);
}

/* Üldine spinner (conic-gradient + mask) */
.spinner{
  --size: 24px;               /* läbimõõt */
  --thickness: 2px;           /* rõnga paksus */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: inline-block;
  background:
    conic-gradient(var(--fg) 0 25%, var(--bg) 0 100%);
  -webkit-mask:
    radial-gradient(farthest-side,transparent calc(100% - var(--thickness) - 1px),#000 0);
          mask:
    radial-gradient(farthest-side,transparent calc(100% - var(--thickness) - 1px),#000 0);
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(1turn) } }

/* Tumedale taustale (nt #leftSidebar) */
.spinner--sidebar{
  --fg: #fff;                   /* aktiivne sektor */
  --bg: rgba(255,255,255,.18);  /* õrn taustasektor tumedal pinnal */
}

.spinner--dark{
  --fg: #fff;
  --bg: rgba(255,255,255,.18);
}

/* 2) Heledale taustale */
.spinner--light{
  --fg: #222;
  --bg: rgba(0,0,0,.18);
}

/* Alternatiivsed suurused */
.spinner.sm{ --size: 18px; --thickness: 2px; }
.spinner.lg{ --size: 40px; --thickness: 4px; }

/* Vähem liikumist eelistus */
@media (prefers-reduced-motion: reduce){
  .spinner{ animation-duration: 2.5s; }
}


@supports not (height: 100svh) {
  html, body {
    height: calc(var(--vh, 1vh) * 100);
    min-height: calc(var(--vh, 1vh) * 100);
  }
}

.picdialog .ui-dialog-title {
    display: flex;
}

@media (max-width: 705px) {
  #img_left_arrow,
  #img_right_arrow {
    background-size: 70% !important;
    background-position-x: 50% !important; /* jätame Y positsiooni 50% nagu HTML-is */
  }
}

img#camera_dialog_image:focus-visible, img#sat_dialog_image:focus-visible {
  outline: none !important;
  box-shadow: none !important
}

@media (max-width: 410px) {
    #loginButtons {
        flex-direction: column-reverse;
        align-items: flex-end !important;
    }

    #loginButtons button.ttk-cselect__button_like, #loginButtons div {
        width: 100%;
    }

    #loginButtons div {
        text-align: center;
    }

    /* .loginpopup img {
        max-width: fit-content;
    } */
}

#user h1 {
    position: relative;
}

#user #b_logout {
    position: absolute;
    margin-top: 0px;
    width: 36px;
    height: 36px;
    right: 0;
    cursor: pointer;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.info-dialog {
    width: auto !important
}

.textforecastdialog {
    width: auto !important
}

.ttk-cselect--disabled .ttk-cselect__chevron {
    display: none;
}

.feedbackSent {
    text-align: center;
    background-color: rgb(97 97 97);
    padding: 10px;
    font-weight: bold;
    border-radius: 10px;
}

/* remove close button from infoWindow */
/* .gm-ui-hover-effect {
    display: none !important;
} */

#search {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    max-width: 500px;
}

div#inAadress {
    height: 60px !important;
}


div.inads-input-div > .inads-input-search {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3C?xml version='1.0' encoding='utf-8'?%3E %3C!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In --%3E %3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' %5B %3C!ENTITY ns_flows 'http://ns.adobe.com/Flows/1.0/'%3E %5D%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:a='http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/' x='0px' y='0px' width='27px' height='27px' viewBox='-5 -5 27 27' style='enable-background:new -5 -5 27 27;' xml:space='preserve'%3E %3Cdefs%3E %3C/defs%3E %3Cpath style='fill:white;' d='M12.5,11h-0.79l-0.28-0.27C12.41,9.59,13,8.109,13,6.5C13,2.91,10.09,0,6.5,0S0,2.91,0,6.5 S2.91,13,6.5,13c1.609,0,3.09-0.59,4.23-1.57L11,11.71v0.79l5,4.99L17.49,16L12.5,11z M6.5,11C4.01,11,2,8.99,2,6.5S4.01,2,6.5,2 S11,4.01,11,6.5S8.99,11,6.5,11z'/%3E %3C/svg%3E");
    left: 11px;
}

div.inads-input-div > .inads-input-clear {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3C?xml version='1.0' encoding='utf-8'?%3E %3C!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In --%3E %3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd' %5B %3C!ENTITY ns_flows 'http://ns.adobe.com/Flows/1.0/'%3E %5D%3E %3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:a='http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/' x='0px' y='0px' width='24px' height='24px' viewBox='0 0 24 24' style='enable-background:new 0 0 24 24;' xml:space='preserve'%3E %3Cdefs%3E %3C/defs%3E %3Cpath style='fill:none;' d='M0,0h24v24H0V0z'/%3E %3Cpath style='fill:white;' d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59 L13.41,12L19,6.41z'/%3E %3C/svg%3E");
    right: 11px;
    top: 12px !important
}

div.inads-input-div:has(.inads-input.open) > .inads-input-search {
    background-image: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'><path d='M16 6 L10 12 L16 18' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 6 L4 12 L10 18'  stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
}

div.inads-input-div > .inads-input {
    width: 49px !important;
    padding-right: 0 !important;
    height: 49px !important;
    padding-left: 47px !important;
}

.inads-input-div > i {
    top: 11px !important;
    width: 27px;
    height: 27px;
}
.inads-input-div > .inads-copyright {
    top: 50px;
    left: 5px;
}

#inAadress .inads-result.searchonly {
    top: 3px;
}

div.inads-input-div > .inads-input.open {
    width: 100% !important;
    padding-right: 50px !important;
    background: rgba(0, 0, 0, 0.6);
    font-family: 'Roboto';
}

#search:has(.inads-input.open) {
    width: 70%;
}

div.inads-result {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--cs-border);
}

div.inads-result li {
    color: rgb(230,234,238);
    font-family: 'Roboto';
}


.inads-input:not(.open) ~ a.inads-copyright, .inads-input-div:not(:has(.inads-input.open)) + .inads-result-container,  .inads-input:not(.open) ~ i.inads-input-clear {
  display: none;
}

.inads-input::placeholder {
  color: rgba(255, 255, 255, 0.7); /* vms #999 */
  opacity: 1; /* Chrome/Safari vähendavad muidu läbipaistvust */
}

.inads-result li:hover, .inads-result li.active {
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff;
}

/* Tee WS silt Google ajastu moodi */
.leaflet-tooltip.ws_label {
  background: #ffffff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.4);;
  padding: 1px 4px;
  color: #000;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: auto;    /* vajalik, et label saaks klikke */
  cursor: pointer;         /* hiir muutub käeks */
  min-width: 20px;
  text-align: center;
  -webkit-border-radius:5px;
  -moz-border-radius:5px;
  -ms-border-radius:5px;
  -o-border-radius:5px;
}

/* Eemalda väike kolmnurk (nool) tooltipi alt */
.leaflet-tooltip.ws_label.leaflet-tooltip-top::before,
.leaflet-tooltip.ws_label.leaflet-tooltip-bottom::before,
.leaflet-tooltip.ws_label.leaflet-tooltip-left::before,
.leaflet-tooltip.ws_label.leaflet-tooltip-right::before {
  display: none;
}

/* Kaardi aluskaardi valiku modal */

.basemap-modal {
    display: none;                /* JS lülitab sisse */
    position: absolute;
    right: 65px !important;
    bottom: 0;
    /* margin-bottom: calc(var(--svgHeight) + 55px); sama loogika mis #mapButtons */
    z-index: 5000;

    /* sama "kapsel" mis #mapType / geolocation */
    padding: 4px;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.basemap-modal-content {
    background: rgba(0, 0, 0, 0.60);
    border-radius: var(--cs-radius);
    padding: 6px 8px;
    min-width: 170px;
    color: #fff;
    font-size: 13px;
}

.basemap-modal-title {
    font-weight: 500;
    margin-bottom: 4px;
    text-align: left;
}

.basemap-option {
    display: block;
    width: 100%;
    padding: 4px 10px;
    margin: 2px 0;
    border: 0;
    border-radius: var(--cs-radius);
    background: transparent;
    color: #fff;
    cursor: pointer;
    text-align: left;
    font: 13px/1.4 Roboto, sans-serif;
}

.basemap-option:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* aktiivne aluskaart – sama tunne nagu valitud rida custom selectis */
.basemap-option.active {
    background: rgba(255, 255, 255, 0.20);
    font-weight: 500;
}

#infowindow {
  touch-action: manipulation; /* vähendab topelt-tap zoomi ja viivitusi */
  pointer-events: auto;
}
#infowindow * {
  pointer-events: auto;
}


#nextSix {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 10px);
    bottom: 5%;
    position: absolute;
}

#nextSix img {
    width: calc(100% / 6);
    height: auto;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

#nextSix img:hover {
    border-color: rgb(82,82,82);
}