* {
	font-family: helvetica, arial;
}

p {
    margin: 0;
}

textarea:focus,
button:focus,
input:focus {
    border: none;
    background-color: transparent;
    resize: none;
    outline: none;
}

body {
	margin: 0;
	background-color: #f5f5f5;
}

body#body-order {
	min-width: 821px;
}

form {
	margin: 0;
    padding: 0;
    width: 100%;
}


/* ========================================================================= */
/* HEADER		                                                             */
/* ========================================================================= */
header{
    background-color: #FFF;
    border-bottom: 1px solid #CCC;
    position: fixed;
    width: 100%;
    height: 80px;
    z-index: 1;
    top: 0;
    left: 0;
}

header > img {
    height: 60px;
    padding: 10px 20px;
}

header > a {
	float: right;
	height: 80px;
}

header > a > img {
	height: 60px;
	width: 25px;
    margin-right: 14px;
	padding: 10px 20px;
}

header > a > img.master-btn {
    margin-right: 0;
	width: 30px;
}

header > select {
	top: -34px;
    position: relative;
    padding: 10px;
    width: 175px;
    border: 1px solid #d0d0d0;
    -webkit-appearance: none;
}


/* ========================================================================= */
/* MAIN#LOGIN                                                                */
/* ========================================================================= */
main#login {
	width: 380px;
	margin: 0 auto;
	height: calc(100vh - 230px);
	min-height: 700px;
	position: relative;
	top: 80px;
}

main#login h1 {
	width: 360px;
    margin: 70px auto 10px;
	padding: 0 30px;
    font-size: 18px;
}

main#login h1 img {
	height: 66px;
    position: relative;
    top: 14px;
}

main#login p.error {
	width: 360px;
    margin: 0 auto 10px;
    padding: 20px;
    box-sizing: border-box;
    color: #e66f6f;
    background-color: #ff00001f;
    text-align: center;
    font-size: 14px;
}

main#login form {
	display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    box-sizing: border-box;
    width: 360px;
    padding: 20px;
    background-color: #FFF;
    border: 1px solid #C1C1C1;
}

main#login form label,
main#login form input {
	width: 100%;
}

main#login form label {
	font-size: 14px;
    margin-bottom: 5px;
}

main#login form input {
	font-size: 14px;
    margin-bottom: 10px;
    border: 1px solid #C1C1C1;
    padding: 12px;
}

main#login form input[type="submit"] {
    background-color: #FFF;
	font-weight: 600;
}


/* ========================================================================= */
/* MAIN#MASTER                                                               */
/* ========================================================================= */
main#master {
    width: 1150px;
    box-sizing: border-box;
    min-height: calc(100vh - 320px);
    margin-top: 80px;
    margin: 80px auto;
    background-color: #f5f5f5;
}

main#master h1 {
	min-width: 1150px;
    width: 90%;
    height: 46px;
    font-size: 25px;
    margin: 0 3.5px;
    padding: 30px 0 0;
}

main#master div#master-content input {
	margin: 12px 3.5px 0;
    border: 1px solid #e6e5e5;
    box-sizing: border-box;
    -webkit-appearance: none;
    background-color: #FFF;
    width: calc(1150px - 8px);
    padding: 15px 10px;
}


main#master div#master-content {
	background-color: #f5f5f5;
	width: 100%;
}

main#master div#master-content > ul {
    width: 1150px;
	padding: 0;
    list-style: none;
}

.client-tag {
	width: 280px;
    height: 80px;
    float: left;
    background-color: #FAFAFA;
    box-sizing: border-box;
    margin: 0 3.5px 7px;
    padding: 10px 15px;
    border: 2px solid #e6e5e5;
    cursor: pointer;
}

.client-tag:hover {
	border: 2px solid #31bc86;
	-webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

p.client-company {
	font-size: 17px;
    font-weight: 600;
}

p.client-name,
p.client-email {
	font-size: 14px;
	margin-top: 2px;
}

p.client-email {
	font-size: 13px;
	margin-top: 4px;
}




/* ========================================================================= */
/* MAIN#COMMANDES                                                            */
/* ========================================================================= */
main#commandes {
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 160px);
	min-width: 1370px;
    justify-content: space-between;
    align-content: baseline;
    position: relative;
    top: 80px;
    background-color: #FFF;
    padding: 0 20px;
}

main#commandes h1 {
	display: none;
    width: 20%;
    margin: 0;
    padding: 35px 0;
    font-size: 18px;
    text-align: left;
}

main#commandes h1.order-list {
	display: block;
}

main#commandes button {
    width: 220px;
    float: right;
    margin: 20px 0 20px 20px;
    padding: 14px 15px;
    background-color: #fff;
    border: 1px solid #C1C1C1;
}

main#login form input[type="submit"]:hover,
main#commandes a.archive:hover,
main#commandes button:hover {
	background-color: rgba(129,208,177,.3);
    border-color: rgba(129,208,177,.3);
	cursor: pointer;
}

