.button {
  background-color: var(--accent-bg-colour);
  border: none;
  border-radius: 8px;
  color: var(--text-colour);
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  vertical-align: middle;
}
.button:visited {
  color: var(--text-colour);
}

.button.large {
  padding: 16px 32px;
  font-size: var(--font-size-large);
}
.button.nav {
  font-size: var(--font-size-xlarge);
  font-weight: bold;
  min-width: 100px;
  padding: 16px 32px;
  border-radius: unset;
}
/* new */
.button.create {
  background-color: var(--colour-new);
}
/* show */
.button.read {
  background-color: var(--colour-show);
}
/* edit */
.button.update {
  background-color: var(--colour-edit);
}
/* delete */
.button.delete {
  background-color: var(--colour-delete);
}
.button.index {
  background-color: var(--colour-index);
}
/* refresh */
.button.refresh {
  background-color: var(--colour-refresh);
}
.button.other {
  background-color: var(--colour-misc);
}

.button:hover {
  background-color: var(--text-colour);
  color: var(--table-text-colour);
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--accent-bg-colour);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: darkgreen;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
div.crud-buttons {
  .button {
    font-size: var(--font-size);
  }
}

div.notices {
  color: red;
}

div.entry {

}

div.entry.header {
  max-width: 50%;

  div.instructions {
    width: 69%;
    text-align: left;
  }

  span {
    display: block;
    font-size: var(--font-size-large);
  }
}

div.entry.view {

}

div.entry.thumb {
  img {
    max-width: 320px;
    max-height: 320px;
  }
}

div.entry.list {

}

div.entry.list.invalid {

}

div.entry.list.failed {

}

div.entry.edit {

}

div.entry.form {

}
div[id^="nav-"] {
  text-align: -webkit-center;
  width: 100%;
}

div.nav {
  text-align: -webkit-center;
  width: 100%;
}

div#nav {
  width: 100%;
}

div#nav-bar {
  table {
    border-spacing: 1px;
    td {
      min-width: 100px;
    }
  }
}

div#nav-home {
  table {
    min-width: 20%;
    border-spacing: 13px;
    border: none;
  }
}
table {
  border: var(--table-border);
  border-collapse: collapse;
  min-width: 720px;
  background-color: var(--table-bg-colour);
  color: var(--table-text-colour);

  th, td {
    text-align: center;
    padding: 13px;
    border: var(--table-border);
  }

  th {
    position: sticky;
    top: 0;
  }

  .left {
    text-align: left;
  }

  .right {
    text-align: right;
  }

  input[type="text"], input[type="number"] {
    display: block;
  }
}

table.list {

}

table.list.view {
  tr {
    td {
      text-align: left;
    }
  }
}

table.list.interact {
  tr {
    td {
      a:not(.button) {
        text-decoration: none;
        color: var(--table-text-colour);
      }
      a {
        display: block;
      }
    }
  }

  tr:hover {
    background-color: var(--table-bg-colour-hover);
  }
  thead {
    tr:hover {
      background-color: inherit;
    }
  }

  tr:hover {
    background-color: var(--table-bg-colour-hover);
  }

  tr.stock-empty {
    background-color: red;
  }
  tr.stock-empty:hover {
    background-color: crimson;
  }

  tr.stock-low {
    background-color: yellow;
  }
  tr.stock-low:hover {
    background-color: goldenrod;
  }
}

table.form {
  input[type="text"], input[type="number"] {
    width: 98%;
    font-size: var(--font-size);
  }

  tr {
    th {
      text-align: right;
    }
  }
}

table.form.search {

  tr {
    th {
      text-align: center;
    }
    th, td {
      border: none;
    }
  }

  table.inner {
    min-width: auto;
    display: inline-block;
    tr:hover {
      background-color: var(--table-bg-colour-hover);
    }
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --bg-colour: #343434;
  --accent-bg-colour: grey;
  --colour-new: darkviolet;
  --colour-show: darkcyan;
  --colour-edit: darkgreen;
  --colour-delete: darkred;
  --colour-index: darkslategrey;
  --colour-refresh: darkslateblue;
  --colour-misc: darkgoldenrod;


  --font-size: 16px;
  --font-size-large: 18px;
  --font-size-xlarge: 21px;
  --base-fonts: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --text-colour: lightgrey;
  --link-colour: #1a451e;
  --link-colour-visited: #004b0e;

  --table-bg-colour: lightgrey;
  --table-bg-colour-hover: grey;
  --table-text-colour: black;
  --table-border: groove 1px black;
}

body, header {
  background: var(--bg-colour);
  color: var(--text-colour);
  font-family: var(--base-fonts);
  font-size: var(--font-size);
}

a {
  color: var(--link-colour);
}
a:visited {
  color: var(--link-colour-visited);
}

h1.header {
  a, a:visited {
    color: var(--accent-bg-colour);
  }
}

textarea {
  width: 640px;
  height: 480px;
}

div#main {
  text-align: -webkit-center;
}

div#log-view {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  table {
    width: 100%;
    border: none;
    border-top: var(--table-border);
    background-color: var(--accent-bg-colour);
    td {
      text-align: left;
      padding: 13px;
    }
  }
}

div.separator {
  height: 36px;
}
div.separator.med {
  min-height: 72px;
}
div.separator.large {
  min-height: 108px;
}
div.separator.xlarge {
  min-height: 144px;
}
div.separator.xsmall {
  height: 9px;
}
div.separator.small {
  height: 18px;
}
div.separator.logs {
  min-height: 240px;
}
