:root {
    --main-bg-color: #dfddd2;
    --light-color: white;
    --main-strong-color: #b02a2a;
    --second-light-color: #dcd5cc;
    --strong-color: #315c82;
    --small-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
    --shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    --good-color: #6cc56c;
    --bad-color: #fd8383;
    --darken: #00000010;
    --darken-more: #00000020;
    --lighten: #FFFFFF70;
    --more-lighten: #FFFFFFD0;
    --card-color: floralwhite;
    --info-color: #fff7b6;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    background-color: var(--second-light-color);
    text-align: center;
    align-items: center;
}

body.guest {
    background-color: #444;
}

caption {
    background-color: var(--main-strong-color);
    font-size: 24px;
    color: var(--light-color);
    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);
    background-color: var(--more-lighten);
}

table.orderTable tr:hover {
    background-color: #55555520;
}

table.compactView {
    border: #607d8b54 3px solid;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

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: #114343;
    background-color: var(--light-color);
}

td.hasOrder {
    background-color: #fefece;
}

td.hasOrderDone {
    background-color: #d1e6d1;
}

#newFolder img,
#deleteFolder img,
td.folder img {
    width: 100px;
    height: 100px;
}

td.printer img,
div.printer img {
    width: 40px;
    height: 40px;
    padding: 5px;
}

a {
    text-decoration: none;
    color: #555;
}

a:hover {
    text-decoration: underline;
    color: #000;
}

table.folder {
    padding: 10px;
    margin: 4px;
}

div.folder {
    background-color: var(--darken);
    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;
    width: 100%;
    text-align: center;
    justify-items: center;
}

div.upload {
    border: #ffc107 2px solid;
    background-color: var(--light-color);
    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(220px, 1fr));
}

div.picThumb {
    float: left;
    padding: 10px 5px;
    border: 2px solid #9e9e9e;
    margin: 5px;
    border-radius: 20px;
    min-height: 265px;
    box-shadow: var(--small-shadow);
    background-color: var(--lighten);
}

body.guest div.picThumb {
    min-height: 100px;
}

div.person div.picThumb {
    border: none;
}

div.info.ordered {
    background-color: #b3b3b361;
    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;
}

nav {
    padding: 20px;
}

ul#navigation {
    padding: 0;
}

li.menu {
    border: 2px solid #FFF;
    box-shadow: var(--small-shadow);
    border-radius: 5px;
    background-color: var(--lighten);
    padding: 10px 20px;
    margin: 15px;
}

a.menu:hover {
    text-decoration: none;
}

li.menu:hover {
    background-color: var(--card-color);
}

a.menu li.menu {
    color: #333;
    font-size: 24px;
    font-variant: small-caps;
}

img.thumbPic {
    max-height: 160px;
    max-width: 216px;
    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;
}

table.orderTable th {
    background-color: #BED9EB;
    padding-right: 5px;
    padding-left: 5px;
    font-weight: normal;
}

table.orderTable tr:hover {
    background-color: #FDFFD4;
    box-shadow: drop-shadow(1px 1px 2px grey);
}

table.orderTable td.eraseCell {
    border: medium solid #C00;
    background-color: #FEE;
}

table.orderTable td.pay {
    border: medium solid #0A0;
    background-color: #EFE;
}

table.orderTable tr:nth-child(odd) {
    background-color: #d2d2d280;
}

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] {
    text-align: center;
    font-size: large;
}

table.orderTable input[type=number] {
    width: 40px;
}

input.inErrorValue {
    background-color: #ffb0b0;
}

input.inCorrValue {
    background-color: #b0ffb0;
}

td.lastOrderItem {
    font-size: 1.7em;
    text-align: center;
}

div.printer {
    clear: both;
}

table.orderTable tr.viewed {
    background-color: #DDD;
}

table.orderTable tr.view {
    background-color: #7D9;
}

.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 {
    font-variant: small-caps;
    font-size: 3em;
}

h1,
h2 {
    font-weight: lighter;
}

body.guest h1,
body.guest h2,
body.guest p {
    color: var(--light-color);
}

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: var(--light-color);
    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;
    font-size: large;
}

.size4x6,
.size20x30 {
    background-color: #c7eae463;
}

td.size3x5,
td.size4x6,
td.size6x9,
td.size15x21,
td.size20x30,
td.size30x45 {
    color: #555;
    background-color: var(--light-color);
    border: #d6c4c4 1px solid;
    border-radius: 5px;
    font-size: large;
}

td.view {
    width: 60px;
    background-color: #9ddab1;
}

td.price {
    width: 70px;
}

td.item {
    font-size: 1.2em;
}

h3.name {
    color: #FFF;
    background-color: var(--strong-color);
    font-size: 1.3em;
    padding: 10px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 20px 20px 0px 0px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    height: 25px;
    grid-column: 1 / -1;
    grid-row: 1;
}

div.info {
    display: inline-block;
    background-color: var(--info-color);
    padding: 20px;
}

table.info {
    margin: 0;
}

table.info td {
    font-size: 13px;
    margin: 0;
}

table.info td.totalPrice {
    font-size: 1.3em;
    padding-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;
    font-size: larger;
}

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: var(--light-color);
    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: var(--shadow);
    clear: both;
}

canvas#indexPic,
img.indexJPG {
    max-width: 95%;
    margin-bottom: 35px;
    box-shadow: var(--shadow);
}

div#indexControl {
    clear: both;
    border-radius: 20px;
    background-color: var(--lighten);
    padding: 20px;
    max-width: 400px;
    margin: 40px auto;
    box-shadow: var(--shadow);
}

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;
}

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: var(--light-color);
    color: black;
    grid-template-columns: 1fr;
    border: 1px solid #999;
    margin: auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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: #fff493e6;
    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.6em;
    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: var(--light-color);
}

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);
}

#modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding: 50px 0;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 90%;
    /* Full height */
    text-align: center;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}


/* Modal Content */

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

#modal img.fullScreen {
    max-height: 100vh;
    max-width: 100vw;
}


/* The Close Button */

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

img.smallIcon {
    height: 30px;
    cursor: pointer;
}

#modal table {
    background-color: floralwhite;
}

p#saveStatus {
    background-color: var(--good-color);
    color: var(--light-color);
    font-size: 3em;
}

div#footer-wrapper {
    left: 0;
    bottom: 0;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #00000045;
    color: var(--light-color);
    text-align: center;
    margin-top: 20px;
}

div#source {
    display: inline-block;
    box-shadow: var(--shadow);
    margin: 25px;
    background-color: var(--more-lighten);
    border-radius: 10px;
    text-align: left;
}

div#source h2 {
    border-bottom: 1px solid;
    padding: 0 15px 20px 15px;
    font-weight: 300;
    font-size: larger;
}

li.list-item {
    padding: 5px;
}
input#remark{
    width:  -webkit-fill-available;
}