main#commandes a.archive.active,
main#commandes button.active {
    background-color: #31bc86;
    border: 1px solid #31bc86;
    color: #FFF;
}

main#commandes h2,
.modal-product h2 {
    margin: 0 0 5px;
    border-radius: 5px;
    padding-bottom: 15px;
    font-size: 16px;
}

main#commandes div > a.archive {
	width: auto;
    margin: 0 0 10px;
    float: left;
    padding: 14px 20px;
    background-color: #fff;
    border: 1px solid #C1C1C1;
    font-size: 14px;
    cursor: pointer;
}

main#commandes a.archive img {
	width: 16px;
    float: left;
    margin-right: 10px;
}

main#commandes div input.input-search {
	min-width: 1050px;
}

input.input-search {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #EEE;
    padding: 15px 10px;
    margin-bottom: 10px;
}

main#commandes div.info {
    display: flex;
    flex-wrap: wrap;
	height: fit-content;
    width: 280px;
}

main#commandes div.info div {
    width: 100%;
    margin-bottom: 10px;
    padding: 20px;
    border: 1px solid #EEE;
}


/* ------------------------------------------------------------------------- */
/* MAIN#COMMANDES list-style:                                                */
/* ------------------------------------------------------------------------- */
main#commandes div.links {
    width: 80%;
}


/* ------------------------------------------------------------------------- */
/* MAIN#COMMANDES INFO-USR                                                   */
/* ------------------------------------------------------------------------- */
main#commandes div.info div.info-usr {
	width: 280px;
	min-height: 106px;
	height: fit-content;
    box-sizing: border-box;
    background-color: rgba(129,208,177,.3);
}

main#commandes div.info div.facture {
	width: 280px;
	height: fit-content;
	padding: 0;
    box-sizing: border-box;
    background-color: rgba(129,208,177,.3);
}

div.info-usr p.compagnie {
	margin: 11px 0 5px;
    font-size: 20px;
    font-weight: 600;
}

div.info-usr p.name,
div.info-usr p.type,
div.info-usr p.Telephone,
div.info-usr p.Mobile,
div.info-usr p.Email,
div.info-usr p.Fax {
    font-size: 12px;
}

div.info-usr p.type,
div.info-usr p.Telephone,
div.info-usr p.Mobile,
div.info-usr p.Email,
div.info-usr p.Fax {
    margin-top: 5px;
}

div.facture span {
	display: block;
	padding: 9px 20px 12px;
    color: #4b8eb7;
    font-weight: 600;
    font-size: 12px;
	cursor: pointer;
}

div.facture span img {
	width: 12px;
    top: 3px;
    padding-right: 10px;
    position: relative;
}


/* ------------------------------------------------------------------------- */
/* MAIN#COMMANDES INFO-CMT                                                   */
/* ------------------------------------------------------------------------- */
main#commandes div.info div.info-cmt {
    min-height: 80px;
}

main#commandes div.info div.info-cmt > p {
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
}



/* ------------------------------------------------------------------------- */
/* MAIN# TABLES:      ;                                                      */
/* ------------------------------------------------------------------------- */
main#commandes div.order-list,
main#commandes div.delivery-list,
main#commandes div.product-list {
    width: calc(100% - 300px);
}

main#commandes table {
    width: 100%;
    min-width: 1050px;
    border: 1px solid #EEE;
    border-collapse: collapse;
    margin-bottom: 20px;
}

main#commandes table#tbl-commande-detail,
main#commandes table#tbl-delivery-detail {
	margin-bottom: 0;
}

main#commandes table thead {
    border: 1px solid #31bc86;
}

main#commandes div.delivery-list,
main#commandes div.product-list {
    display: none;
}

main#commandes table thead tr{
    cursor: pointer;
}

main#commandes table thead tr th {
    padding: 14px 10px;
    text-align: left;
    font-size: 12px;
    box-sizing: border-box;
    background-color: #31bc86;
    color: #fff;
}

main#commandes table tbody tr.passed {
	display: none;
}

main#commandes table tbody tr:nth-child(2n-1) {
    background-color: #f5f5f5;
    transition: all .125s ease-in-out;
}

main#commandes table#tbl-commande tbody tr:hover,
main#commandes table#tbl-delivery tbody tr:hover {
    background-color: rgba(129,208,177,.3);
    cursor: pointer;
}

main#commandes table#tbl-commande tbody tr.noEntry:hover,
main#commandes table#tbl-delivery tbody tr.noEntry:hover {
    background-color: #FFF;
    cursor: default;
}

main#commandes table tbody tr td {
    padding: 14px 10px;
    text-align: left;
    font-size: 13px;
}

main#commandes table tbody tr td.link {
    padding: 0;
}

main#commandes table tbody tr td.link span {
    padding: 14px 10px;
}

main#commandes table tbody tr td.link span img {
	height: 16px;
    margin-top: 4px;
	padding-left: 10px;
}

