/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size: 87.5%;
    overflow-x: hidden;
    min-height: 100%;
    height: 100%;
}
body {
	font: 300 14px/1.67 'Open Sans', Verdana, Arial, sans-serif;
	color: #000;
    overflow-x: hidden;
    min-height: 100vh;
    height: 100%;
    background-color: #FFF; /* rgba(0,0,0,0.03); */
    min-height: 100%;
    margin: 0;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
	width: 100%;
}
a {
	color:#373a36;
	text-decoration:none;
}
a:hover {
	color:#373a36;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #000;
    margin-bottom: 2rem;
    display: inline-block;
}
h1 {
    font-size: 2.2rem;
}
h2 {
    font-size: 2.0rem;
}
h3 {
    font-size: 1.8rem;
}
h4 {
    font-size: 1.5rem;
}
h5 {
    font-size: 1.2rem;
}
h6 {
    font-size: 1.0rem;
}

/* GENERAL */
section,
article, 
aside, 
nav,
section h1,
article h1, 
aside h1, 
nav h1 {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

/* width */
::-webkit-scrollbar {
    width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2); 
    border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3); 
}

/* FORMS */
form > fieldset,
form {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
}
form > fieldset > small {
    width: 100%;
}
form > fieldset > label,
form > label {
    display: flex;
    width: 30%;
    max-width: 280px;
    /* padding-bottom: 10px; */
    height: 2.4em;
    font-weight: 300;
    font-size: 1.1em;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
    line-height: 1em;
    padding: 14px 0;
}
.dataTables_wrapper label {
    flex-direction: row;
    width: fit-content;
    align-items: center;
}
.dataTables_wrapper label select {
    margin: 0 10px;
}
section#login label {
    font-weight: 500;
    width: 100%;
}
input {
    font-family: 'open sans';
    font-weight: 300;
    font-size: 1em;
}
input[type=search],
input[type=text],
input[type=email],
input[type=number],
input[type=password],
input[type=date],
textarea,
select {
    width: 70%;
    padding: 8px 5px;
    border: 0;
    border: 1px solid rgba(0,0,0,0.2);
    font-weight: 300;
    font-size: 1rem;
}
input[type=search] {
    width: 50%;
}
select option {
    padding: 5px 0;
}
label + input,
label + select {
    margin-bottom: 15px;
}
a.button,
a.button:hover,
a.button:focus,
a.button:visited,
a.button:active,
button.button,
input[type=reset],
input[type=submit] {
    text-decoration: none;
    font-size: 1rem;
    color: #FFF;
    background: rgb(0,0,0);
    padding: 8px 30px;
    font-weight: 700;
    margin: 10px 0 0 auto;
    border: 0;
    display: inline-block;
    text-transform: capitalize;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    text-align: center;
}
a.button.reset,
input[type=reset] {
	background-color: grey;
	color: #000;
}
a.button.inline,
input[type=submit].inline {
    padding: 4px;
}
a.back {
    margin-left: 30px;
    display: inline-block;
}
.button.hidden {
    display: none;
}
.login input {
    width: 100%;
}
input[type=submit][disabled] {
    opacity: 0.2;
}
label + input {
    width: 70%;
}
div.save {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
div.save input {
    margin: 10px;
}

/* DATA */
table.rd,
table.sd {
    width: 100%;
}
table th,
table td {
    max-width: 50%;
    padding: 5px 10px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.2);
}
table tbody tr:first-of-type th,
table tbody tr:first-of-type td {
    border-top: 0;
}
table tr th:nth-of-type(even) {
    background-color: rgba(0,0,0,0.08);
}
table tr td:nth-of-type(even) {
    background-color: rgba(0,0,0,0.05);
}
table tr th:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}
table tr th {
    font-weight: bold;
}
table td.maxwidth {
    width: 100%;
}
table td label {
    margin-bottom: 0;
}

