:root {
  --main-bg-color: #dfddd2; //#D4D4D4;
  --light-bg-color: white;
  --main-strong-color: #990000;
  --second-light-color: #dacab3;
  --strong-color: #315c82;
  --small-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
  --shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  --male-color: #0048D0;
  --female-color: #CC0000;
  --good-color: #6cc56c;
  --bad-color: #fd8383;
  --darken: #00000010;
  --darken-more: #00000020;
  --lighten: #FFFFFF70;
  --card-color: floralwhite;
  --info-color: #efe590;
}
body.printer {
  background-color: #fffff4;
  text-align: center;
  align-items: center;
}
body.upload {
  text-align: center;
}
body.guest {
  background-color: #444;
}

caption {
  background-color: #990000cc;
  font-size: 24px;
  color: #FFF;
  padding: 5px;
  border-radius: 10px 10px 0 0;
}
h4.df{
	font-size: 72px;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-variant-caps: small-caps;
	font-weight: lighter;
	text-align: center;
	margin-top: -100px;
	margin-bottom: 0;
}
table.orderTable {
  padding: 3px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
}

table.orderTable tr:hover {
  background-color: #55555520;
}

th {
  background-color: #ddc9afad;
  padding-bottom: 5px;
  padding-top: 5px;
  }

td.folder {
  width: 100px;
  height: 100px;
  margin-top: 50px;
  position: relative;
  border-radius: 14px;
  box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.59);
  vertical-align: bottom;
  padding-top: 0px;
  padding-right: 15px;
  padding-bottom: 5px;
  padding-left: 15px;
  font-size: 16px;
}

td.folder:hover, td.printer:hover {
  box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.59);
}

td.printer {
  width: 60px;
  height: 60px;
  padding-bottom: 5px;
  position: relative;
  border-radius: 10px 10px 10px 10px;
  box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.59);
  vertical-align: bottom;
}
td.pic_id {
  display: grid;
  grid-template-columns: auto auto 0;
  align-items: center;
  justify-items: start;
  grid-gap: 3px;
}
td.printer, td.folder {
  color: rgba(27, 125, 125, 0.9);
  background-color: white;
}

#newFolder img, #deleteFolder img, td.folder img {
  width: 100px;
  height: 100px;
}

td.printer img, div.printer img {
  width: 40px;
  height: 40px;
  padding: 5px;
}

a {
  font-family: Georgia, "Times New Roman", Times, serif;
  text-decoration: none;
  color: #555;
}

a:hover {
  text-decoration: underline;
  color: #000;
}

table.folder {
  padding: 10px;
  margin: 4px;
}

div.folder {
  background-color: #aad0aa8a;
  border: solid #FFF;
  border-radius: 15px;
  width: fit-content;
  margin: 8px 0;
}

div.foldersGroup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: space-evenly;
  margin-top: 20px;
  margin-bottom: 20px;
}

div.upload{
  border: #ffc107 2px solid;
  background-color: white;
  border-radius: 10px;
}

div.picThumb:hover {
  border-color: #79A;
}

.deletePic {
  height: 200px;
}

.deleteIcon {
  height: 50px;
  padding: 5px;
}

body.guest .uploadIcon {
  height: 40px;
  padding: 0px;
  max-height: 100px;
}

