@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Fallback focus ring for older Safari without color-mix/oklab */
/*.SettingInput .ios-wheel:focus-within{
  box-shadow:
    0 0 0 3px rgba(10,132,255,.35),
    inset 0 0 0 1px rgba(10,132,255,.6);
}*/

html, body {
    font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
    background: #efefef;
}


h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlK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jk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.leaflet-tooltip.my-labels {
  background-color: transparent;
  border: transparent;
  box-shadow: none;
  }

.leaflet-div-icon {
  background-color: transparent;
  border: 0px;
}

.leaflet-container{
    cursor:crosshair;
    background: #efefef;
}

.indexvisibleleft {
    width:50%;
    height: 100vh;
  height: 100dvh;
    float:left;
}

.indexvisibleright {
    width:50%;
    height: 100vh;
  height: 100dvh;
    float:right;
}

.indexhidden {
    display:none;
}

.cm-leaflet-menu {
    box-shadow: 0 1px 7px rgba(0,0,0,0.4);
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 4px 0;
    background-color: #fff;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

    /* using css specificity to override default background-color */
.cm-leaflet-menu .cm-leaflet-menu-item {
    display: block;
    color: #222;
    line-height: 20px;
    text-decoration: none;
    padding: 0 12px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    cursor: default;
    outline: none;
}

.marker-cluster div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-top: 0px;
  margin-left: 0px;
}

.marker-cluster-ok {
    background-color: rgba(0, 128, 0, 0.75);
    border: 2px solid black;
}

.marker-cluster-error {
    background-color: rgba(255, 0, 0, 0.75);
    border: 2px solid black;
}

.marker-cluster-nodata {
    background-color: rgba(255, 255, 255, 0.75);
    border: 2px solid black;
}

.marker-sensor {
    justify-content:center;
}
.marker-sensor-title-div {
    display: flex;
    justify-content:center;
    margin:2px;
}

.marker-sensor-value-text {

    font-size: 14px;
    text-shadow: 1px 1px 2px grey, 1px 1px 2px grey, 1px 1px 2px grey;
}

.marker-sensor-waterbalance-div {
    border-radius: 0px;
    padding: 2px;
    white-space: pre;
    border: 2px solid black;
    text-align: center;
}

.waterbalance-white {
    background-color: rgba(255, 255, 255, 0.75);
}
.waterbalance-blue {
    background-color: rgba(0, 0, 255, 0.75);
}
.waterbalance-red {
    background-color: rgba(255, 0, 0, 0.75);
}
.waterbalance-green {
    background-color: rgba(0, 128, 0, 0.75);
}

.marker-sensor-title-text {
    border-radius: 8px;
    padding: 2px;
    white-space: pre;
    border: 2px solid black;
    text-align: center;
}


.marker-sensor-title-online {
    background:rgba(0,128,0,0.75);
}

.marker-sensor-title-offline {
    background:rgba(255,255,255,0.75);
}

.footer {
    position:absolute;
    bottom:0;
    width:100%;
    font-size: 10px;
}
.subwindow-header {
    width:100%;
    height:22px;
    border-bottom:1px solid #000000;
    display:flex;
    justify-content: space-between;
}

.subwindow-header-icon {
    width:22px;
    height:22px;
}

.subwindow-header-left {
    align-self:flex-start;
    display:flex;
    justify-content: flex-start;
    flex:1;
}

.subwindow-header-right{
    display:flex;
    align-self:flex-end;
    justify-content: flex-end;
    flex:1;
}

.subwindow-header-center{
    display:flex;
    align-self:center;
    justify-content: center;
    flex:1;
    overflow:hidden;
}

.subwindow-header-element{
    font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
    display:inline-block;
    vertical-align:middle;
    text-align:center;
    min-width:35px;
    height:22px;
}

.oi {
    vertical-align: middle;
    width:30px;
    line-height:20px;
    text-align: center;
}

.subwindow-header-element>span {
    line-height:22px;
    display:inline;
    margin: 0 auto;
    width: 35px;
}

@media (pointer:coarse)
{
    .subwindow-header {
        width:100%;
        height:35px;
        border-bottom:1px solid #000000;
        display:flex;
        justify-content: space-between;
    }
    .subwindow-header-element{
        font: 16px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
        display:inline-block;
        vertical-align:middle;
        text-align:center;
        min-width:35px;
        height:35px;
    }

    .oi {
        vertical-align: middle;
        width:30px;
        line-height:35px;
    }

    .subwindow-header-icon {
        width:30px;
        height:30px;
    }

    .subwindow-header-element>span {
        line-height:35px;
        display:inline;
        margin: 0 auto;
        width: 35px;
    }

}

.subwindow-header-element>div {
    display:inline-block;
    min-width:35px;
    text-align:center;
    width:35px;
    vertical-align:middle;
}


