body {
	background-color: black;
	color: #009900;
	font-size: 16px;
}

ul {
	margin-top: 0.5ex;
}

ul#docs li {
	list-style-type: square;
}

div.bom {
	margin-left: 2em;
	margin-bottom: 2ex;
}

div#message {
	margin-top: 1ex;
	margin-bottom: 1ex;
	border-left: solid thick;
	font-family: monospace;
	padding-left: 1ex;
}

div.fatal {
	color: red;
	font-size: 18px;
	font-family: monospace;
	background-color: #ff00003d;
}

div.warn {
	color: yellowgreen;
	font-family: monospace;
	background-color: #9acd323d;
}

div.ok {
	color: #009900;
	background-color: #0080003d;
}

nav {
	margin-bottom: 1em;
	color: yellowgreen;
	background-color: #001800;
}

nav a {
	text-decoration-line: none;
	color: mediumseagreen;
	font-variant-caps: small-caps;
	font-family: sans-serif;
	font-weight: bold;
}

nav ul {
	margin: 0;
	list-style-type: square;
	display: inline-block;
	vertical-align: top;
}

tr.attr {
	font-family: sans-serif;
}

tr.attrhdr {
	color: black;
	background-color: #009900;
}

tr.quickattr {
	background-color: #999966;
	color: #004200;
	font-weight: bold;
}

tr.quickattr2 {
	background-color: #525237;
	color: #75d975;
	font-weight: bold;
}

tr.actualpart {
	background-color: #171a06;
}

table.parts th,td {
	border: 1px solid grey;
	border-collapse: collapse;
}

select.filter {
	width: 100%;
}

h2 {
	color: forestgreen;
	font-family: monospace;
	font-style: italic;
	border-top: solid 2px cadetblue;
	margin-bottom: 1ex;
}

h3 {
	margin-bottom: 1px;
}

pre {
	color: grey;
	font-size: small;
}

span.refid {
	font-size: x-small;
	font-family: monospace;
	color: cornflowerblue;
}

span.tagc {
	border: 1px solid green;
	color: green;
	font-family: Tahoma, sans-serif;
	font-size: x-small;
	border-radius: 4px;
	padding-left: 1ex;
	padding-right: 1ex;
	background-color: yellow;
	white-space: nowrap;
}

span.tags {
	border: 1px solid green;
	color: green;
	font-family: Tahoma, sans-serif;
	font-size: x-small;
	border-radius: 4px;
	padding-left: 1ex;
	padding-right: 1ex;
	background-color: #1f290a; /* yellowgreen "foncé à 10%" */
	white-space: nowrap;
}

span.tagp {
	border: 1px solid green;
	color: green;
	font-family: Tahoma, sans-serif;
	font-size: x-small;
	border-radius: 4px;
	padding-left: 1ex;
	padding-right: 1ex;
	background-color: #c1cd32; /* yellowgreen "éclairci" */
	white-space: nowrap;
}

span.tagc a {
	text-decoration: none;
	font-size: x-small;
	vertical-align: middle;
}

span.multivalue {
	margin: 0px 0.5ex 0px 0px;
}

li.lost {
	font-style: italic;
	color: gold;
}

td.filtererrase {
	text-align: center;
}

td.number {
	text-align: right;
}

td.approx {
	font-style: italic;
}

th div.attr {
	font-size: xx-small;
	border-top: solid thin green;
	font-family: monospace;
	white-space: pre;
}

div p.irreversible {
	color: red;
	margin-top: 0;
}

div.irreversible {
	border-style: solid;
	border-color: red;
	border-radius: 1ex;
	border-width: medium;
	padding: 1ex;
	margin: 1em;
}

fieldset {
	display: inline-grid;
}

td.toggle {
	text-align: center;
}

/* Animation: 2 div alternent
 * <div class="togglecontainer">
 *  <div class="togglebox togglebox1">Div 1</div>
 *  <div class="togglebox togglebox2">Div 2</div>
 * </div>
 */
.togglecontainer {
  position: relative;
}

.togglebox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: toggle 2s infinite;
}

.togglebox1 {
  animation-delay: 0s;
}

.togglebox2 {
  animation-delay: 1s;
}

@keyframes toggle {
  0%, 50% {
    opacity: 1;
    z-index: 1;
  }
  50.01%, 100% {
    opacity: 0;
    z-index: 0;
  }
}


 /* Tooltip container (source: https://www.w3schools.com/howto/howto_css_tooltip.asp) */
 /* <div class="tooltip">Hover over me
  *   <span class="tooltiptext">Tooltip text</span>
  * </div> 
  */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

section#globalsearch {
	text-align: center;
	font-family: Helvetica;
}

section#globalsearch ul {
	display: flex;
	justify-content: center;
	gap: 10px;
	list-style-type: none;
}

section#filter {
	display: block;
	overflow-x: auto;
}

section#filter span {
	white-space: pre;
	margin-left: 1em;
	margin-right: 1em;
}

section#results {
	/* margin: 3em; */
	font-family: Helvetica;
	overflow-x: auto;
}

section#results article {
	margin-bottom: 1em;
}

section#results article header {
	font-size: small;
	color: gray;
}

section#results article header a {
	font-size: large;
	font-weight: bold;
}

/* Guide pour flex: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ */
div.taglist {
    display: flex;
	flex-flow: row wrap;
    gap: 1ex;
	margin: 0.5ex;
}

img.vignette {
	margin: 4px;
	padding:4px;
	width: 240px;
	height: 240px;
	background-color: grey;
}

img#supplierlogo {
	height: 128px;
	float: left;
	margin-right: 1em;
	margin-bottom: 1ex;
}

span.outofstock {
	color: red;
	font-weight: bold;
}

span.selectindicator {
	width: 1.5em;
	display: inline-block;
}

.missingitems {
	color: orange;
	font-weight: bold;
}

div#comment {
	clear: both;
	font-style: italic;
}

div#description {
	text-align: center;
	font-size: larger;
}

div.lot {
	background-color: green;
	color: black;
	font-style: italic;
	font-weight: bold;
}

div.oopts {
	color: grey;
	font-size: 12px;
}

img.vignetteref {
  max-width: 128px;
  max-height: 128px;
  float: left;
  margin-right: 0.5ex
}

div.colorbandsh {
	margin: 0 1em;
	padding: 0 10px;
	width: fit-content;
	border-radius: 4px
}

span.colorband {
	display: inline-block;
	width: 8px;
	height: 18px;
	border-right: solid thin;
	vertical-align: bottom
}

span.color0 {
	background-color: black;
}

span.color1 {
	background-color: #582900;
}

span.color2 {
	background-color: red;
}

span.color3 {
	background-color: orange;
}

span.color4 {
	background-color: yellow;
}

span.color5 {
	background-color: green;
}

span.color6 {
	background-color: blue;
}

span.color7 {
	background-color: purple;
}

span.color8 {
	background-color: gray;
}

span.color9 {
	background-color: white;
}

span.color10 {
	background-color: gold;
}

span.color11 {
	background-color: silver;
}