div.person {
  margin: 5px;
  border: 2px solid #AAA;
  border-radius: 23px;
  min-height: 300px;
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

body.guest div.person {
  min-height: 290px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
div.picThumb {
  float: left;
  padding: 5px;
  border: 2px solid #AAA;
  margin: 5px;
  border-radius: 20px 20px 20px 20px;
}

div.person div.picThumb {
  border: none;
}

div.info.ordered {
  background-color: #D4E3BF;
  border-radius: 10px;
}

div.fileName {
  background-color: rgba(255, 255, 255, 0.70);
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
  margin: 0 10px 0 10px;
}

body.guest div.fileName {
  font-size: 1.4em;
  background-color: rgba(255, 255, 255, 0.10);
  color: #EEE;
  border-radius: 12px;
}

div.picThumb>table {
  border: none;
}

div.T {
  background-color: #bec6ce;
}

body.guest div.T {
  background-color: #62666d;
}

td.folder:hover, td.printer:hover {
  box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.59);
}

td.private {
  color: beige;
  font-family: "Courier New", Courier, monospace;
}

tr.pay:hover td.private {
  color: #000;
  background-color: #FDFFD4;
}

div.payHistory{
    display: grid;
    grid-template-columns: 4fr 1fr;
}
div.payHistory div{
  padding: 3px;
  border-bottom: 1px solid #CCC;
  background-color: #FFFFF4AD;
}

body.printer li.menu {
  border: thin solid #FFF;
  padding-bottom: 5px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 8px;
}

body.printer li.menu:hover {
  background-color: rgba(210, 244, 212, 0.69);
}

body.printer li.menu a.menu {
  color: #333;
  font-size: 24px;
  font-variant: small-caps;
}

img.thumbPic {
  max-height: 160px;
  border: 2px solid #FFF;
  padding: 2px;
  margin: 3px;
  border-radius: 20px;
}

div.item div.picture img.thumbPic {
  max-width: 160px;
}

img.microThumbPic{
  max-height: 40px;
  padding-left: 10px;
}

img.orderButton {
  background-color: #ffffff;
  filter: hue-rotate(60deg);
  max-height: 110px;
}

img.thumbPic:hover {
  border-color: #79A;
}
img.orderTableImage {
  max-height: 15px;
  display: none;
}

div.picThumb>table {
  border: none;
  margin-top: 0;
}

.wide {
  width: 100%;
}

table.trueOrder {
  margin-bottom: 300px;
}

table.ordertable td {
  margin: 5px;
  padding: 5px;
}

body.printer table.ordertable th {
  background-color: #BED9EB;
  padding-right: 2px;
  padding-left: 2px;
}

body.printer table.ordertable tr:hover {
  background-color: #FDFFD4;
  -webkit-filter: drop-shadow(1px 1px 2px grey);
}

body.printer table.ordertable td.eraseCell {
  border: medium solid #C00;
  background-color: #FEE;
}

body.printer table.ordertable td.pay {
  border: medium solid #0A0;
  background-color: #EFE;
}

body.printer table.ordertable tr:nth-child(odd) {
  background-color: #d2d2d280;
}

body.printer table.ordertable tr:nth-child(odd):hover {
  background-color: #B7F4C5;
}
p#preview {
  position: absolute;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #FFFFFFD0;
  padding: 5px;
  box-shadow: var(--shadow);
  display: none;
}
#preview img.previewPic {
  max-height: 600px;
  max-width: 600px;
  min-height: 200px;
  min-width: 200px;
  border-radius: 10px;
}
#preview p {
  margin: 3px 15px;
  padding: 3px;
  background-color: #EEE;
}
table.orderTable input[type=number], table.orderTable input[type=text] {
  width: 34px;
  text-align: center;
}

input.inErrorValue {
  background-color: #ffb0b0;
}

input.inCorrValue {
  background-color: #b0ffb0;
}

td.lastOrderItem {
  font-size: 1.7em;
  text-align: center;
}

div.printer {
  clear: both;
}

body.printer table.ordertable tr.viewed {
  background-color: #DDD;
}

body.printer table.ordertable tr.view {
  background-color: #7D9;
}

.button {
  background-color: #1b7d2ccf;
  border: none;
  color: white;
  padding: 10px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
}

.button:hover {
  box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24);
}

button.viewed {
  background-color: #DDD;
}

button.view {
  background-color: #7D9;
}

h1{
  text-align: center;
  color: #FFF;
  text-decoration: none;
  font-variant: small-caps;
  background-color: #990000cc;
  margin: 0;
  font-weight: lighter;
  padding-bottom: 5px;
}

nav ul li {
  display: inline;
  margin: 5px;
}

.accordion {
  background-color: #fffff4;
  color: #444;
  cursor: s-resize;
  width: 100%;
  border: thin solid #d6d6d6;
  text-align: left;
  transition: 0.4s;
  min-height: 38px;
  padding: 0;
}