.subwindow-inner {
    width:100%;
    height:100%;
    overflow:hidden;
    border:2px solid #000000;
    display:flex;
    flex-direction: column;
    border-radius:5px;
    overflow:hidden;
    -webkit-backface-visibility: hidden;
    clip-path:view-box
}

.subwindow-rounded {
    width:100%;
    height:100%;
    border:2px solid #000000;
    border-radius:10px;
    overflow:hidden;
    -webkit-backface-visibility: hidden;
    clip-path:view-box
}

.subwindow-content{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    overflow:auto;
}

.map-content{
    flex:1;
    overflow:hidden;
}

.chart-legend {
    width:100%;
    flex-shrink:0;
    font-size: 10pt;
    display:flex;
    flex-wrap:wrap;
    padding:10px;
    justify-content: center;
}

.chart-legend span{
    padding-right:20px;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.chart-legend span.active{
}

.chart-legend span.hidden{
    text-decoration: Line-through;
}

.chart-main {
    width:100%;
    height:100%;
    overflow:hidden;
    flex:1;
}

.loadingindicator {
    border: 2px solid silver;
    border-top: 2px solid #000000;
    border-radius: 50%;
    margin: 2px;
    width: 18px;
    height: 18px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

table.ddt
{
    text-align: center;
    width:100%;
}

table.ddt td, table.ddt th
{
    border-top: 1px solid #000000;
    padding: 3px 2px;
}

table.ddt th
{
    border-top: none;
    border-bottom: 1px solid black;
}

table.ddt td:first-child, table.ddt th:first-child {
    border-left: none;
}



.mainlayout {
    display:flex;
    flex-direction: column;
    height: 100vh;
  height: 100dvh;
    max-height: 100vh;
  height: 100dvh;
    padding: 10px;
    overflow:hidden;
}

.mainlayout-header {
    display:flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-content: center;
    padding-bottom: 10px;
    padding-top: 10px;
    overflow:hidden;
}

.mainlayout-header-logo1>img {
    height:34px;
    max-width:320px
}

.mainlayout-header-logo2>img {
    height:34px;
    max-width:320px
}

.mainlayout-content {
    height:100%;
    flex:1 1 0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}


.mainlayout-navigation {
    display:flex;
    flex-direction: row;
    width:100%;
    justify-content:space-between;
    overflow:hidden;
    flex-shrink: 0;
    padding-bottom: 10px;
    padding-top: 10px;
    height: 70px;
}


/* Secondary Content */

.indexsubwindows {
    flex-shrink:1;
    width:100%;
    display:flex;
    flex-direction:column;
    overflow:hidden;
}


/* Navigation */

.nav
{
    width:100%;
    display:flex;
    flex-direction:row;
    justify-content:space-between;
}

.nav-left {
    display:flex;
    flex-direction:row;
    justify-content:left;
    overflow:hidden;
}

.nav-center
{
    display:flex;
    flex-direction:row;
    justify-content:center;
    flex:1;
    overflow:hidden;
}

.nav-right {
    justify-content:end;
}

.nav-item {
    display: flex;
    margin-right: 20px;
    text-decoration: none;
    color: #000000;
}

.nav-item-active {
    color: #134d00;
}

.nav-item-hidden {
    color: #808080;
}


.nav-item-inner { /* SVG Icon and Label */
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.nav-item-icon {
    width: 24px;
    height: 24px;
}

/* Settings Tables (Settings and Device Settings) */

.settings table{
    text-align: left;
    width:100%;
}

.settings input {
    width:25px;
}

/*.settings input:not(.ios-wheel):not([type='checkbox']) {*/
.settings input:not([type='checkbox']) {
    display:block;
    width:180px;
}


.settings select {
    display:block;
    width:180px;
    text-align:left;
}

.settings span {
    font-weight: bold;
}

.SettingsTable {
    overflow: auto;
}

.settings select {
    width:180px;
    height: 20px;
}

td.settings-group {
    font-weight: bold;
}


@media only screen and (orientation: landscape)
{
    .mainlayout-content {
        height:100%;
        flex:1;
        margin-bottom:auto;
        display:flex;
        flex-direction:row;
    }
}

@media only screen and (max-width: 300px),
            screen and (max-height: 300px)
{
    .mainlayout-header {
        display:none;
    }
}

@media only screen and (max-width: 500px),
            screen and (max-height: 500px)
{
    .mainlayout-header-logo2 {
        display:none;
    }

    .nav-item-label {
        display:none;
    }

    .mainlayout-header-logo1>img {
        height:24px;
    }

    .mainlayout-header-logo2>img {
        height:24px;
    }

    .mainlayout-header {
        padding-bottom: 2px;
        padding-top: 0px;
        vertical-align: middle;
    }

    .mainlayout-navigation {
        padding-top: 2px;
        padding-bottom: 0px;
        height: 26px;
    }
}


.CSVExportSelect {
    min-width: 362px;
    max-height: 200px;
    width: 362px;
    overflow: auto;
}

.CSVFileBlock {
    display:flex;
    flex-direction: column;
    max-width: 360px;
    border-style: solid;
    border-width: 1px;
    padding: 10px;
    margin-bottom: 10px;
}

.CSVFileBlockHeader {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
}

.CSVBlockHeaderFileName {
    font-weight:bold;
}

.level0 td:first-child {
    padding-left: 15px;
}
.level1 td:first-child {
    padding-left: 30px;
}
.level2 td:first-child {
    padding-left: 45px;
}
.level3 td:first-child {
    padding-left: 60px;
}

table.SensorSetting {
    width: 100%;
}


.SettingDescription{
    height: 35px;
    width: 160px;
}

td.SettingInput {
    min-width:180px;
    vertical-align:middle;
    height:100%;
}

.tdflexwrap {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/*.SettingInput input:not(.ios-wheel):not([type='checkbox']) {*/
.SettingInput input::not([type='checkbox']) {
    max-width:180px;
    display:inline;
    text-align:left;
}

.SettingInput input[type='checkbox'] {
    max-width:180px;
    display:inline;
    text-align:left;
    width:13px;
    height:13px;
}

.SettingInput input{
    max-width:180px;
    display:inline;
    text-align:left;
    vertical-align:middle;
}

.MapDate {
    text-align:center;
    vertical-align: middle;
}

.SettingInput select {
    height: 24px;
    min-width:180px;
    display:inline;
    text-align:left;
}

.SettingInput input.twodig {
    min-width:2.5ch;
    width:50px;
    text-align: center;
}

/*
.SettingInput .ios-wheel{
  --ring:#0a84ff;
  --border:rgba(0,0,0,.12);
  --fade:rgba(0,0,0,.08);
  position:relative;
  display:inline-block;
  width:6ch;
  height:2.6em;
  border-radius:14px;
  text-align:center;
  box-shadow:
    inset 0 0 0 1px var(--border),
    0 1px 2px rgba(0,0,0,.12);
  overflow:hidden;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.04), transparent 28%,
      transparent 72%, rgba(0,0,0,.04));
}

.SettingInput .ios-wheel::before{
  content:"";
  position:absolute; inset:auto 0;
  top:50%; height:40%;
  transform:translateY(-50%);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  pointer-events:none;
}

.SettingInput .ios-wheel::after{
  content:"";
  position:absolute; inset:0;
  box-shadow:
    inset 0 18px 12px -16px var(--fade),
    inset 0 -18px 12px -16px var(--fade);
  pointer-events:none;
}

.SensorSettingIntervall {
    vertical-align:middle;
    display: inline-block;
    height:100%;
}

.SettingInput .ios-wheel > input[type="number"]{
  -webkit-appearance: textfield;
  appearance: textfield;
  min-width:2.5ch;
  width:50px;
  border:0; outline:0;
  background:transparent;
  text-align:center;
  font:600 1rem/2.6em system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing:.02em;
  padding:0 .5rem;
  caret-color:transparent;
  appearance: textfield;
  -moz-appearance:textfield;
}

.SettingInput .ios-wheel input::-webkit-outer-spin-button,
.SettingInput .ios-wheel input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

.SettingInput .ios-wheel:focus-within{
  box-shadow:
    0 0 0 3px color-mix(in oklab, var(--ring) 35%, transparent),
    inset 0 0 0 1px color-mix(in oklab, var(--ring) 60%, transparent);
}

@media (prefers-color-scheme: dark){
  .ios-wheel{
    --border:rgba(255,255,255,.16);
    --fade:rgba(0,0,0,.5);
    box-shadow:
      inset 0 0 0 1px var(--border),
      0 1px 2px rgba(0,0,0,.6);
    background:
      linear-gradient(to bottom,
        rgba(255,255,255,.04), transparent 28%,
        transparent 72%, rgba(255,255,255,.04));
  }
}
*/


.SettingStatus td:before {
    content: '';
    display: inline;
    width: 120px;
    min-width: 120px;
    text-align: left;
}

td.SettingStatus {
    min-width: 120px;
    text-align: left;

}

.SensorSettingsFooter {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    font-weight:bold;
    margin-top: 10px;
    background: #efe599;
}

td.SettingStatus span {
    font-weight: normal;
    width: 30px;
}

.sensorsettingchanged{
    background: #efe599;
}

.sensorsettingtransmit {
    background: #9def99;
}

.sensorsettingaccepted{
    background: #99efa0;
}

.sensorsettingfailed{
    background: #efb499;
}

.blazor-context-submenu{
    max-height:250px;
    overflow:auto;
}

.gray {
  color: #aaa;
  opacity: 0.5;
}


/* Reduce 300ms delay/ghost clicks on iOS */
.leaflet-container,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  touch-action: manipulation;
}
