/*------------------------------------*\
    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;
}
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;
}

/* 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,
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: red;
}
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: space-between;
}
header .logo {
    width: 300px;
    padding: 5px 10px;
    background-color: #ffd305;
}
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;
}
main section#main {
    flex-grow: 99999;
    height: 100%;
    padding: 20px;
}
main section#main.withnav {
    max-width: calc(100% - 300px);
}
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;
}
nav ul.nav li a > i {
    text-align: left;
    width: 3rem;
}
nav.usermenu {
    padding: 0 20px;
}
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: red;
}
.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%;
}
.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%;
}
.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;
}
.location .blockheader a {
    color: #FFF;
    font-weight: bold;
    text-decoration: none;
}
.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;
}
.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-top: 30px;
}
.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;
}
