:root {
  --color-active: #1d284b;
  --color-active-hover: #2a3b6b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.clear {
  clear: both;
}
.hidden {
  display: none;
}

a {
  color: var(--color-active);
}
a:hover {
  color: var(--color-active-hover);
}
a:focus {
  outline: none;
}
html,
body {
  height: 100%;
}
body {
  font-family: 'Roboto';
  font-size: 14px;
  background: #262E3B;
}

h1 {
  color: #293240;
  font-weight: 100;
  font-size: 29px;
  text-transform: uppercase;
}
h2 {
  color: #293240;
  font-size: 25px;
  margin-bottom: 8px;
}
h3 {
  color: #586F7C;
  font-size: 19px;
  margin-bottom: 8px;
}

/* LOGIN */
.loginpage {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,1) 10%, #b5ceedff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}
.loginbox {

  text-align: center;
}
.loginbox .logo {
  height: 100px;
  margin: 0 auto 24px;
}

.loginbox h1 {
  margin: 0 0 20px;
  color: #1d1d1d;
  text-transform: uppercase;
  font-weight: normal;
  font-size: 2em;
  line-height: 1.1em;
}
.loginform {
  display: flex;
  flex-flow: column;
  align-items: center;
}
.loginform input {
    width: 220px;
    background: #fff;
}
.loginbox .text {
  width: 100%;
  max-width: 220px;
  padding: 10px;
}
.loginbox .submit {
  background: var(--color-active);
  border: none;
  transition: .2s;
}
.loginbox .submit:hover {
  background: var(--color-active-hover);
}

/* LAYOUT */
.header {
  display: flex;
  justify-content: space-between;
  background: #d6e7f2;
  align-items: center;
}
.menuOpener,
.menuCloser {
  display: none;
}
.header .tophblock {
  padding: 10px 15px;
  flex: 1 1 auto;
}
.header h1 {
  color: #1B2029;
  text-transform: uppercase;
  margin-bottom: 0;
  font-size: 23px;
}
.header .logo {
  height: 30px;
  margin: 12px;
}

.topmenu {
  display: flex;
  justify-content: space-between;
  padding: 8px 5px 0 5px;
  background: #ccc;
}
.topmenu ul {
  display: flex;
  list-style: none;
}
.topmenu ul li {
  display: flex;
}
.topmenu ul li a {
  background: #3C4451;
  color: #fff;
  text-decoration: none;
  margin: 0 4px 0;
  padding: 8px 10px;
}
.topmenu ul li a:hover {
  background: #262E3B;
}
.topmenu ul li a.active {
  background: #f9f9f9;
  color: #262E3B;
  box-shadow: 2px -2px 3px -1px  rgba(0, 0, 0, .4);
}
.logout {
  display: flex;
  padding-right: 5px;
}
.logoutbut {
  background: var(--color-active);
  color: #fff;
  margin-bottom: 0;
  width: auto;
  padding-left: 15px;
  padding-right: 15px;
  border: 1px solid var(--color-active);
  cursor: pointer;
}

.content {
  display: flex;
  padding: 15px 0 0px;
  background: #f9f9f9;
  min-height: calc(100vh - 130px);
}
.leftpanel {
  margin-left: 10px;
  width: 220px;
  background: #f9f9f9;
  padding: 10px 10px;
}

.leftpanel ul {
  list-style: none;
  margin-bottom: 20px;
}
.leftpanel ul li {
  padding: 3px 0;
}
.leftpanel ul li a {
  font-weight: 700;
  text-decoration: none;
}
.leftpanel ul li a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #586F7C;
  margin-right: 5px;
}
.leftpanel strong {
  font-size: 17px;
  color: #586F7C;
  margin-bottom: 5px;
  display: block;
}
.contentpanel {
  flex: 1 1 auto;
  padding: 20px 30px;
  background: #fff;
  border-width: 1px 1px 0 1px;
  border-style: solid;
  border-color: #ddd;
  margin-right: 15px;
  margin-left: 15px;
}

.footer {
  display: flex;
  color: rgba(255, 255, 255, .4);
  padding: 10px;
  justify-content: space-between;
  font-size: 90%;
}
.footer a {
  color: rgba(255, 255, 255, .4);
}