main#commandes table tbody tr td {
    padding: 14px 10px;
    text-align: left;
    font-size: 12px;
    line-height: 18px;
	cursor: pointer;
}

main#commandes table#tbl-commande-detail tbody tr td,
main#commandes table#tbl-delivery-detail tbody tr td {
	cursor: default;
}

input[type="text"].updatableDate {
		width: 90px;
}

input[type="text"]:read-only {
	box-sizing: border-box;
	border: 0;
	background-color: transparent;
}

table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after {
    content: url("../img/sort/icon-no-sort.svg");
    width: 7px;
    display: block;
    float: right;
}

table span#sorttable_sortrevind,
table span#sorttable_sortfwdind {
    width: 7px;
    display: block;
    float: right;
    right: 7px;
    position: relative;
}

.small-product {
    width: 16px;
    height: 16px;
    background-color: #d4d1d1;
    padding: 7px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.small-product:hover {
    background-color: #31BC86;
}

.small-product svg {
    width: 100%;
    height: 100%;
}


/* ------------------------------------------------------------------------- */
/* MODAl:             ;                                                      */
/* ------------------------------------------------------------------------- */
.modal,
.modal-product {
    display: none;
    position: fixed;
    z-index: 5;
	padding-bottom: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.6);
	cursor: auto;
}

.modal-product {
    z-index: 10;
}

.modal > div,
.modal-product > div {
    display: flex;
	min-width: 1150px;
    flex-wrap: wrap;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    margin: 100px 50px;
}

.modal-product .header {
    width: 100%;
    height: 23px;
    background: #31bc86;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.modal-product > div {
    width: 500px;
    min-width: auto;
    margin: 90px auto;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
}

.modal-product .content,
.modal-product .content-production {
    width: 100%;
    padding: 20px;
}

.modal-product .content p,
.modal-product .content-production p {
    font-size: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.modal-product .content-production p.past,
.modal-product .content-production p.not-ready {
    color: red;
}

.modal-product .content-production p.futur,
.modal-product .content-production p.ready {
    color: #31bc86;
}

.modal-product .content-production p.info {
    font-weight: 600;
    font-size: 13px;
    margin-top: -4px;
    margin-bottom: 14px;
}

.modal-product .comment {
    padding: 10px;
    border: 1px solid #31bc86;
    border-radius: 3px;
    background: #31bc8661;
}

.modal-edit > div {
	width: 40%;
	min-width: auto;
	margin: 100px auto;
}

.modal-edit > div > form {
	border-top: 1px solid #d4d4d4;
	padding: 20px;
}

.modal-edit > div > form > label {
	font-size: 14px;
	margin-bottom: 7px;
	display: block;
	color: #909090;
}

.modal-edit > div > form > input{
	width: 100%;
    box-sizing: border-box;
    border: 1px solid #EEE;
    padding: 15px 10px;
	margin-bottom: 16px;
}

.modal-edit > div > form > input[type="submit"]{
	margin-bottom: 0;
	background-color: #31bc86;
	border: 1px solid #31bc86;
	color: #FFF;
	cursor: pointer;
	transition: all 0.3s ease;
}

.modal-edit > div > form > input[type="submit"]:hover {
	background-color: rgba(129,208,177,.3);
    border-color: rgba(129,208,177,.3);
	color: #050505;
}

.modal > div h2 {
    padding-top: 2px;
    margin: 0;
    font-size: 16px;
}

.modal > div h2 span {
    display: block;
    float: right;
    margin-left: 5px;
}

.cls-modal,
.cls-modal-product {
    cursor: pointer;
}

.cls-modal img,
.cls-modal-product img {
    width: 20px;
    padding: 0 10px 20px;
    float: right;
}

@keyframes dotRipple {
    to {
        opacity: 0;
        transform: scale(3);
    }
}

.ripple {
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    z-index: 1000;
    border-radius: 50%;
    background: #31bc86;
    border: 2px solid #FFF;
    bottom: 8px;
    right: -9px;
}

.ripple:before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #31bc86;
    top: 0;
    left: 0;
    position: absolute;
    content: "";
    z-index: 3000;
    display: block;
    animation: dotRipple 1s linear infinite;
}


.modal a {color:#4b8eb7;}			/* unvisited link */
.modal a:visited {color:#4b8eb7;}	/* visited link */
.modal a:hover {color:#25ad78;} 	/* mouse over link */
.modal a:active {color:#4b8eb7;}  	/* selected link */



/* ========================================================================= */
/* FOOTER:                                                                   */
/* ========================================================================= */
footer {
	min-width: 1410px;
    position: relative;
    box-sizing: border-box;
    top: 80px;
    height: 80px;
    bottom: 0;
    left: 0;
    padding: 16px;
    background: #222;
    text-align: center;
    font-size: 11px;
    color: #fff;
}

footer img {
    display: block;
	margin: 6px auto 0;
}
