/* Schriftart IBM Plex Sans */
@font-face {
    font-family: "IBM Plex Sans";
    font-weight: 400;
    font-style: normal;
    src: url(/fonts/IBMPlexSans/IBMPlexSans-Regular.eot);
    src: url(/fonts/IBMPlexSans/IBMPlexSans-Regular.eot?#iefix) format("embedded-opentype"), 
         url(/fonts/IBMPlexSans/IBMPlexSans-Regular.woff) format("woff"), 
         url(/fonts/IBMPlexSans/IBMPlexSans-Regular.ttf) format("truetype"), 
         url(/fonts/IBMPlexSans/IBMPlexSans-Regular.svg#IBM Plex Sans) format("svg");
}
@font-face {
    font-family: "IBM Plex Sans";
    font-weight: 400;
    font-style: italic;
    src: url(/fonts/IBMPlexSans/IBMPlexSans-Italic.eot);
    src: url(/fonts/IBMPlexSans/IBMPlexSans-Italic.eot?#iefix) format("embedded-opentype"), 
         url(/fonts/IBMPlexSans/IBMPlexSans-Italic.woff) format("woff"), 
         url(/fonts/IBMPlexSans/IBMPlexSans-Italic.ttf) format("truetype"), 
         url(/fonts/IBMPlexSans/IBMPlexSans-Italic.svg#IBM Plex Sans) format("svg");
}

:root {
  --padding: 10px;
  --footer-header-border: solid 1px #AAA;
}

.hidden {
  display: none !important;
}
.centeredText {
  text-align: center;
}

* {
  box-sizing: border-box;
  font-family: "IBM Plex Sans";
}

button {
  border: solid 1px #AAA;
  border-radius: 4px;
  padding: 4px 8px;
  background: #e9e9ed;
}
button.activeLanguage {
  font-weight: bold;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  padding: var(--padding) 0;
  height: 100%;
  font-size: 18px;
  background: #f0f0f0;
  overflow: hidden;
}

img {
  object-fit: contain;
  height: 100%;
}

#pane {
  margin: 0 auto;
  padding: 0 var(--padding);
  max-width: 600px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-flow: column nowrap;
  overflow: hidden;
}

#header {
  font-weight: bold;  
  border-bottom: var(--footer-header-border);
  padding: var(--padding) 0;
  flex: 0 1 auto;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
}

.content {
  flex: 1 1 auto;
  height: 100%; 
  overflow: auto;  
}

#errorMessage {
  padding-top: 20px;
  font-size: 14px;
  font-weight: normal;
  color: darkgrey;
}

#deviceContent {
  display: grid;
  gap: var(--padding);
  grid-template-columns: 1fr auto;
  grid-template-rows: repeat(5, auto) 1fr;
  grid-template-areas: 
    "deviceTypeName deviceTypeName"
    "deviceXbusId deviceImage"
    "deviceDescription deviceImage"
    "deviceDocuments deviceImage"
    "deviceSetupInfo deviceSetupInfo"
    "empty empty";
}

#deviceTypeName {
  grid-area: deviceTypeName;
  color: #035570;
  font-size: 22px;
  font-weight: bold;
  padding: var(--padding) 0;
}

#deviceDescription {
  grid-area: deviceDescription;
  font-weight: normal;
  padding: 5px 0;
}

#deviceXbusId {
  grid-area: deviceXbusId;
  font-size: 14px;
  font-weight: normal;
}

#deviceImage {
  grid-area: deviceImage;
  max-width: 150px;
  max-height: 150px;
}

#deviceDocuments {
  grid-area: deviceDocuments;
  padding-top: 10px;
  display: flex;
  flex-flow: column nowrap;
}

.deviceDocumentLink {
  padding: 5px 0;
}

.deviceDocumentLink img {
  height: 16px;
  margin-right: 5px;
}

#deviceSetupInfo {
  grid-area: deviceSetupInfo;
  padding-top: 10px;
  color: #0084ff;
}

.empty {
  grid-area: empty;
}


@-webkit-keyframes borderBlink {    
  from, to { border-color: transparent }    
  50% 	  { border-color: #0084ff     }    
}    
@keyframes borderBlink {    
  from, to { border-color: transparent }    
  50% 	  { border-color: #0084ff     }    
} 

 /* Dialog (background) */
.dialog {
  display: flex; 
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Dialog Content/Box */
.dialog-content {
  border: 4px solid #0084ff;
  border-radius: 10px;
  -webkit-animation: borderBlink 1.5s ease infinite;    
  animation: borderBlink 1.5s ease infinite;  	
  background: #f2f9ff;
  padding: 0px 10px 10px 10px;
}

/* Dialog Close Button */
.dialog .close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
}

.dialog .close:hover,
.dialog .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
} 

.editorWithLabel {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.editorWithLabel input {
  font-size: 18px;
  text-align: right;
  width: 45%;
}
input.invalid {
  color: #F00;
  background-color: #FCC;
}
#errorContainer {
  font-size: 14px;
  color: #F00;
  text-align: right;
}

.buttonPanel {
  margin-top: 30px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  gap: 20px;
}
.buttonPanel button {
  flex: 1 1 auto;
  max-width: 45%;
}


#footer {
  font-size: 14px;
  flex: 0 1 auto;
  border-top: var(--footer-header-border);
  padding: var(--padding) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas: 
    "logoTwiline footerAddress";
}

#logoTwiline {
  grid-area: logoTwiline;
  justify-self: start;
  height: 80px;
}

#footerAddress {
  grid-area: footerAddress;
  justify-self: end;  
}


@media screen and (max-width: 599px) {
  body {
    padding: 0;
  }
  
  #pane {
    margin: 0;
    height: 100%;
  }
  
  #deviceContent {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto) 1fr;
    grid-template-areas: 
      "deviceTypeName"
      "deviceXbusId"
      "deviceImage"
      "deviceDescription"
      "deviceDocuments"
      "deviceSetupInfo"
      "empty";  
  }
 
}