/* 
    Created on : 04.03.2024, 17:02:37
    Author     : hkrebs
*/
/* Color variables */
:root {
    --bg-color1: #94f2ff; /* background for table headers */
    --bg-color2: #eeeeee; /* background for tables, standard information */
    --bg-color-show: #99ccff; /* background for table headers, show forms */
    --bg-color-new: #ccffcc; /* background for table headers, new forms */
    --bg-color-edit: #ffcccc; /* background for table headers, edit forms */
    --bg-color-search: #ffccff; /* background for table headers, search forms */
    --bg-color-table-head: #eeeeee;  /* background color for data table headers */ 
    --ok-color: green;
}


/* NAVIGATION */
#Navigation {
    background-color: lavender;
    width: 140px; 
    height: 100vh; 
    position: fixed; 
    top: 0; 
    left: 0;
    padding-top: 50px;
}

#Navigation .button {
    text-align: center;
    height: 100px;
    color: #888888;
    cursor: pointer;
}
#Navigation .button:hover {
    color: #000000;
}
#Navigation .button.activePath {
    color: #00523f;
}
#Navigation .button svg {
    width: 48px !important;
    height: 48px !important;
}

#Navigation img#logo {
    width: 80px;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
}            
#Navigation i.fa-solid { font-size: 48px; color: black; }
/* Buttons with svg-images */
.svgButton { position: relative; }
.svgButton:hover:after { position: absolute; padding: 2px; left:1em; top:1em; width:100px; height:1.25rem; background-color: darkgrey; color:white; }
.svgButton:hover::before { background-color: #0034d5; }
.svgButton::before { 
    width: 16px; 
    height: 16px; 
    display: inline-block; 
    mask-size: cover; 
    background-color: #444444; 
    content: '';  
    cursor: pointer;
    padding-right: 5px;
}

button.svgIcon {
    border: none;
    background-color: white;
    padding-inline: 0;
}
i.button {
    border: 2px solid grey;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    padding: auto;
    background-color: #eeeeee;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}
i.button:hover {
    background-color: #ff8000;
}
i.button.disabled { filter: brightness(150%) opacity(0.2); }
i.button.disabled:hover { background-color: red; }

i.fa-solid.fa-circle-check { color: var(--ok-color); }

/* TABLES */
table.view1 {
    width: 95%;
    border: 2px solid black;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    font-size: 125%;
    text-align: center;
    padding: 2px;
}
table.view1 th {
    background-color: var(--bg-color1);
}
table.view2 {
    width: 95%;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;    
    padding: 2px;
    background-color: var(--bg-color2);
}
table th {
    vertical-align: top;
}

table.dataTable thead { background-color: var(--bg-color-table-head); }

table.dataTable thead th.center { text-align: center; }
table.dataTable tbody td.center { text-align: center; }

/* Dialogs */
div#showWindow {
    padding: 10px;
}
.showWindow .ui-dialog-titlebar-close { display: none; }
.newWindow .ui-dialog-titlebar-close { display: none; }
.editWindow .ui-dialog-titlebar-close { display: none; }

div.ui-dialog { z-index: 999; }
div.ui-dialog-buttonset { width: 100%; }
div.ui-dialog-buttonset button#btnCancel { float: left; }
div.ui-dialog-buttonset button#btnSave { float: right; }
div.ui-dialog-buttonset button#btnSearch { float: right; }
div.ui-dialog-buttonset button#btnHelp { float: left; display: none; }

table.editForm { border: 3px solid var(--bg-color-edit); width: 100%; }
table.editForm th { padding: 10px; background-color: #cccccc; text-align: left; vertical-align: middle; width: 200px; }
table.editForm td { padding: 10px; background-color: #eeeeee; }

table.newForm { border: 3px solid var(--bg-color-new); width: 100%; }
table.newForm th { padding: 10px; background-color: #cccccc; text-align: left; vertical-align: middle; width: 200px; }
table.newForm td { padding: 10px; background-color: #eeeeee; }

table.showForm { border: 3px solid var(--bg-color-show); width: 100%; }
table.showForm th { padding: 10px; background-color: #cccccc; text-align: left; vertical-align: middle; width: 200px; }
table.showForm td { padding: 10px; background-color: #eeeeee; }

table.searchForm { border: 3px solid var(--bg-color-search); width: 100%; }
table.searchForm th { padding: 10px; background-color: #cccccc; text-align: left; vertical-align: middle; width: 200px; }
table.searchForm td { padding: 10px; background-color: #eeeeee; }

table.registrationForm { border: 3px solid #888888; }
table.registrationForm th { padding: 10px; background-color: #cccccc; text-align: left; vertical-align: middle; width: 200px; }
table.registrationForm td { padding: 10px; background-color: #eeeeee; width: 600px; }

table.helpForm { border: 3px solid var(--bg-color-help); width: 100%; }
table.helpForm th { padding: 10px; background-color: #cccccc; text-align: left; vertical-align: middle; width: 200px; }
table.helpForm td { padding: 10px; background-color: #eeeeee; }

table.helpOverlay { border: 3px solid var(--bg-color-help); width: 100%; }
table.helpOverlay th { padding: 10px; background-color: #cccccc; text-align: left; vertical-align: middle; width: 200px; }
table.helpOverlay td { padding: 10px; background-color: #ffffff; }


/* BODY */
body {
    margin-left: 150px;
    padding-left: 20px;
    font-family: sans-serif;
    height: 100vh;
}
div#overlay {
    content: ""; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    opacity: 0.5;   
    z-index: 989;
}

ul.flashmessages {
    font-size: 133%;
    font-weight: bold;
    width: 95%;
    padding: 20px;    
    border: 2px solid #cccccc;
    background-color: #eeeeee;
}
ul.flashmessages:has(li.flashmessages-ok) {
    border: 2px solid limegreen;
    background-color:yellowgreen;
}
ul.flashmessages:has(li.flashmessages-error) {
    border: 2px solid crimson;
    background-color: lightcoral;
}

h2 {
    font-family: 'Lalezar';
    font-weight: normal;
}
h1 {
    font-family: 'Lalezar';
    font-weight: normal;
}
/* Map */
#map { width: 90vw; height: 80vh; }

div#commands {
    position: absolute;
    top: 5px;
    right: 20px;
    font-size: 200%;
    padding: 7px;
    border: 2px solid blue;
    background-color: lavender;
}
div#commands a { padding: 9px; }
div#commands a:hover {
    background-color: rgb(0, 0, 238);
    color: white;
}

.hiddenRectangle { display: none; }


/* JQuery ComboBox */
  .custom-combobox {
    position: relative;
    display: inline-block;
  }
  .custom-combobox-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    margin-left: -1px;
    padding: 0;
  }
  .custom-combobox-input {
    margin: 0;
    padding: 5px 10px;
  }
  
  div#showWindow select {
      background-color: rgb(246, 246, 246);
      padding: 5px;
  }
  
  div#showWindow input[type="text"] {
      background-color: rgb(246, 246, 246);
      padding: 5px;      
  }
  
  div#showWindow input[type="datetime"] {
      background-color: rgb(246, 246, 246);
      padding: 5px;      
  }  
  
  table.dataTable tbody tr:hover {
   background-color:#eeeeee !important;
}
  table#measurementsTable .nuclide { width: 250px; background-color: #cccccc; }
  table#measurementsTable .nuclide input.custom-combobox-input { border: 1px solid green; width: 150px; }
  table#measurementsTable .activity { width: 580px; background-color: #eeeeee; }
  table#measurementsTable .activity input.custom-combobox-input { border: 1px solid green; width: 80px; }
  table#measurementsTable .activity input[type="text"] { width: 120px; }
  table#measurementsTable .uncertainty { width: 380px; background-color: #cccccc; }
  table#measurementsTable .uncertainty input.custom-combobox-input { border: 1px solid green; width: 80px; }  
  table#measurementsTable .uncertainty input[type="text"] { width: 120px; }
  
  div#version {
      width: 100%;
      text-align: center;
      margin-top: 100px;
  }  
  
  div.checkTowerParent { display: flex; width: 900px; }
  div.checkTower { 
      width: 120px;
      border: 1px solid grey;
      flex: 1;
      text-align: center;
      padding: 5px;
      /* background-color: #e6ffee; */
      background-color: #bbbbbb;
      font-weight: bold;
      font-style: italic;
  }
  div.checkTower.isInactive {
      /* background-color: #ffe6e6; */
      background-color: white;
      font-weight: normal;
      font-style: normal;
  }
  div.checkTower a { color: black; }
  
  /* Forms */
  input:valid { border: 1px solid green; }
  input:invalid { border: 1px solid red; background-color: #fceff1; }
  
  
  /* Popup Menu im Admin Bereich */
#popupMenu {
    display: none;
    position: absolute;
    z-index: 999;
    background-color: aliceblue;
    width: 180px;
    padding: 5px;
    margin: 5px;
}
#popupMenu span {
    display: block;
    padding: 2px;
}
#popupMenu span.activeButton:hover {
    background-color: blue;
    color: white;
    cursor:pointer;
}
#popupMenu span.greyButton:hover {
    background-color:silver;
    color:white;
}