.active, .accordion:hover {
  background-color: #90E1A0;
}

.panel {
  padding: 0 18px;
  background-color: white;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.closed {
  max-height: 0;
}

table.orderHistory {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
  text-align: center;
}

td.name {
  width: 50px;
}

td.sourceFolder {
  min-width: 200px;
}

td.date {
  width: 90px;
}

td.size {
  width: 40px;
  height: 28px;
}

.size10x15 {
  background-color: #9cdab163;
}

.size4x6, .size20x30 {
  background-color: #c7eae463;
}

td.size3x5, td.size4x6, td.size6x9, td.size15x21, td.size20x30, td.size30x45 {
  color: #555;
}

td.view {
  width: 60px;
  background-color: #9ddab1;
}

td.price {
  width: 70px;
}

td.item {
  font-size: 1.2em;
}

h3.name {
  color: #FFF;
  background-color: #CF4343;
  font-size: 1.3em;
  font-weight: normal;
  padding: 10px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 20px 20px 0px 0px;
  font-family: 'Roboto', sans-serif;
  height: 25px;
  grid-column: 1 / -1;
}

h3.ordered {
  background-color: #8ca5a2;
}

body.guest h3.name {
  background-color: #3e485a;
}

div.info {
  display: inline-block;
}

table.info {
  margin: 0;
}

table.info td {
  font-size: 13px;
  margin: 0;
}

table.info td.totalPrice {
  font-size: 24px;
  pading-bottom: 50px;
}

span.totalPaid {
  padding-left: 50px;
}

body.guest caption {
  font-family: 'Roboto', sans-serif;
  margin-bottom: 10px;
  border-color: #BBB;
}

input#totalPriceSubstract {
  background-color: #CCC;
}

input#limit {
  resize: none;
  height: 20px;
  text-align: center;
}

.plus, .minus {
  cursor: pointer;
}

div.clientOrders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

div.client_order {
  display: grid;
  grid-template-columns: 50px 1fr;
  grid-template-rows: 25px 25px;
  width: fit-content;
  min-width: 175px;
  padding: 0 25px;
  height: 50px;
  font-size: 16px;
  line-height: 25px;
  background-color: #ffffff;
  border: #CCC 3px solid;
  margin: 5px;
  cursor: pointer;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

div.transfered {
  border-color: #00bd37;
}

.client_order img {
  float: left;
  margin: 0 10px 0 -25px;
  height: 50px;
  width: 50px;
  grid-column: 1;
  grid-row: 1/3;
}

.index {
  background-color: #6EB37F;
  border: none;
  color: white;
  padding: 15px 32px;
  margin-top: 25px;
  margin-bottom: 15px;
  text-align: center;
  text-decoration: none;
  display: flex;
  font-size: 26px;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
  border-radius: 15px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  clear: both;
}

canvas#indexPic, img.indexJPG {
  border: thin solid black;
  max-width: 95%;
  padding: 5px;
  margin-bottom: 35px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

div#indexControl {
  clear: both;
  border-radius: 20px;
  background-color: #77dd9940;
  padding: 20px;
  max-width: 400px;
  margin: auto;
}

div#indexControl input, select {
  width: 90%;
  padding: 5px;
  margin: 3px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1.2em;
  text-align: center;
}

div#allPics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-template-rows: auto;
  grid-auto-flow: row;
  justify-content: space-evenly;
}

body.guest div#allPics {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

div.control {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  justify-content: space-evenly;
  padding: 20px;
}

