html, body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #888888;
  background: #FAFAFA;
}

table {
  text-align: left;
  width: 100%
}

table tr {
  vertical-align: top;
}

form, table {
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  background: #FFFFFF;
}

form {
  max-width: 100%;
}

form h1 {
  margin: 0 0 20px 0;
}

form table {
  margin: 10px 0;
}

form .actions {
  padding: 0; 
}

input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1em;
  box-sizing: border-box;
  border: 0;
  padding: 10px;
  background: #F5F5F5;
  margin: 10px 0;
  display: block;
  width: 100%;
  border: 1px solid #CCCCCC;
  border-radius: 5px;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: none;
  border: 1px solid #11CCFF;
  outline: none;
  background: #FAFAFA;
}

input[type="submit"],
button[type="button"] {
  width: auto;
  cursor: pointer;
}

textarea {
  height: 150px;
  resize: vertical;
}

#items textarea {
  height: 43px;
}

#items input,
#items textarea {
  margin: 0;
}

button[type="button"].remove {
  background: #DD0055;

}

#add-assemblyItem {
  margin: auto;
  display: block;
  font-weight: bold;
  background: #00FF77;
}

#add-partItem {
  margin: auto;
  display: block;
  font-weight: bold;
  background: #00FF77;
}

#add-productionItem {
  margin: auto;
  display: block;
  font-weight: bold;
  background: #00FF77;
}

.download {
  opacity: 0.5;
}

a {
  color: #00BBFF;
  text-decoration: none;
}

a:hover  {
  color: #11CCFF;
}

#content > h1 {
    float: left;
}

h1 {
  margin: 20px 0;
}

h1, h2 {
  font-weight: normal;
}

.button,
input[type="submit"],
button[type="button"] {
  background: #00BBFF;
  color: #FFFFFF;
  padding: 10px;
  display: inline-block;
  border-radius: 0;
  border: 0;
  border-radius: 5px;
}

.button:hover,
input[type="submit"]:hover {
  color: #FFFFFF;
  background: #11CCFF;
}

header {
  border-bottom: 10px solid #00BBFF;
  max-width: 100%;
  vertical-align: middle;
  padding: 20px;
  background: rgb(255, 234, 19);
}

header #logo {
  padding: 0 20px;
  width: 150px;
}

header #logo img {
  vertical-align: middle;
}

table#items tr td {
  background: transparent;
  border: none;
}

table {
  border-spacing: 0;
}

table td {
  background: #fefefe;
  vertical-align: middle;
  padding: 2px;
  border-bottom: 1px solid #aaaaaa;
}

table tr:nth-child(even):hover td {
  color: #000000;
}

table tr:nth-child(odd):hover td {
  color: #000000;
}

table tr:nth-child(even) td {
  background: #eeeeee;
  vertical-align: middle;
}

table tr:nth-child(odd) td {
  background: #dddddd;
}

table tr[data-status*="stockwarning"]:nth-child(even) td {
  background: rgba(255, 234, 19,0.5);
}

table tr[data-status*="stockwarning"]:nth-child(odd) td {
  background: rgba(255, 234, 19,0.5);
}
table tr[data-status*="stockemergencie"]:nth-child(even) td {
  background: rgba(255, 0, 0,0.25);
}

table tr[data-status*="stockemergencie"]:nth-child(odd) td {
  background: rgba(255, 0, 0,0.25);
}

table tr[data-status*="open"]:nth-child(even) td {
  background: #ffeeee;
}

table tr[data-status*="open"]:nth-child(odd) td {
  background: #ffdddd;
}

table tr[data-status*="closed"]:nth-child(even) td {
  background: #eeffee;
}

table tr[data-status*="closed"]:nth-child(odd) td {
  background: #ddffdd;
}

table tr[data-status*="done"]:nth-child(even) td {
  background: #eeeeff;
}

table tr[data-status*="done"]:nth-child(odd) td {
  background: #ddddff;
}