/* FORMS */
label {
  display: inline-block;
  width: 150px;
  vertical-align: top;
  padding-top: 6px;
}
input, select, textarea {
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
select {
	position: relative;
	padding: 3px 20px 3px 8px;
	background: url(../layout/selarr.svg) calc(100% - 7px) 50% no-repeat;
	background-size: 15px auto;
  border-radius: 0;
}
input[type="checkbox"] {
	position: relative;
	margin: 4px 0;
	width: 18px;
	height: 18px;
	border: 1px solid #bbb;
  border-radius: 2px;
}
input[type="checkbox"]:checked {
  background: #586F7C;
  border-color: #586F7C;
}
input[type="checkbox"]:checked:after {
  content: '';
  top: 0px;
  position: absolute;
  left: 5px;
  box-sizing: border-box;
  width: 6px;
  height: 12px;
  transform: rotate(45deg);
  border-width: 0 2px 2px 0;
  border-style: solid;
  border-color: #fff;
}

input[type="checkbox"].visibility {
	position: relative;
	margin: 4px 0;
	width: 18px;
	height: 18px;
	border: none;
  border-radius: 0;
  background: url(../layout/visibility_off.svg) 50% 50% no-repeat;
  background-size: 18px;
}

input[type="checkbox"]:checked.visibility {
  background-image: url(../layout/visibility_on.svg);
}

input[type="checkbox"].visibility:checked:after {
	display: none;
}

input[type="date"] {
  height: 33px;
}


input,
select,
textarea {
  font-family: 'Roboto';
  font-size: 16px;
  padding: 6px;
}
.text,
select,
textarea {
  margin-bottom: 5px;
  border: 1px solid #bbb;

  width: 200px;
  max-width: 100%;
}
.s {
    width: 40px;
}
.m {
    width: 150px;
}
.l {
    width: 200px;
}
.xl {
    width: 250px;
}
.xxl {
    width: 350px;
}
.xxxl {
    width: 400px;
}
.submit {
  font-weight: 700;
  padding: 10px 15px;
  background: #586F7C;
  border: 1px solid #586F7C;
  color: #fff;
  border: none;
  cursor: pointer;
  width: auto;
}
.submit.inline {
  padding: 7px 15px;
}
.submit:hover {
  background: #293240;
  border-color: #293240;
}
.mmarged {
  margin-left: 154px;
}
.leftbox {
  display: inline-block;
}
.short {
  width: 350px;
  height: 100px;
}
.texteditor {
  width: 450px;
  height: 150px;
}

.searchform {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.searchform label {
  margin-bottom: 0;
  width: 100%;
}
.searchform input,
.searchform select {
  width: 100%;
  max-width: 100%;
  margin: 0;
  width: 100%;
}
.searchform .submit {
  margin-top: auto;
}


/* TABLES */
table {
  border-collapse: collapse;
  margin-bottom: 20px;
}
table th,
table td {
  padding: 8px 10px;
  text-align: left;
}
.ca {
  text-align: center;
}
.ra {
  text-align: right;
}
table th {
  background: #3C4451;
  color: #fff;
}
table td {
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
}
table tr:nth-child(2n) td{
  background: #eee;
}

table tr.day6 td,
table tr.day0 td {
  background: #e7e7e7;
}
table tr.newday td {
  border-top: 5px solid #fff;
}

/* TREE VIEW */
.tree ul {
  list-style: none;
}
.tree ul ul {
  border-left: 1px solid #ccc;
  margin-left: 14px;
  padding-left: 14px;
}
.tree .treerow{
  display: flex;
  align-items: center;
}
.tree .treerow > * {
  margin: 0 5px;
}

/* UTILITARY */
.hint {
  border-bottom: 1px dotted #444;
  cursor: help;
}
.muted {
  color: #999;
}

.add {
  color: #fff;
  display: inline-flex;
  margin-bottom: 16px;
  text-decoration: none;
  background: #159759;
  padding: 5px 10px;
  border-radius: 3px;
  transition: .3s;
}
.add::before {
  content: '+';
  font-weight: 700;
  font-size: 20px;
  line-height: 14px;
  margin-right: 5px;
}
.add:hover {
  color: #fff;
  background: #117E49;
}
.del,
.edit,
.subcat {
  text-decoration: none;
  display: block;
}
.del::before {
  content: '';
  background: url('../layout/remove.svg') 50% 50% no-repeat;
  background-size: 16px auto;
  display: block;
  width: 16px;
  height: 16px;
}

.edit::before {
  content: '';
  background: url('../layout/edit.svg') 50% 50% no-repeat;
  background-size: 16px auto;
  display: block;
  width: 16px;
  height: 16px;
}

.subcat::before {
  content: '';
  background: url('../layout/subcat.svg') 50% 50% no-repeat;
  background-size: 16px auto;
  display: block;
  width: 16px;
  height: 16px;
}

.righticons {
  display: inline-flex;
  align-items: center;
}
.righticons a {
  margin: 0 6px 0 0;
}

.langs {
  display: flex;
  margin-bottom: 16px;
}
.langs a {
  text-transform: uppercase;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  text-decoration: none;
  font-weight: 700;
  background: #eee;
  color: #999;
  border-radius: 50%;
}
.langs a:hover {
  color: #3C4451;
  background: #e0e0e0;
}
.langs a.sel {
  background: #C93C3C;
  color: #fff;
}

.issys {
  font-style: italic;
}
.margin-left {
  margin-left: 10px;
}

/* STATUS HANDLING */
blockquote {
  margin-bottom: 16px;
  padding: 15px;
  color: #fff;
  box-shadow: 2px 2px 5px -1px rgba(0, 0, 0, .3);
}
.suc {
  background: #00A676;
}
.err {
  background: #C93C3C;
}

/* CANVAS */
.contentbox {
  display: flex;
}

.canvas {
  max-width: 1000px;
  flex: 1 1 auto;
  min-height: 400px;
  border: 1px solid #ccc;
  text-align: center;
  margin-left: 30px;
  padding: 10px;
}
.grid-wrapper {
  position: relative;
  max-width: 100%;
  margin: 5px auto;
  padding: 15px;
  background: #f9f9f9;
}


.grid-container,
.grid-box {
  margin: 5px auto;
  padding: 15px;
  background: rgba(0, 0, 0, .05);
  border: 1px dashed rgba(0, 0, 0, .15);
  position: relative;
}

.grid-container {
  max-width: 800px;
}


.disphidden {
  opacity: 0.3;
}
.disphidden:hover {
  opacity: 1;
}

.grid-content {
  padding: 15px;
  margin: 5px 0;
  border: 1px solid #999;
  background: #ddd;
  position: relative;
}
.canvas > .grid-content {
  margin: 0 0 5px 0;
}
.activeDrop {
  background: #dfffc3 !important;
}
.canvas .ui-state-highlight {
  height: 40px;
  line-height: 1.2em;
  margin: 5px;
  flex: 1 1 auto;
}
.ui-state-highlight {
  border: none !important;
}

.palette {
  margin: 0px 0 0 0px;
  width: 110px;
  position: sticky;
  top: 0;
}
.palette .hl {
  display: block;
  padding: 10px 0 2px 0;
  margin: 2px 0;
  text-transform: uppercase;
  font-size: 14px;
}
.d-component {
  width: 100%;
  height: auto;
  padding: 3px 0;
  margin-bottom: 3px;
  border: 1px solid #ccc;
  text-align: center;
  display: inline-block;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 13px;
}
.d-component span {
  line-height: 32px;
  font-size: 22px;
  text-transform: uppercase;
  display: block;
  width: 100%;
}
.d-content {
  width: 100%;
  height: auto;
  padding: 3px 0;
}
.d-content.ui-draggable-dragging {
  width: 100px;
}

.contbut {
  display: block;
  box-sizing: border-box;
  text-decoration: none;
  margin: -15px;
  height: 100%;
  padding: 10px 0;
  font-weight: bold;
  color: #000;
  font-size: 13px;
}
.contbut .conttype {
  font-size: 11px;
  font-style: italic;
  font-weight: 100;
  color: #666;
}
.contbut:hover {
  background: #d0d0d0;
  color: #000;
}

.toolbox {
  display: none;
  position: absolute;
  right: 2px;
  top: 2px;
}
.toolbox .removeContent::before {
  content: '';
  background: url('../layout/remove.svg') 50% 50% no-repeat;
  background-size: 12px auto;
  display: block;
  width: 14px;
  height: 14px;
  margin-left: 3px;
}
.toolbox .toggleDisplay::before {
  content: '';
  background: url('../layout/visibility_on.svg') 50% 50% no-repeat;
  background-size: 16px auto;
  display: block;
  width: 16px;
  height: 14px;
  margin-left: 3px;
}
.toolbox .toggleDisplay.invisible::before {
  background: url('../layout/visibility_off.svg') 50% 50% no-repeat;
  background-size: 16px auto;
}
.toolbox .contedit::before {
  content: '';
  background: url('../layout/edit.svg') 50% 50% no-repeat;
  background-size: 12px auto;
  display: block;
  width: 14px;
  height: 14px;
}

.wrapclass {
  position: absolute;
  top: 2px;
  left: 2px;
  font-style: italic;
  font-size: 11px;
}

.dialogform {
  text-align: left;
}


.imagePickerGallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.imagePickerGallery .imgbox {
  margin: 4px;
}
.imagePickerGallery .imagePick img {
  display: block;
  opacity: 0.4;
  border: 3px solid #fff;
}
.imagePickerGallery .imagePick:hover img {
  opacity: 1;
}
.imagePickerGallery .imagePick.active img {
  border-color: #159759;
  opacity: 1;
}

.galleryContent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 16px;
}
.galimg {
  position: relative;
}
.galimg img {
  width: 100%;
  display: block;
}
.galimg.invisible img {
  opacity: .3;
}
.galimg--overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.galimg--toolbox {
  position: absolute;
  right: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  padding: 5px;
}
.galimg--toolbox .editPhoto::before {
  content: '';
  background: url('../layout/edit.svg') 50% 50% no-repeat;
  background-size: 16px auto;
  display: block;
  width: 16px;
  height: 16px;
}
.galimg--toolbox .removePhoto::before {
  content: '';
  background: url('../layout/remove.svg') 50% 50% no-repeat;
  background-size: 16px auto;
  display: block;
  width: 16px;
  height: 16px;
  margin-left: 5px;
}
.galimg--toolbox .togglePhotoDisplay::before {
  content: '';
  background: url('../layout/visibility_on.svg') 50% 50% no-repeat;
  background-size: 18px auto;
  display: block;
  width: 18px;
  height: 16px;
  margin-left: 5px;
}
.galimg--toolbox .togglePhotoDisplay.invisible::before {
  background: url('../layout/visibility_off.svg') 50% 50% no-repeat;
  background-size: 18px auto;
}

.notifier {
  position: fixed;
  bottom: 55px;
  left: 25px;
  width: 195px;
}
.notice {
  color: #fff;
  padding: 10px;
  margin-bottom: 5px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
}

/* JQUERY UI */
.ui-dialog {
  box-shadow: 4px 4px 15px rgba(0, 0, 0, .5);
}
.ui-widget-overlay {
  background: #666;
  opacity: .5;
}

/* ACE */
.acewrapper{
  position: relative;
  max-width: 620px;
  width: 100%;
  display: inline-block;
}
.aceeditor {
position: relative;
height: 400px;
overflow-y: scroll;
border: 1px solid #ccc;
width: 100%;
max-width: 100%;
display: inline-block;
}


@media(max-width: 768px) {
  .content {
    flex-flow: column;
    padding: 0;
  }
  .leftpanel {
    width: 100%;
    margin-left: 0;
  }
  .leftpanel strong {
    display: none;
  }
  .leftpanel ul {
    display: inline;
    margin-bottom: 0;
  }
  .leftpanel ul li {
    display: inline-block;
  }
  .leftpanel ul li a {
    background: #3C4451;
    color: #fff;
    padding: 8px 10px;
    margin: 1px 2px;
    display: inline-block;
  }
  .leftpanel ul li a::before {
    display: none;
  }
  .contentpanel {
    margin: 0;
  }
  .header {
    justify-content: flex-start;
  }
  .menuOpener,
  .menuCloser {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 35px;
    line-height: 35px;
    padding: 15px;
  }
  .menuOpener:hover,
  .menuCloser:hover {
    color: #fff;
  }
  .topmenu {
    display: none;
    width: 40%;
    z-index: 2;
    position: fixed;
    flex-flow: column;
    overflow-y: auto;
    left: 0;
    top: 0;
    height: 100%;
    justify-content: flex-start;
    background: #262E3B;
    box-shadow: 5px 0px 15px rgba(0, 0, 0, .8);
  }
  .topmenu ul {
    display: block;
  }
  .topmenu ul li a,
  .logoutbut {
    width: 100%;
    text-align: left;
    padding: 16px 16px;
  }
  .topmenu ul li a {
    margin: 0;
    margin-bottom: 1px;
  }
  .topmenu ul li a:hover {
    background: #586F7C;
  }
  .topmenu ul li a.active {
    box-shadow: none;
    background: #1B2029;
    color: #fff;
  }
  .logout {
    padding-top: 5px;
    padding-right: 0;
  }
  label {
    display: block;
    margin-bottom: 5px;
  }
  .mmarged {
    margin-left: 0;
  }
}

@media(max-width: 500px) {
  .header img {
    display: none;
  }
  .topmenu {
    width: 60%;
  }
}

.cardsFlex {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.aircarftCard {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  gap: 5px;
  text-decoration: none;
}
.aircarftCard strong {
    font-size: 150%;
    font-weight: 700;
}