div.control div.button {
  display: grid;
  background-color: white;
  grid-template-columns: 1fr;
  border: 1px solid #999;
  margin: auto;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

div.control div.button:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

div.control img {
  max-height: 100px;
}

label.error {
  background:url("/images/unchecked.png") no-repeat;
  background-size: 14px 14px;
  padding-left: 20px;
  padding-bottom: 2px;
  font-weight: bold;
  color: #b0191c;
}

label.checked {
  background:url("/images/checked.png") no-repeat 0px 0px;
  padding-left: 20px;
  padding-bottom: 2px;
  font-weight: bold;
  color: #19b01c;
}

div.compactView {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 5px;
}

div.item {
  border: #cecece 2px solid;
  display: grid;
  width: fit-content;
  min-width: 160px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  grid-template-areas:
  'picture picture picture'
  'name name name'
  'size3x5 size4x6 size6x9'
  'size10x15  size10x15  size10x15'
  'size15x21 size20x30 size30x45';
}
div.item div.picture {
  height: 180px;
  grid-area: picture;
}
div.item div.pictureName {
  grid-area: name;
  font-size: 1.1em;
  background-color: #bfbfbf47;
  align-self: center;
  padding: 5px;
}
div.item div.size3x5 {
  grid-area: size3x5;
}
div.item div.size4x6 {
  grid-area: size4x6;
}
div.item div.size6x9 {
  grid-area: size6x9;
}
div.item div.size10x15 {
  grid-area: size10x15;
  border: 1px solid #AAA;
}
div.item div.size15x21 {
  grid-area: size15x21;
}
div.item div.size20x30 {
  grid-area: size20x30;
}
div.item div.size30x45 {
  grid-area: size30x45;
}
div.compactView div.size{
  font-size: 1.7em;
  height: 32px;
  border: 1px solid #CCC;
}

/* archive */

div.infos{
  background-color: #f5f5ab;
}
div.infos[data-debut_date]{
  background-color: #75dc75;
}
div.config{
  background-color: #DDD;
  display: grid;
  grid-template-columns: 40px 50px 40px 70px 110px;
  padding: 0;
}
div.orderFolder{
  margin: 5px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 25px 110px 110px 1fr 1fr;
}
div.orderFolder div {
  padding: 3px 10px 3px 10px;
}
div.orderFolder div.config {
  padding: 0;
}
div.larg_papier {
  background-color: #a0d4d6;
}
table.archive {
  padding: 5px;
}

table.archive td {
  padding: 0 15px;
}
table.archive td.priority[data-priority=A]{
  background-color: #ffb7b2;
}
table.archive td.priority[data-priority=B]{
  background-color: #eaea9f;
}
table.archive td.priority[data-priority=C]{
  background-color: #a0e6a8;
}
table.archive td.priority[data-priority=V]{
  background-color: #DDD;
}
div#container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 500px 1fr;
  justify-content: center;
  align-content: center;
}
div#preview {
  display: grid;
  background-color: #ABC;
  grid-column: 1/2;
  grid-row: 1/2;
  justify-content: center;
}

div#preview img {
  height: 500px;
  max-width: 100%;

}
div#control {
  background-color: #CBA;
  grid-column: 2/3;
}

div#corrections{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(7, 1fr);
  height: 100%;
  width: .5em;
  background-color: #CCCCCC;
}

div#corrections div {
  width: 50px;
  border: 10px solid #cccccc;
}

div#corrections button{
  border-radius: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background-color: grey;
}
div#corrections input {
  background-color: #f0f8ff00;
  height: 100%;
  width: 100%;
  text-align: center;
  font-size: 1.6em;
  }
div#lighten button {
  background-color: white;
}
div#darken button {
  background-color: black;
}
div#cyan button {
  background-color: cyan;
}
div#red button {
  background-color: red;
}
div#magenta button {
  background-color: magenta;
}
div#green button {
  background-color: green;
}
div#yellow button {
  background-color: yellow;
}
div#blue button {
  background-color: blue;
}

div.order {
  padding: 10px;
  border: 2px solid #AAA;
  margin: 5px;
  border-radius: 20px 20px 20px 20px;
  grid-column: 1/3;
  grid-row: 2/3;
}

div.orderPic{
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  background-color: #fffff4;
}
div.orderHead {
  display: grid;
  grid-template-columns: 20px 100px 100px 3fr 2fr;
}
div.itemPic{
  width: auto;
}
div.orderPictures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
div.orderPic img.orderPic {
  max-width: 150px;
  max-height: 100px;
}
table#contact td {
  padding: 10px;
}
td.phone{
	background-color: var(--info-color);
}