.actions {
  padding: 20px 0;
  text-align: right;
}

.dropdown-button {
  display: inline-block;
  position: relative;
  outline: none;
}

.dropdown-button .items {
  background: #FFFFFF;
}

.dropdown-button .items section:first-child {
  border: none;
  padding: 0;
  margin: 0;
}

.dropdown-button .items section {
  border-top: 1px solid #EFEFEF;
  padding: 5px 0 0 0;
  margin: 5px 0 0 0;
}

.dropdown-button .button {
  width: 30px;
  height: 20px;
  box-shadow: 0 1px 2px #999999;
  border-radius: 2px;
  background: #fefefe;
  background: linear-gradient(#FFFFFF, #F5F5F5);
  color: #999999;
  text-align: center;
  vertical-align: middle;
  line-height: 100%;
  padding: 3px;
}

.dropdown-button .button:hover {
  background: #ffffff;
}

.dropdown-button .button:active,
.dropdown-button.active .button {
  background: linear-gradient(#F0F0F0, #F5F5F5);
  box-shadow: 0 0px 2px #999999;
}

.dropdown-button .button::after {
  font-size: 10pt;
  content: '\2bc6';
}

.dropdown-button .items {
  display: none;
}

.dropdown-button .items a {
  display: block;
  color: #999999;
  background: #ffffff;
  text-shadow: none;
  border: none;
  width: 100%;
  text-align: left;
  border-radius: 0;
  padding: 3px;
  height: auto;
  line-height: normal;
  box-sizing: border-box;
  margin: 0;
}

.dropdown-button .items a:hover { 
  color: #000000;
  background: #f0f0f0;
}

.dropdown-button.active .items {
  display: block;
}

.dropdown-button.right .items {
  left: auto;
  right: 0;
}
.dropdown-button .items {
  position: absolute;
  min-width: 150px;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
  margin-top: 1px;
  left: 0;
    z-index: 1;
}

#content {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  overflow: auto;
}

.status {
  border-radius: 10px;
  width: 16px;
  height: 16px;
  background: #CCCCCC;
}

.status[data-status*="yellow"] {
  background: rgba(255,255,0,0.7);
}

.status[data-status*="red"] {
  background: rgba(255,0,0,0.7);
}

.status[data-status*="green"] {
  background: rgba(0,255,0,0.7);
}

.assembly-head {
  display: flex;
  justify-content: space-between;
  clear: both;
}

.assembly-head img {
  width: 250px;
  margin-right: 20px;
}

.productionplan-select {
  margin: 5px;
  padding: 5px;
  width: auto;
}

.productionplan-input {
  margin: 5px;
  padding: 5px;
  width: auto;
}

.operation { grid-area: operation; background-color: rgba(255,255,0,0.5);}
.elements { grid-area: elements; }
.deleteButton { grid-area: deleteButton; }

.productionplan-grid-container {
  display: grid;
  /*grid-template-rows: repeat(3, 1fr);*/
  /*grid-template-columns: repeat(8, 1fr);*/
  grid-template-columns: 80px auto 50px;
  grid-auto-rows: auto;
  grid-template-areas:
    'operation elements deleteButton';
  grid-gap: 5px;
  background-color: rgba(100, 100, 100, 0.1);
  margin: 10px;
  padding: 5px;
  box-sizing: border-box;
}

.productionplan-grid-container > div {
  /*background-color: rgba(255, 255, 255, 0.8);*/
  text-align: center;
  padding: 5px 0;
}

.element {

}

.productionplan-elements-grid-container {
  display: grid;
  /*grid-template-rows: repeat(3, 1fr);*/
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  grid-gap: 10px;
  /*background-color: #2196F3;*/
  /*padding: 5px;*/
}

.productionplan-elements-grid-container > div {
  background-color: rgba(255, 255, 255, 0.8);
  text-align: left;
  padding: 5px 0;
}