.first_hidden {
    display: none;
}

body {
    margin: 0px;
    background-color: #EEE;
    width: 100%;
}

html,
body {
    box-sizing: border-box;
    max-width: 100%;
}

.header {
    color: white;
    background-color: black;
    font-weight: bold;
}

table.mytable {
    border: 2px solid black;
    border-collapse: collapse;
    border-spacing: 0px;
    /*	border-radius: 5px;*/
    text-align: center;
    margin: 2px;
}

.mytable td {
    border: 1px solid gray;
}

.datarow_a {
    background-color: #ececff;
}

.datarow_b {
    background-color: #ecffec;
}

.datarow_disabled {
    background-color: #808080;
}

.datarow_noreply {
    background-color: #fff39d;
}


.graph_legend {
    width: 100%;
}

.graph_group {
    margin-bottom: 10px;
}

.graph_group_header {
    padding: 2px 4px;
}

.graph_item {
    margin: 4px 0 8px 0;
}

.graph_item_header {
    padding: 3px 4px;
    background: #f3f3f3;
    border: 1px solid #cfcfcf;
    border-bottom: 0;
}

.graph_item_body {
    padding: 0;
}

.graph_visibility_label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.group-visibility-checkbox,
.graph-visibility-checkbox {
    accent-color: #6a6a6a;
    filter: grayscale(100%);
}

.graph_item_header .graph_title {
    font-weight: bold;
}

.graph_item.graph_item_disabled .graph_item_header {
    padding-top: 1px;
    padding-bottom: 1px;
}

.graph_item.graph_item_disabled .graph_item_header .graph_title {
    color: #7a7a7a;
    font-weight: normal;
}

.graph_legend table {
    /*	width: 100%;*/
    border: none;
}

.legend_field {
    margin-right: 1em;
    white-space: nowrap;
}

.graph_legend .legendLabel.legend_toggle,
.graph_legend .legendColorBox.legend_toggle {
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
}

.graph_legend .legendLabel.legend_disabled {
    text-decoration: line-through;
    color: #777;
}

.graph_legend .legendColorBox.legend_disabled {
    opacity: 0.45;
}

.legend_marker {
    width: 1em;
    display: inline-block;
    border: 1px solid black;
    border-radius: 10px;
    margin-right: 0.2em;
}

.graph_place {
    background-color: white;
    border: 1px solid black;
    box-sizing: border-box;
    min-width: 100%;
}

.graph_place.giant {
    height: 950px;
}


.graph_place.big {
    height: 550px;
}

.graph_place.middle {
    height: 300px;
}

.graph_place.small {
    height: 180px;
}

#box_new_data {
    height: 1em;
    width: auto;
    min-width: 0;
    display: inline-block;
    vertical-align: text-bottom;
}

#sel_unit {
    min-width: 10em;
    max-width: 100%;
    width: auto;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sel_unit .olddata {
    color: red;
}

#menubar {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
    background-color: beige;
    border: 1px solid black;
    margin: 0px;
    padding: 2px;
    padding-left: 4px;
    padding-right: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 4px;
    overflow-x: hidden;
}

body.mobile-device #menubar::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0aa30a;
    border: 1px solid #045b04;
    pointer-events: none;
}

body.fullscreen-scroll-enabled,
body.fullscreen-scroll-enabled:fullscreen,
body.fullscreen-scroll-enabled:-webkit-full-screen {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

html:fullscreen,
html:-webkit-full-screen {
    overflow-y: auto !important;
}

body:fullscreen,
body:-webkit-full-screen,
html:fullscreen,
html:-webkit-full-screen,
:fullscreen,
:-webkit-full-screen {
    background-color: #EEE !important;
}

body:fullscreen,
body:-webkit-full-screen,
html:fullscreen,
html:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
}

body:fullscreen .graph_legend,
body:-webkit-full-screen .graph_legend,
body:fullscreen .graph_legend table,
body:-webkit-full-screen .graph_legend table,
body:fullscreen .graph_legend td,
body:-webkit-full-screen .graph_legend td {
    background-color: #EEE !important;
}

#menubar.menubar-minimized > * {
    display: none !important;
}

#menubar.menubar-minimized #btn_menu_toggle {
    display: inline-block !important;
}

#menubar.menubar-minimized {
    right: auto;
    width: auto;
    padding-right: 4px;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
}

#menubar > * {
    flex: 0 0 auto;
    min-width: 0;
}

#mb_unit {
    flex: 1 1 20em;
    min-width: 14em;
    max-width: 34em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.menu_group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.menu_group_timing {
    flex: 0 1 auto;
}

