
/*
Best readability fonts: Lustria, Open Sans, sans-serif
Best in order for paras (sans or not): Lustria, Noto Sans, Verdana, Roboto Slab, sans-serif, serif
Best in order for headers (sans or not): Roboto Slab, Noto Sans, serif (and Nixie One for big / caps stuff) (and Verdana if sans required)
<link href="//fonts.googleapis.com/css?family=Lustria|Noto+Sans|Roboto+Slab|Nixie+One" rel="stylesheet" type="text/css">

a fun font for barcode text:
<link href="//fonts.googleapis.com/css?family=Libre+Barcode+39+Extended" rel="stylesheet" type="text/css">

This css was made from personal preferences after prior favourites bootstrap and mini.css (which is no longer maintained)
It also makes use of checkbox and stack layouts similar to picnic css, but note they're not interoperable

https://coolors.co/cae0ff-d7be82-f2545b-616163-3e363f
*/

:root {
  --std: #ccc;
  --action: #cae0ff; /* Beau Blue */
  --alert: #d7be82; /* Crayola Gold Crayola */
  --warning: #f2545b; /* Sizzling Red */
  --err: #fdedee; /* Lavender Blush */
  --grey: #616163; /* Dim Gray */
  --dark: #3e363f; /* Black Coffee */
  --black: #333;
  --white: #fff;
  --cream: #FFFFFC;
  --green:  #86E9B9;

  --inner: #ddd;
  --outer: #555;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--cream);
  color: #5F5C64;
  font-size: 1em;
  /*font-weight: 100;*/
  /*font-family: 'Lustria', 'Times New Roman', serif;*/
  /*font-family: 'Noto Sans', Verdana, Arial, sans-serif;*/
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

nav, .nav {
  background: #24201e; /*#3877ff;*/
  height: 50px;
}
.sticky, .bottom {
  position: -webkit-sticky;
  position: sticky;
  z-index: 1101;
}
.sticky { top: 0; }
.bottom { bottom: 0; }

.scrollin { opacity: 0; }
.scrolled {
  opacity: 1;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

@media screen and (min-width: 1130px) { 
  [type="checkbox"].toggle:checked + * { display: none; } 
}
@media screen and (max-width: 1130px) {
  [type="checkbox"].toggle + * { display: none; }
  [type="checkbox"].toggle:checked + * { display: block; }
}
[type="checkbox"].toggle { display: none !important; }
label.toggle {
  font-size: 1.6rem;
  font-weight: bold;
  text-shadow: 2px 2px 3px 1px #333;
  cursor: pointer;
  opacity: 0.8;
  margin-right: 11px;
}
label.toggle:not(.close) {
  -webkit-transform: scale(1.5, 1);
  -moz-transform: scale(1.5, 1);
  -o-transform: scale(1.5, 1);
  transform: scale(1.5, 1);
  padding-left: 0px;
  padding-right: 0px;
}
label.toggle::before { content: '\00a0\2261\00a0'; }
label.close::before { content: '\00D7' !important; }

#panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  min-width: 23%;
  border-right: 2px solid #ccc;
  padding: 90px 5px 5px 10px;
  background: #eee; 
  z-index: 1000;
}
@media (max-width: 1000px) { #panel { width: 99%; } }

.container { width: 100%; }
.container.small {
  max-width: 1000px;
  margin: 0 auto 0 auto;
}
.container.big {
  max-width: 1200px;
  margin: 0 auto 0 auto;
}
@media (min-width: 1500px) { .container:not(.small) { max-width: 1500px; } }
.page {
  max-width: 800px;
  margin: 0 auto 200px auto;
}
#panel + .page { margin: 0 auto 200px 33%; }
@media (max-width: 1200px) { #panel + .page { margin: 0 auto 200px 29%; } }
@media (max-width: 1130px) { #panel + .page { margin: 0 auto 200px auto; } }

button, .button, [type=submit] {
  text-decoration: none !important;
  display: inline-block;
  text-align: center;
  letter-spacing: inherit;
  margin: 0;
  padding: 0.3em 0.9em;
  vertical-align: middle;
  background: var(--std);
  color: inherit;
  border: 0;
  border-radius: 0.2em;
}
button, .button { width: auto; }
button:hover, .button:hover, [type=submit]:hover { box-shadow: inset 0 0 0 99em rgba(0, 0, 0, 0.1); }
.button[disabled], button[disabled], input[disabled] { 
  cursor: default;
  box-shadow: none;
}

.action { background: var(--action); }
.alert { background: var(--alert); }
.warning { background: var(--warning); color: #111; }
.err:hover { box-shadow: inset 0 0 0 99em var(--err); } 
.grey { background: var(--grey); color: #eee; }
.dark { background: var(--dark); color: #eee; }
.black { background: var(--black); color: #eee; }
.black .button:not(.black) { color: #5f5c64; }
.white { background: var(--white); }
.cream { background: var(--cream); }
.green { background: var(--green); }
.well { background: var(--cream); border-color: #333; }
.statement { font-family:'Nixie One', 'Roboto Slab', Verdana, Arial, sans-serif; }
.transparent { background: transparent !important; }
.shadow {
  -moz-box-shadow: 0px 2px 8px 1px #666;
  -webkit-box-shadow: 0px 2px 8px 1px #666;
  box-shadow: 0px 2px 8px 1px #666;
}
.light {
  /*background-color: #FFFFFC;*/
  -moz-box-shadow: 0px 2px 8px 1px #ccc;
  -webkit-box-shadow: 0px 2px 8px 1px #ccc;
  box-shadow: 0px 2px 8px 1px #ccc;
}
a.shadow:not(.button) {
  background: #f9f2f4;
  padding: 1px 3px 1px 3px;
}
a.light:not(.button) { padding: 1px 3px 1px 3px; }
p.light {
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #999;
}

.bordered { border: 1px solid #999; }
.bordered-action { border: 1px solid var(--action); }
.bordered-alert { border: 1px solid  var(--alert); }
.bordered-warning { border: 1px solid  var(--warning); }
.bordered-cream { border: 1px solid var(--cream); }
.bordered-green { background: var(--green); }

.right {
  float: right;
  position: relative;
}
.centre { text-align: center; }
.print { display: none !important; } /* complemented by .screen on the print layout */

.p2 { padding: 2px; }
.p5 { padding: 5px; }
.p10 { padding: 10px; }
.pt5 { padding-top: 5px !important; }
.pt10 { padding-top: 10px !important; }
.pt20 { padding-top: 20px !important; }
.pb5 { padding-bottom: 5px !important; }
.pb10 { padding-bottom: 10px !important; }
.pb20 { padding-bottom: 20px !important; }

.m2 { margin: 2px; }
.m5 { margin: 5px; }
.m10 { margin: 10px; }
.mt5 { margin-top: 5px !important; }
.mt10 { margin-top: 10px !important; }
.mt20 { margin-top: 20px !important; }
.mb5 { margin-bottom: 5px !important; }
.mb10 { margin-bottom: 10px !important; }
.mb20 { margin-bottom: 20px !important; }
.up1 { margin-top: -1px !important; } /* useful for some nicer-looking overlap, occasionally */

a {
  color: #428bca;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus { outline: thin dotted; }

h1, h2, h3, h4, h5, h6 {
  word-wrap: break-word;
  font-family: 'Roboto Slab', 'Noto Sans', Arial, Verdana, sans-serif;
  margin-top: 40px;
  margin-bottom: 5px;
}
h3 {
  line-height: 1.6em;
  font-size: 1.4em;
}
h4 {
  line-height: 1.6em;
  font-size: 1.3em;
}
h5 {
  line-height: 1.6em;
  font-size: 1.2em;
}
h6 {
  line-height: 1.6em;
  font-size: 1.1em;
}

p {
  margin: 0px 0px 18px 2px;
  text-align: justify;
  line-height: 1.6em;
  letter-spacing: 0.1em;
  word-wrap: break-word;
}

ul {
  margin-bottom: 30px;
  margin-left: -40px;
  list-style-type: none;
}
ul li {
  margin-top: 5px;
  line-height: 1.3em;
  letter-spacing: 0.1em;
  word-wrap: break-word;
}
ol { margin-bottom:30px; }
ol li {
  margin-top: 5px;
  line-height: 1.3em;
  letter-spacing: 0.1em;
  word-wrap: break-word;
}

code, pre, kbd, samp { 
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace; 
}
code {
  padding: 2px 4px;
  font-size: 90%;
  color: #c7254e;
  white-space: nowrap;
  background: #f9f2f4;
  border-radius: 0.2em;
}
pre {
  background: #333; /*#f5f5f5*/
  color: white; /*#333333;*/
  margin-bottom: 0 0 35px 10px;
  display: block;
  padding: 9.5px;
  font-size: 13px;
  line-height: 1.428571429;
  word-break: break-all;
  word-wrap: break-word;
  border: 1px solid #ccc;
  border-radius: 0.2em;
}
pre code {
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre-wrap;
  background-color: transparent;
  border-radius: 0;
}

blockquote {
  text-align: justify;
  line-height: 1.3em;
  margin: 50px;
  page-break-inside: avoid;
  padding: 10px 20px;
  border-left: 5px solid #eee;
}
blockquote p {
  font-size: 17.5px;
  font-weight: 300;
  line-height: 1.25;
}
blockquote p:last-child {
  margin-bottom: 0;
}
blockquote small {
  display: block;
  line-height: 1.428571429;
  color: #999999;
}

.scroll { overflow-y: scroll; }
.code .scroll { max-height: 300px; }

hr {
  border-color: #666666;
  margin-top: 60px;
  margin-bottom: 50px;
  border-top: 1px solid #666;
  border-bottom: 1px solid #999;
}

hr.small {
  border-color: #ccc;
  margin-top: 10px;
  margin-bottom: 10px;
  border-top: none;
  width: 60%;
  margin-left: 0px;
}

.thumbnail {
  margin: 5px;
  background: white;
}

.ref p {
  line-height: 1.1em;
  margin-top: 2px;
  letter-spacing: 0em;
}
.ref a {
  display: block;
  width: 700px;
  word-wrap: break-word;
  overflow: none;
}

.figure {
  border-top: 1px solid #ccc;
  font-size: 1em;
  line-height: 1.1em;
  margin: 0;
  padding: 5px 0 0 0;
}

.flex {
  box-sizing: border-box;
  display: flex;
  flex: 0 1 auto;
  flex-flow: row wrap;
}
.flex > * {
  box-sizing: border-box;
  flex: 1 1 auto;
}
.one > * { width: 100%; }
.two > * { width: 50%; }
.three > * { width: 33.33333%; }
.four > * { width: 25%; }
.five > * { width: 20%; }
.six > * { width: 16.66666%; }
.seven > * { width: 14.28571%; }
.eight > * { width: 12.5%; }
.nine > * { width: 11.11111%; }
.ten > * { width: 10%; }
.eleven > * { width: 9.09091%; }
.twelve > * { width: 8.33333%; }
.table, .c12, .c11, .c10, .c9, .c8, .c7, .c6, .c5, .c4, .c3, .c2, .c1 {
  float: left;
  border-radius: 0.4em;
}
.table, .c12 { max-width: 100%; flex-basis: 100%; }
.c11 { max-width: 91.66667%; flex-basis: 91.66667%; }
.c10 { max-width: 83.33333%; flex-basis: 83.33333%; }
.c9 { max-width: 75%; flex-basis: 75%; }
.c8 { max-width: 66.66667%; flex-basis: 66.66667%; }
.c7 { max-width: 58.33333%; flex-basis: 58.33333%; }
.c6 { max-width: 50%; flex-basis: 50%; }
.c5 { max-width: 41.66667%; flex-basis: 41.66667%; }
.c4 { max-width: 33.33333%; flex-basis: 33.33333%; }
.c3 { max-width: 25%; flex-basis: 25%; }
.c2 { max-width: 16.66667%; flex-basis: 16.66667%; }
.c1 { max-width: 8.33333%; flex-basis: 8.33333%; }
.off1 { margin-left: 8.33333%; }
.off2 { margin-left: 16.66667%; }
.off3 { margin-left: 25%; }
.off4 { margin-left: 33.33333%; }
.off5 { margin-left: 41.66667%; }
.off6 { margin-left: 50%; }
.off7 { margin-left: 58.33333%; }
.off8 { margin-left: 66.66667%; }
.off9 { margin-left: 75%; }
.off10 { margin-left: 83.33333%; }
.off11 { margin-left: 91.66667%; }
@media screen and (max-width: 768px) {
  .flex > .first { order: -999; }
  .flex > .last { order: 999; }
  .one, .two, .three, .four, .five, .six, .seven, .eight, .nine, .ten, .eleven, .twelve {
    width: 100%;
  }
  .c11, .c10, .c9, .c8, .c7, .c6, .c5, .c4, .c3, .c2, .c1 { 
    display: block;
    max-width: 100%;
    flex-basis: 100%;
    width: 100%;
  }
  .off11, .off10, .off9, .off8, .off7, .off6, .off5, .off4, .off3, .off2, .off1 { 
    margin-left: 0px;
  }
}

form { padding: 5px 0 5px 0; }
fieldset { padding: 0px; }
form, fieldset {
  display: flex;
  flex-flow: row wrap;
  border: none;
}
form > input, form > select, form > textarea, form > button, form > .button,
fieldset > input, fieldset > select, fieldset > textarea, fieldset > button, fieldset > .button {
  margin-bottom: 5px;
  width: 65%;
}
form > .checkable, fieldset > .checkable {
  width: 60%;
  margin-bottom: 5px;
}
form > label, fieldset > label {
  padding-top: 3px;
  width: 30%;
  padding-right: 5px;
  text-align: right;
}
form > label.check, fieldset > label.check {
  width: 100%;
  clear: right;
  text-align: left;
  padding-left: 31%;
  margin-bottom: 5px;
}
form > p, fieldset > p {
  margin-left: 31%;
  font-size: 0.8em;
  line-height: 1.2em;
  margin-top: -2px;
  margin-bottom: 12px;
  max-width: 65%;
}

input, select, textarea, button, label.stack {
  border: 1px solid #ccc;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  font-size: 0.9rem;
  font-family: inherit;
  color: inherit;
  background: transparent;
}
input, select, button { height: 30px; }
textarea { min-height: 60px; }
label.stack { min-height: 30px; }
input:focus, select:focus, textarea:focus, button:focus { outline: none; }
select:hover, [type="submit"] { cursor: pointer; }

input.big, select.big { height: 45px; }
.big:not(.container) { font-size: 1.6em; }
button.big, .button.big, a.big { height: 35px; padding:10px 8px 0 10px; }

.stack,
.stack .toggle {
  margin-top: 0;
  margin-bottom: 0;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0;
}
.stack:first-child,
.stack:first-child .toggle {
  border-top-left-radius: 0.2em;
  border-top-right-radius: 0.2em;
}
.stack:last-child,
.stack:last-child .toggle {
  border-bottom-left-radius: 0.2em;
  border-bottom-right-radius: 0.2em;
}
input.stack,
textarea.stack,
select.stack,
label.stack {
  transition: border-bottom 0 ease 0;
  border-bottom-width: 0;
  padding-top: 6px;
}
input.stack:last-child,
textarea.stack:last-child,
select.stack:last-child,
label.stack:last-child { border-bottom-width: 1px; }
input.stack:focus + input,
input.stack:focus + textarea,
input.stack:focus + select,
textarea.stack:focus + input,
textarea.stack:focus + textarea,
textarea.stack:focus + select,
select.stack:focus + input,
select.stack:focus + textarea,
select.stack:focus + select { border-top-color: #0074d9; }

.stack.flex { width: auto; }

.tab.flex {
  border: 1px solid #ccc;
  border-bottom-width: 0px;
  border-radius: 2px;
}
.tab.flex > * {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0px;
}
.tab.flex > *:not(:last-child) { border-right: 1px solid #ccc; }
.tab.flex > input, .tab.flex > select, .tab.flex > div:not(.loader) { width: auto; }
.tab.flex .button:not(.action, .alert, .warning, .grey, .dark, .black, .white, .cream, .green, .well, .transparent) { background: #eee; }
.tab.flex.big > input, .tab.flex.big > select, .tab.flex.big button, .tab.flex.big .button, .tab.flex.big a { height: 45px; }
.tab.flex.big > * { font-size: 1.1em !important; }

.loader { width: 32px; flex: none; }
.loader > .loading { margin: 2px 0px -3px 3px; }
.loader.big > .loading { margin-top: 10px; }

[type=radio], [type=checkbox] {
  opacity: 0;
  width: 0;
  position: absolute;
  display: inline-block; 
}
[type=radio] + .checkable:hover:before, 
[type=checkbox] + .checkable:hover:before,
:focus[type=radio] + .checkable:before,
:focus[type=checkbox] + .checkable:before { border: 1px solid #0074d9; }
[type=radio] + .checkable, [type=checkbox] + .checkable {
  position: relative;
  cursor: pointer;
  padding-left: 1.5em;
  margin-right: .6em; 
}
[type=radio] + .checkable:before, [type=checkbox] + .checkable:before, 
[type=radio] + .checkable:after, [type=checkbox] + .checkable:after {
  content: '';
  position: absolute;
  display: inline-block;
  left: 0;
  top: 8px;
  transform: translateY(-50%);
  font-size: 1em;
  line-height: 1em;
  color: transparent;
  font-family: sans;
  text-align: center;
  box-sizing: border-box;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  transition: all 0.3s; 
}
[type=radio] + .checkable:before, 
[type=checkbox] + .checkable:before { border: 1px solid #aaa; }
:checked[type=radio] + .checkable:after, 
:checked[type=checkbox] + .checkable:after {
  background: #111;
  transform: scale(0.5) translateY(-100%); 
}
[type=checkbox] + .checkable:before { border-radius: 0.2em; }
[type=checkbox] + .checkable:after {
  content: "✔";
  background: none;
  transform: scale(2) translateY(-25%);
  visibility: hidden;
  opacity: 0; 
}
:checked[type=checkbox] + .checkable:after {
  color: #111;
  background: none;
  transform: translateY(-50%);
  transition: all 0.3s;
  visibility: visible;
  opacity: 1;
}

input[type=range] {
  appearance: none;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: linear-gradient(#bbb, #bbb) no-repeat center;
  background-size: 100% 3px;
  cursor: pointer;
}
input[type=range]:hover { opacity: 1; }
input[type=range]::-webkit-slider-thumb {
  height: 24px;
  width: 10px;
  border-radius: 24px;
  background: grey;
  /*position: relative;*/
  /*margin: 5px 0;*/
  cursor: pointer;
  appearance: none;
  pointer-events: all;
  box-shadow: 0 1px 4px 0.5px rgba(0, 0, 0, 0.25);
}
div.range { position: relative; }
div.range > input[type=range] { position: absolute; pointer-events: none; }
div.range > input[type=range]:nth-child(2) { background: none; top: 0; left: 0; }

progress {
  display: block;
  vertical-align: baseline;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 0.75rem;
  width: 100%;
  margin: 5px 0 5px 0;
  border: 0;
  background: var(--inner);
  color: var(--outer);
}
progress::-webkit-progress-value { background: var(--outer); }
progress::-webkit-progress-bar { background: var(--inner); }
progress::-moz-progress-bar { background: var(--outer); }
@keyframes loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading {
  display: inline-block;
  border: 0.25rem solid var(--inner);
  border-left: 0.25rem solid var(--outer);
  border-radius: 50%;
  /*margin: 0.5rem;*/
  min-width: 1rem;
  min-height: 1rem;
  animation: loading 1.2s linear infinite;
  background: transparent;
}
.loading.action, progress.action { --outer: var(--action); }
.loading.alert, progress.alert { --outer: var(--alert); }
.loading.warning, progress.warning { --outer: var(--warning); }
.loading.black, progress.black { --outer: var(--black); }
.loading.big {
  display: block;
  width: 150px;
  height: 150px;
  margin: 50px auto 0 auto;
}

.file {
  position: relative;
  display: block;
  padding: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  cursor: pointer;
  border: 0;
  margin: 0.3em 0;
  border-radius: 0.2em;
  background-color: #ddd;
  background-size: cover;
  background-position: center center;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NDAiIGhlaWdodD0iNjQwIiB2ZXJzaW9uPSIxLjEiPjxnIHN0eWxlPSJmaWxsOiMzMzMiPjxwYXRoIGQ9Ik0gMTg3IDIzMCBDIDE3NSAyMzAgMTY1IDI0MCAxNjUgMjUyIEwgMTY1IDMwMCBMIDE2NSA0MDggQyAxNjUgNDIwIDE3NSA0MzAgMTg3IDQzMCBMIDQ2MyA0MzAgQyA0NzUgNDMwIDQ4NSA0MjAgNDg1IDQwOCBMIDQ4NSAzMDAgTCA0ODUgMjUyIEMgNDg1IDI0MCA0NzUgMjMwIDQ2MyAyMzAgTCAxODcgMjMwIHogTSAzNjAgMjU2IEEgNzAgNzIgMCAwIDEgNDMwIDMyOCBBIDcwIDcyIDAgMCAxIDM2MCA0MDAgQSA3MCA3MiAwIDAgMSAyOTAgMzI4IEEgNzAgNzIgMCAwIDEgMzYwIDI1NiB6Ii8+PGNpcmNsZSBjeD0iMzYwIiBjeT0iMzMwIiByPSI0MSIvPjxwYXRoIGQ9Im0yMDUgMjI1IDUtMTAgMjAgMCA1IDEwLTMwIDAiLz48cGF0aCBkPSJNMjg1IDIwMEwyNzAgMjI1IDM3NiAyMjUgMzYxIDIwMCAyODUgMjAwek0zMTAgMjA1TDMzNyAyMDUgMzM3IDIxOCAzMTAgMjE4IDMxMCAyMDV6Ii8+PHBhdGggZD0ibTQwNSAyMjUgNS0xMCAyMCAwIDUgMTAtMzAgMCIvPjwvZz48L3N2Zz4=);
}
.file input {
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  position: absolute;
}
.circle {
  border-radius: 50%;
  padding-bottom: 100%;
}
.mini {
  border-radius: 50%;
  margin: 0 auto;
  width: 60%;
  padding-bottom: 60%;  
}

table {
  margin-bottom: 2.5rem;
  border-spacing: 0;
  display: block;
  /*overflow-x: auto;*/
  text-align: left;
  width: 100%;
}
table.fixed {
  table-layout: fixed;
}
table.striped tr:nth-of-type(2n) > td { background: #eee; }
@media screen and (max-width: 768px) {
  table.striped tr:nth-of-type(2n) {
    background: #eee;
  }
}
table.striped thead { background: #ccc; }
/*tr {
  display: flex;
  padding: 0;
}*/
td, th {
  border-bottom: 0.1rem solid #e1e1e1;
  padding: 1.2rem 1.5rem;
  /*flex: 1 0 0%;*/
  overflow: scroll;
  /*width: auto;*/
}
td:first-child, th:first-child { padding-left: 2px; }
td:last-child, th:last-child { padding-right: 0; }
table.bordered td, table.bordered th {
  border-right: 0.1rem solid #e1e1e1;
}
@media (min-width: 40rem) {
  table {
    display: table;
    overflow-x: initial;
  }
}