h4.notice {
    display: block;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    position: fixed;
    padding: 20px;
    top: 0;
    width: 400px;
    color: #ffffff;
    box-shadow: 3px 3px 4px rgba(0,0,0,0.1);
    margin: 0;
    left: 50%;
    margin-left: -200px;
    z-index: 999999;
}
h4.notice div.timeline {
    width: 100%;
    height: 4px;
    background-color: rgba(0,0,0,0.5);
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
}
h4.notice {
    background-color: green;
}
h4.notice.error {
    background-color: #d30000;
}
h4.notice.warning {
    background-color: #ff6c00;
}

section#login {
    background-color: #FFF;
    border-radius: 5px;
    box-shadow: 0px 0px 14px rgba(0,0,0,0.2);
    padding: 0px;
    max-width: 400px;
    width: 90%;
    margin-top: 120px;
    margin-left: auto;
    margin-right: auto;
}
div.blockheader {
    text-align: center;
    border-radius: 5px 5px 0 0;
    background-color: #ffd300;
    padding: 20px 10px 10px 10px;
}
div.block {
    padding: 10px 20px 20px 20px;
}

/* main */
body {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
header {
    flex-grow: 1;
    width: 100%;
    background-color: rgba(0,0,0,0.03);
    display: flex;
    justify-content: flex-start;
}
header div.logo {
    width: 300px;
    padding: 5px 10px;
    background-color: #ffd305;
    flex-grow: 1;
}
body.minimized header div.logo {
    max-width: 62px;
}
header div.logo .mark {
    display: none;
}
header div.logo .full {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.minimized header div.logo .mark {
    display: block;
    background: initial;
    padding: 2px 7px 1px 0px;
}
body.minimized header div.logo .full {
    display: none;
}
header .minimize {
    display: flex;
    height: 100%;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    font-size: 1.4em;
    opacity: 0.4;
    text-decoration: none;
    flex-grow: 1;
}
header .minimize:hover {
    opacity: 1;
}
header span.navspacer {
    display: block;
    flex-grow: 999;
}
main {
    flex-grow: 99999;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
}
main nav {
    background-color: #202020;
    width: 300px;
    height: 100%;
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
main nav div.version {
    color: #FFF;
}
body.minimized main nav {
    max-width: 62px;
}
main section#main {
    flex-grow: 99999;
    height: 100%;
    padding: 20px;
}
main section#main.withnav {
    max-width: calc(100% - 300px);
}
body.minimized main section#main.withnav {
    max-width: calc(100% - 62px);
}
nav ul.nav {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    width: 100%;
}
nav ul.nav li {
    width: 100%;
}
nav ul.nav li a {
    display: inline-block;
    width: 100%;
    color: #FFF;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
}
body.minimized nav ul.nav li a {
    border-bottom: 1px solid rgba(255,255,255,0);
}
body.minimized nav ul.nav li a span.navtext {
    display: none;
}
nav ul.nav li a > i {
    text-align: left;
    width: 3rem;
}
nav.usermenu {
    padding: 0 20px;
    align-self: flex-end;
    height: 100%;
    flex-grow: 1;
}
nav.usermenu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
nav.usermenu ul li {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
nav.usermenu ul li span,
nav.usermenu ul li a {
    display: inline-block;
    padding: 10px 0px 14px 30px;
    text-decoration: none;
}
.tool {
    position: relative;
    width: 1.4rem;
    display: inline-block;
}
.tool.edit {
    color: green;
}
.tool.delete {
    color: #d30000;
}
.tool.monitor {
    color: #ff6c00;
}
.tool.action {
    color: #ff6c00;
}
.tool.regenerate {
    color: #4040ff;
}
.grey,
.tool.log {
    color: lightgrey;
}
.tool.copy {
    color: grey;
}
.tool.download {
    color: darkblue;
}
td.red,
td.green {
    max-width: 36px;
    color: #FFF;
}
td.red {
    background-color: #d30000;
}
td.green {
    background-color: green;
}
span.monitoralert {
    background-color: #d30000;
    display: inline-block;
    color: #FFF;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
}
span.issuealert {
    background-color: #d30000;
    display: flex;
    position: absolute;
    color: #FFF;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    left: -10px;
    top: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}
span.count {
    font-size: 0.6em;
    width: 16px;
    height: 16px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    flex-direction: column;
    background-color: #202020;
    color: #FFF;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    right: -2px;
}

/* forms */
form fieldset {
    width: 100%;
    border: 1px solid lightgray;
    padding: 10px 30px 20px 30px;
}
form fieldset legend {
    width: auto;
    font-size: 1rem;
    padding: 0 10px;
    margin-left: -10px;
    color: #ff6c00;
}
form.edit {
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
}
form.edit > label {
    flex-grow: 1;
    flex-basis: 35%;
    padding-bottom: 10px;
    max-width: 280px;
}
form.edit div.field {
    flex-grow: 99;
    flex-basis: calc(100% - 280px);
    padding-bottom: 10px;
}
div.field input[type=text],
div.field input[type=email],
div.field input[type=password],
div.field input[type=tel],
div.field input[type=number],
div.field input[type=date],
div.field select,
div.field textarea {
    width: 100%;
    padding: 4px;
    max-width: 400px;
}
.selectize-control {
    max-width: 400px;
}
.selectize-input {
    box-shadow: initial;
    padding: 4px;
    min-height: 35px;
    margin-bottom: -6px;
}
div.field input[type=number] {
    width: 25%;
}
div.field > input[type=checkbox] {
    margin-top: 14px;
}
form.edit div.field.noinput {
    padding: 10px 0 18px 0;
    font-size: 1.1em;
    font-weight: bold;
}
div.subfield {
    width: 100%;
    display: flex;
    justify-content: stretch;
    flex-wrap: wrap;
}
div.subfield > * {
    display: inline-block;
    flex-basis: 100%;
    padding: 4px 0;
    height: auto;
}
div.fold {
    display: flex;
    display: none;
    flex-wrap: nowrap;
    margin: -8px 0;
}
div.fold > input {
    width: auto !important;
}
div.splitscreen {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
}
div.vpnclients {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 40px;
}
div.locations {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
}
div.locations.split {
    flex-basis: 50%;
}
div.map {
    flex-basis: 50%;
    display: none;
    max-height: 75vh;
    height: 75vh;
}
table.locations {
    width: 100%;
}
table.locations th,
table.locations td {
    padding: 8px;
}
.location {
    margin-bottom: 30px;
    flex-basis: 16.667%;
    padding: 0 15px;
    max-height: 230px;
}
.vpnclient {
    flex-basis: 25%;
    max-height: initial;
    margin-bottom: 30px;
    padding: 0 30px 0 0;
}
div.locations.split .location {
    flex-basis: 33.33%;
}
.vpnclient > .vpncontainer {
    background-color: rgba(0,0,0,0.03);
    border-radius: 5px;
    box-shadow: 0px 0px 6px rgba(0,0,0,0.2);
    height: 100%;
}
.defaultbox {
    margin-bottom: 30px;
}
.defaultbox > .defaultboxcontainer,
.location > .locationcontainer {
    background-color: rgba(0,0,0,0.03);
    border-radius: 5px;
    box-shadow: 0px 0px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    margin-bottom: 30px;
    height: 100%;
}
.defaultbox .blockheader,
.vpnclient .blockheader,
.location .blockheader {
    position: relative;
    padding: 15px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    background-color: #000;
    border-radius: 5px 5px 0 0;
    text-align: center;
    flex-grow: 1;
    line-height: 1.2em;
    min-height: 4.4em;
    color: #FFF;
    font-weight: bold;
}
.defaultbox .blockheader a,
.location .blockheader a {
    color: #FFF;
    font-weight: bold;
    text-decoration: none;
}
.defaultbox .blockheader {
    text-align: left;
}
.defaultbox .blockcontent,
.location .blockcontent {
    display: inline-block;
    width: 100%;
    border-radius: 0 0 5px 5px;
    flex-grow: 9999;
    padding: 12% 0 12% 0;
    text-align: center;
    font-size: 3rem;
    background-size: cover;
    background-position: center center;
}
.defaultbox .blockcontent {
    padding: 10px;
    font-size: 1rem;
    text-align: left;
}
.vpnclient .blockcontent {
    width: 100%;
    height: 100%;
    display: inline-flex;
    flex-direction: column;
    padding: 15px 20px;
}
.ipblock {
    display: inline-block;
    background-color: rgb(0,0,0,0.8);
    color: #FFF;
    border-radius: 4px;
    padding: 2px 4px;
}
.vpnclient span.qr {
    display: none;
}
.vpnclient span.qr img {
}
.vpnclient .vpninfo {
    flex-basis: 999;
}
.vpnconfig {
    float: right;
}
.location .blockcontent a {
    color: #000 !important;
}
.locationsearch {
}
a.button.hidemap {
    display: none;
}
.switch {
    position: absolute;
    left: 16px;
    top: 17px;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
input:checked + .slider {
    background-color: green;
}
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}

/* tabs */
.tabs {
    background: #ffffff; /* Old browsers */
    background: -moz-linear-gradient(top,  #ffffff 0%, #e0e0e0 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #ffffff 0%,#e0e0e0 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #ffffff 0%,#e0e0e0 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e0e0e0',GradientType=0 ); /* IE6-9 */
    width: 100%;
}
.tab,
.tab:hover,
.tab:focus,
.tab:active,
.tab:visited {
    display: inline-block;
    padding: 10px 15px;
    border-right: 1px solid #E0E0E0;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
    border-left: 1px solid #E0E0E0;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    width: fit-content;
    margin: 0;
    background: #e0e0e0; /* Old browsers */
    background: -moz-linear-gradient(top,  #e0e0e0 0%, #ffffff 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #e0e0e0 0%,#ffffff 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #e0e0e0 0%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e0e0', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}
.tab:first-of-type {
}
.tab.active {
    border-bottom: 1px solid #FFF;
}
.tabs .cancel {
    float: right;
    display: inline-block;
    padding: 10px 15px;
}
.tab svg,
.tab i {
    color: #ff6c00;
    margin-right: 10px;
}
.tabcontainer {
    width: 100%;
    height: 100%;
    padding: 30px 10px 10px 10px;
    background: #FFF;
    border-color: #E0E0E0;
    border-width: 0px 1px 1px 1px;
    border-style: solid;
}
.pagenotice {
    display: block;
    border: 1px solid #ff6c00;
    border-left: 8px solid #ff6c00;
    padding: 30px;
    margin-bottom: 30px;
}
.dataTables_wrapper .dataTables_length {
    white-space: nowrap;
}
.flex {
	display: flex;
	flex-direction: row;
}
.filterfield {
	display: inline-flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 210px;
	margin-right: 6px;
}
.filterfield span {
	font-weight: bold;
}
div.filterfield input[type=text],
div.filterfield input[type=email],
div.filterfield input[type=password],
div.filterfield input[type=tel],
div.filterfield input[type=number],
div.filterfield input[type=date],
div.filterfield select,
div.filterfield textarea {
    width: 100%;
    padding: 4px;
    max-width: 400px;
}


/* EVENTCENTER */
.eventcenter {
    display: flex;
    justify-items: stretch;
    width: 100%;
}
.eventcenter .events {
    width: 300px;
    flex-grow: 1;
    overflow-x: auto; 
    max-height: calc(100vh - 110px);
    padding: 0 10px;
    flex-basis: 300px;
}
.eventcenter .events .event {
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background-color: rgba(0,0,0,0.01);
    margin-bottom: 10px;
    padding: 15px;
    border-left: 5px solid #ff6c00;
    cursor: pointer;
    position: relative;
}
.eventcenter .events .event:hover {
    background-color: rgba(0,0,0,0.03);
}
.eventmenu {
    display: flex;
}
.eventmenu a {
    display: block;
    font-size: 1.2em;
    padding: 4px;
    margin: 0 3px;
}
.eventcenter .events .event:before {
    content: '\f071';
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 500px;
    background-color: #ff6c00;
    color: #FFF;
    left: -15px;
    top: 10px;
    text-align: center;
    font-size: 0.9em;
}
.eventcenter .events .event input.selectevent {
    position: absolute;
    right: 10px;
    top: 10px;
}
.eventcenter .events .event.prio1 {
    border-left: 5px solid #d30000;
}
.eventcenter .events .event.prio1:before {
    background-color: #d30000;
}
.eventcenter .events .event.prio2 {
    border-left: 5px solid #ff6c00;
}
.eventcenter .events .event.prio2:before {
    background-color: #ff6c00;
}
.eventcenter .events .event.prio3 {
    border-left: 5px solid #ffd305;
}
.eventcenter .events .event.prio3:before {
    background-color: #ffd305;
}
.eventcenter .events .event.prio4 {
    border-left: 5px solid green;
}
.eventcenter .events .event.prio4:before {
    background-color: green;
}
.eventcenter .events .event.claimed {
    border-left: 5px solid #202020;
    opacity: 0.4;
    cursor: default;
}
.eventcenter .events .event.claimed:hover {
    opacity: 1;
}
.eventcenter .events .event.claimed:before {
    background-color: #202020;
    content: '\f023';
}
.eventcenter .events .event.claimedbyuser {
    border-left: 5px solid #3d25ff;
    opacity: 1;
    cursor: pointer;
}
.eventcenter .events .event.claimedbyuser:before {
    background-color: #3d25ff;
    content: '\f044';
}
.eventcenter .events .event.resolved {
    border-left: 5px solid green;
    opacity: 1;
    cursor: pointer;
}
.eventcenter .events .event.resolved:before {
    background-color: green;
    content: '\f00c';
    padding-top: 3px;
}

.eventcenter .events .event .eventdate,
.eventcenter .events .event .eventlocation {
    display: block;
}
.eventcenter .events .event .eventdate i,
.eventcenter .events .event .eventlocation i {
    display: inline-block;
    width: 1.2rem;
    color: grey;
    text-align: center;
}
.eventcenter .eventview {
    flex-grow: 100;
    flex-basis: calc(100% - 300px);
}
.eventcenter .eventview .eventcontainer {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px 20px;
    height: 100%;
    max-height: calc(100vh - 110px);
}
.eventcenter .eventview .eventinfo {
    background-color: rgba(0,0,0,0.03);
    width: 100%;
    flex-basis: 100%;
    height: fit-content;
    min-height: 40px;
    border-bottom: #202020;
    display: flex;
    justify-content: stretch;
}
.eventcenter .eventview .eventdetails {
    padding: 10px;
    flex-grow: 99;
    position: relative;
}
.eventcenter .eventview .eventdetails #vmslink {
    position: absolute;
    right: 20px;
    top: 5px;
}
.eventcenter .eventview .eventdetails .eventlocation {
    font-size: 2rem;
    font-weight: bold;
}
.eventcenter .eventview .eventmap {
    background-color: rgba(0,0,0,0.04);
    height: fit-content;
    width: 300px;
    max-width: 300px;
    flex-basis: 300px;
    height: 150px;
    flex-grow: 1;
}
.eventcenter .eventview .eventmap .blockcontent {
    width: 100%;
    height: 100%;
    display: block;
    background-position: center center;
    padding: 12% 0 12% 0;
    text-align: center;
    font-size: 3rem;
    background-size: cover;
}
.eventcenter .eventview .eventviewer {
    flex-basis: calc(100% - 320px);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 20px;
    height: fit-content;
}
.eventcenter .eventview .statushistory {
    flex-basis: 300px;
    background-color: #202020;
    height: calc(100% - 150px);
}

.statushistory ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2); 
    border-radius: 4px;
}
.statushistory ::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3); 
}
.eventcenter .eventview .snapshot,
.eventcenter .eventview .recording,
.eventcenter .eventview .liveview {
    width: calc(50% - 10px);
    flex-basis: calc(50% - 10px);
    height: fit-content;
    margin-bottom: 20px;
}
.eventcenter .eventview .snapshot a,
.eventcenter .eventview .recording a,
.eventcenter .eventview .liveview a {
    color: #FFF;
    float: right;
    margin-left: 5px;
}
.eventcenter .eventview .liveview .content {
    position: relative;
    cursor: pointer;
}
.eventcenter .eventview .liveview .content .pausedvideo {
    position: absolute;
    left: 20px;
    top: 0px;
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}
.eventcenter .eventview .recording .content {
    background-size: cover;
}
.eventcenter .eventview .recording video {
    width: 100%;
    margin-bottom: -6px;
}
.eventcenter .downloadrecording {
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    font-size: 4em;
    color: #FFF;
    background-color: rgba(0,0,0,0.7);
    padding-top: 20%;
    padding-bottom: 20%;
    cursor: pointer;
}
.eventcenter .eventview .snapshot img {
    width: 100%;
}
.eventfilter {
    padding-bottom: 10px;
    position: relative;
}
.eventfilter .filter {
    display: block;
    text-align: center;
    color: #FFF;
    background-color: #202020;
    padding: 4px;
    cursor: pointer;
}
.eventfilter .filteroptions {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #FFF;
    z-index: 999;
    padding: 5px;
    text-align: center;
}
.filteroptions .filterbutton {
    display: inline-block;
    padding: 7px;
    margin-bottom: 5px;
    color: #FFF;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
#mine {
    background-color: #3d25ff;
    width: 100%;
}
#unassigned {
    background-color: #646464;
    width: 100%;
}
#prio1 {
    background-color: #d30000;
    width: 100%;
}
#prio2 {
    background-color: #ff6c00;
    width: 100%;
}
#prio3 {
    background-color: #ffd305;
    width: 100%;
}
#prio4 {
    background-color: green;
    width: 100%;
}
.eventviewer > div {
    border: 1px solid #202020;
}
.eventviewer > div h3 {
    font-size: 1.1rem;
    color: #FFF;
    background-color: #202020;
    padding: 3px;
    text-align: left;
    display: block;
    width: 100%;
    margin: 0;
    font-weight: normal;
}
.statushistory {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
.statuslist {
    overflow-x: auto;
    flex-grow: 99;
}
.status {
    margin: 5px 5px 0 5px;
    background-color: rgba(255,255,255,0.05);
    color: #FFF;
    padding: 10px;
    border-left: 3px solid #FFF;
}
.status h4 {
    margin: 0;
    display: inline-block;
    width: 100%;
    font-size: 1.2rem;
    color: #FFF;
}
.status i {
    display: inline-block;
    width: 1.5rem;
}
.status > * {
    display: block;
}
.eventactions {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.eventactions a {
    display: block;
    flex-basis: 50%;
    border: 1px solid #202020;
    padding: 8px;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    position: relative;
}
.eventactions textarea {
    flex-basis: 100%;
    color: #FFF;
    background-color: rgba(255,255,255,0.02);
    box-shadow: inset 2px 2px 3px #000;
}
div.fusers {
    display: none;
    position: absolute;
    bottom: 100%;
    background: rgba(255,255,255,0.9);
    right: 0;
    left: 0;
    color: #202020;
}
div.fusers ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
div.fusers ul li {
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
}
div.fusers ul li:hover {
    background-color: #202020;
    color: #FFF;
}
#resolve {
    background-color: green;
}
#comment {
    background-color: #004300;
}
#assign {
    background-color: #3d25ff;
}
#mute {
    background-color: purple;
}

#comment.disabled,
#assign.disabled,
#mute.disabled {
    cursor: not-allowed;
    background-color: darkgrey;
}

.pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 30px 0;
}
.pagination .page {
    text-decoration: none !important;
    font-weight: bold;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #ffd305;
    margin: 0 1px;
}
.pagination .page.current {
    background-color: rgba(0,0,0,0.05);
}

code {
    display: block;
    width: 100%;
    height: 100%;
    overflow: auto;
    white-space: pre-wrap
}

.monitorlog {
    position: relative;
}
.monitorcount {
    color: red;
    display: inline-block !important;
    padding: initial !important;
}
.eventcount {
    color: #000;
    background-color: grey;
    display: inline-block !important;
    padding: 0px 7px;!important;
    font-size: 0.9em;
    border-radius: 500px;
    margin-top: -4px;
}