.menu_group_status {
    flex: 0 1 auto;
    gap: 2px;
}

.menublock {
    white-space: nowrap;
}

.menu_label {
    margin-right: 2px;
}

#graphs_place {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    #menubar {
        gap: 6px;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    #menubar button,
    #menubar select,
    #menubar input[type="date"] {
        font-size: 1.05em;
        min-height: 34px;
    }

    #menubar button {
        padding: 4px 8px;
    }

    #menubar .menu_group {
        gap: 6px;
    }

    #sel_unit {
        min-width: 0;
        width: 100%;
    }

    #txt_state {
        min-width: 0;
    }

    #mb_unit {
        flex: 1 1 100%;
        max-width: none;
    }

    .menu_group_timing {
        flex: 0 1 auto;
    }

}

body.compact-menubar #do_export {
    display: none !important;
}

body.compact-menubar .menu_label {
    display: none;
}

body.compact-menubar .menu_group_status {
    gap: 1px;
}

#txt_state {
    min-width: 0;
    display: inline-block;
    text-align: left;
}

.legendtxt {
    font-size: smaller;
    color: black;
    font-weight: bold;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

.flot-tick-label,
.tickLabel {
    font-size: 11px;
}

.exp_setsel_btn {
    display: block;
    width: 100%;
    margin: 2px;
}


.tr_user.selected {
    background: lightgreen;
}

#pass_text {
    text-align: left;
}

#modal_dialogs {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 20;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.dialog_box {
    border: 2px solid black;
    border-radius: 10px;
    padding: 4px;
    max-width: 40em;
    text-align: center;
    position: relative;
    max-height: calc(100vh - 20px);
    overflow: auto;
}

.dialog_box div {
    margin: 8px;
}

.dialogbtn {
    min-height: 3em;
    /*	border-radius: 10px;*/
    font-weight: bold;
    border: 1px solid black;
}

.dialogbtn.positive {
    background-color: blue;
    color: #fbff00;
}

.dialogbtn.disabled {
    background-color: #9a9a9a;
    color: #f2f2f2;
    cursor: not-allowed;
}

.dialogbtn.wide {
    width: calc(100% - 16px);
    margin: 8px;
}

#dia_cookies_next {
    font-weight: bold;
}

.ur_field {
    border: 1px solid gray;
    margin: 1px;
    font-size: small;
}

.ur_field.active {
    background: green;
}

.ur_field:not(.active) {
    background: red;
    text-decoration: line-through;
}

.user_unit {
    /*border: 1px solid green;*/
    margin-right: 5px;
    display: inline-block;
    min-width: 5em;
}

.user_unit_setall {
    min-width: 80px;
}

.user_unit_list_el {
    margin-right: 5px;
    display: inline-block;
}

#experimental_activate {
    float: none;
    margin-left: 0;
    position: absolute;
    right: 4px;
    bottom: 2px;
}

#experimental_block {
    background-color: red;
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 6;
}

#experimental_activate {
    float: none;
    margin-left: 0;
    position: absolute;
    right: 4px;
    bottom: 2px;
}

#experimental_block {
	background-color: red;
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	z-index: 6;
}
#experimental_block.blink {
	background-color: #ff9b00;
}

#experimental_block.explode-sim {
    animation: experimental-explode 3s ease-out 1 forwards;
}

@keyframes experimental-explode {
    0% {
        background: radial-gradient(circle at 50% 50%, #fff8a0 0%, #ffd447 6%, #ff8c00 14%, #c62828 30%, #420000 55%, #180000 100%);
        opacity: 0.95;
    }
    35% {
        background: radial-gradient(circle at 50% 50%, #fffbd6 0%, #ffe56e 14%, #ff9e2f 26%, #d84315 45%, #4a0000 70%, #1a0000 100%);
        opacity: 1;
    }
    100% {
        background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #1b1b1b 45%, #0f0f0f 100%);
        opacity: 0.92;
    }
}

.experimental {
	display: none;
}

#graph_tooltip {
	border: 1px solid black;
	border-radius: 3px;
	background: lavender;
	/*display: inline-block;*/
	padding: 2px;
	position: absolute;
	opacity: 0.85;
	display: none;
	z-index: 1000;
	font-size: small;
}
#graph_tooltip_value {
	font-weight: bold;
}



#graph_tooltip .label {
  /*min-width: 70px;*/
  display: inline-block;
}

#graph_tooltip_title {
    /*min-width: 250px;*/
    display: inline-block;
}