﻿/*****************************************************************
 * COMMON STYLES
******************************************************************/
html {
    background-color: #fff;
    margin: 0;
    padding: 0;
}

header, footer, hgroup, nav, section {
    display: block;
}

body {
    background-color: #fff;
    border-top: solid 10px #000;
    color: #333;
    font-size: .85em;
    font-family: "Segoe UI", Verdana, Helvetica, Sans-Serif;
    margin: 0;
    padding: 0;
}

a {
    color: #333;
    outline: none;
    padding-left: 3px;
    padding-right: 3px;
    text-decoration: underline;
}

    a:link, a:visited, a:active, a:hover {
        color: #333;
    }

    a:hover {
        background-color: #c7d1d6;
    }

mark {
    background-color: #a6dbed;
    padding-left: 5px;
    padding-right: 5px;
}

h1, h2, h3, h4, h5, h6 {
    color: #000;
    margin-bottom: 0;
    padding-bottom: 0;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

.tablesorter tr:nth-child(2n+1), .plants tr:nth-child(2n+1) {
    background: #CCC !important;
}

/* main layout
----------------------------------------------------------*/
.content-wrapper {
    /*margin: 0 0;*/
}

#body {
    clear: both;
    padding-bottom: 35px;
}

.main-content {
    /*background: url("../Images/accent.png") no-repeat;*/
    padding: 10px 20px;
    margin: auto;
}

.featured + .main-content {
    background: url("../Images/heroAccent.png") no-repeat;
}

footer {
    margin: 20px;
    margin-bottom: 0;
    text-align: center;
    border-top: solid 1px #000;
}

/* header
----------------------------------------------------------*/
header {
    height: 60px;
}

    header h1 {
        float: left;
        color: #000;
        font-family: 'Segoe UI Light';
        font-size: 1.3em;
        margin: 0;
        margin-top: 20px;
        padding: 0;
    }

        header h1 a, header h1 a:hover, header h1 a:active {
            background: none;
            color: #c8c8c8;
            outline: none;
            text-decoration: none;
        }

    header #login {
        float: right;
        display: block;
        font-size: .85em;
        margin: 20px 0 12px;
        text-align: right;
    }

/* menu
----------------------------------------------------------*/
ul#menu {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    padding: 0;
    margin-top: 15px;
    text-align: right;
    float: right;
    line-height: 30px;
}

    ul#menu li {
        position: relative;
        display: inline-block;
        list-style: none;
        padding: 0 7px;
    }

        ul#menu li a {
            background: none;
            color: #000;
            text-decoration: none;
        }

            ul#menu li a:hover {
                text-decoration: none;
            }

        ul#menu li ul {
            display: none;
            text-align: left;
            padding: 0;
            background: #fff;
            border: solid 1px #333;
            width: 200px;
            position: absolute;
            right: 0;
            font-size: 0.8em;
            font-weight: normal;
            z-index: 9999;
        }

            ul#menu li ul li {
                display: block;
                padding: 0;
            }

                ul#menu li ul li a {
                    display: block;
                    padding: 3px 5px;
                }

                    ul#menu li ul li a:hover {
                        display: block;
                        padding: 3px 5px;
                        background: #ddd;
                    }

        ul#menu li:hover ul {
            display: block;
        }

#order-edit fieldset {
    float: left;
    width: 300px;
}

#order-edit #summary {
    margin-left: 350px;
}

ul.info {
    float: left;
    margin: 0;
    padding: 0;
    list-style: none;
}

    ul.info label {
        display: inline-block;
        font-weight: bold;
        width: 150px;
        text-align: right;
        margin-right: 5px;
    }

.contacts-box {
}

    .contacts-box input {
        text-transform: uppercase;
    }

    .contacts-box div {
        float: right;
        background: #fff;
        border: solid 1px #000;
        padding: 2px;
        margin: 10px;
        width: 300px;
    }

    .contacts-box h3 {
        margin: 0;
        padding: 3px;
        background: #eee;
        margin-bottom: 7px;
    }

    .contacts-box p,
    .contacts-box h4 {
        margin: 0;
        padding: 0;
    }
    table.table tr:nth-child(2n+1) td{
        background-color:#cecece;
    }
table.lines tr.plants > td {
    padding-bottom: 10px;
}

table.lines .type {
    width: 150px;
}

table.lines .qte {
    width: 120px;
    text-align: center;
    padding-left: 20px;
    text-align: center;
}

table.lines .price {
    width: 100px;
    text-align: right;
}

table.lines td table {
    margin: 0;
    margin-left: 10%;
    width: 90%;
    border-left: solid 2px #000;
}

table.lines td a.print-stick {
    float: right;
}

table.totals {
    float: right;
    margin: 30px 0;
    width: 250px;
}

    table.totals th {
        font-size: 1em;
        text-align: right;
        width: 150px;
        border: 0;
        border-right: solid 2px #000;
        padding-right: 7px;
    }

    table.totals td {
        text-align: right;
        width: 100px;
    }

table.orders .total {
    text-align: right;
}

table.orders .tools {
    text-align: right;
}

table.orders tr.NoPayment {
    background: #dedede;
}

table.orders tr.Waiting {
}

table.orders tr.Error {
    background: tomato;
}

table.orders tr.Canceled {
    background: indianred;
}

table.orders tr.Paid {
}

table.orders tr.Confirmed {
    background: palegreen;
}

table.orders tr.Preparing {
    background: springgreen;
}

table.orders tr.Sent {
    background: limegreen;
}

/* page elements
----------------------------------------------------------*/
/* page titles */
hgroup.title {
    margin-bottom: 10px;
}

    hgroup.title h1, hgroup.title h2 {
        display: inline;
    }

    hgroup.title h2 {
        font-weight: normal;
        margin-left: 3px;
    }

/* ordered list */
ol.round {
    list-style-type: none;
    padding-left: 0;
}

    ol.round li {
        margin: 25px 0;
        padding-left: 45px;
    }

        ol.round li.zero {
            background: url("../Images/orderedList0.png") no-repeat;
        }

        ol.round li.one {
            background: url("../Images/orderedList1.png") no-repeat;
        }

        ol.round li.two {
            background: url("../Images/orderedList2.png") no-repeat;
        }

        ol.round li.three {
            background: url("../Images/orderedList3.png") no-repeat;
        }

        ol.round li.four {
            background: url("../Images/orderedList4.png") no-repeat;
        }

        ol.round li.five {
            background: url("../Images/orderedList5.png") no-repeat;
        }

        ol.round li.six {
            background: url("../Images/orderedList6.png") no-repeat;
        }

        ol.round li.seven {
            background: url("../Images/orderedList7.png") no-repeat;
        }

        ol.round li.eight {
            background: url("../Images/orderedList8.png") no-repeat;
        }

        ol.round li.nine {
            background: url("../Images/orderedList9.png") no-repeat;
        }

/* content */
article {
    float: left;
    width: 70%;
}

aside {
    float: right;
    width: 25%;
}

    aside ul {
        list-style: none;
        padding: 0;
    }

        aside ul li {
            background: url("../Images/bullet.png") no-repeat 0 50%;
            padding: 2px 0 2px 20px;
        }

.label {
    font-weight: 700;
}

/* forms */
fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

    fieldset legend {
        display: none;
    }

    fieldset ol {
        padding: 0;
        list-style: none;
    }

        fieldset ol li {
            padding-bottom: 5px;
        }

    fieldset label {
        display: block;
        font-size: 1.2em;
        font-weight: 600;
    }

        fieldset label.checkbox {
            display: inline;
        }
    fieldset img{
        max-width:400px;
    }
    fieldset textarea {
        width: 400px;
        height: 150px;
    }
    fieldset input[type="text"],
    fieldset input[type="password"] {
        border: 1px solid #e2e2e2;
        color: #333;
        font-size: 1.2em;
        margin: 5px 0 6px 0;
        padding: 5px;
        width: 214px;
    }

        fieldset input[type="text"]:focus,
        fieldset input[type="password"]:focus {
            border: 1px solid #7ac0da;
        }

    fieldset input[type="submit"] {
        background-color: #d3dce0;
        border: 1px solid #787878;
        cursor: pointer;
        font-size: 1.2em;
        font-weight: 600;
        padding: 7px;
    }

/* info and errors */
.message-info {
    border: 1px solid;
    clear: both;
    padding: 10px 20px;
}

.message-error {
    clear: both;
    color: #e80c4d;
    font-size: 1.1em;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.message-success {
    color: #7ac0da;
    font-size: 1.3em;
    font-weight: bold;
    margin: 20px 0 10px 0;
}

.error {
    color: #e80c4d;
}

/* styles for validation helpers */
.field-validation-error {
    color: #e80c4d;
    font-weight: bold;
}

.field-validation-valid {
    display: none;
}

input[type="text"].input-validation-error,
input[type="password"].input-validation-error {
    border: 1px solid #e80c4d;
}

.validation-summary-errors {
    color: #e80c4d;
    font-weight: bold;
    font-size: 1.1em;
}

.validation-summary-valid {
    display: none;
}

/* tables
----------------------------------------------------------*/
table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 0.75em;
    border: 0 none;
    width: 100%;
}

th {
    font-size: 1.2em;
    text-align: left;
    border: none 0px;
    border-bottom: solid 2px #000;
    padding-left: 0;
}

    th a {
        display: block;
        position: relative;
    }

        th a:link, th a:visited, th a:active, th a:hover {
            color: #333;
            font-weight: 600;
            text-decoration: none;
            padding: 0;
        }

        th a:hover {
            color: #000;
        }

    th.asc a, th.desc a {
        margin-right: .75em;
    }

        th.asc a:after, th.desc a:after {
            display: block;
            position: absolute;
            right: 0em;
            top: 0;
            font-size: 0.75em;
        }

        th.asc a:after {
            content: '▲';
        }

        th.desc a:after {
            content: '▼';
        }

td {
    border: 0 none;
}

tr.pager td {
    padding: 0 0.25em 0 0;
}

/* misc
----------------------------------------------------------*/
.actions {
    float: right;
    margin-top: -50px;
}

a.editButton {
    background: url(../Images/Edit.png) no-repeat top left;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-indent: -999999px;
}

a.delButton {
    background: url(../Images/Delete.png) no-repeat top left;
    display: inline-block;
    width: 20px;
    height: 20px;
    text-indent: -999999px;
}

a.addButton {
    background: url(../Images/Add.png) no-repeat top left;
    display: inline-block;
    width: 20px;
    height: 20px;
    padding-left: 20px;
}

a.backButton {
    background: url(../Images/Back.png) no-repeat top left;
    display: inline-block;
    width: 20px;
    height: 20px;
    padding-left: 20px;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.clear {
    clear: both;
}

.clear-right {
    clear: right;
}

.clear-left {
    clear: left;
}

.clear-fix:after {
    content: ".";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}


/********************
*   Mobile Styles   *
********************/
@media only screen and (max-width: 850px) {

    /* header
    ----------------------------------------------------------*/
    header .float-left,
    header .float-right {
        float: none;
    }

    /* logo */
    header .site-title {
        margin: 10px;
        text-align: center;
    }

    /* login */
    #login {
        font-size: .85em;
        margin: 0 0 12px;
        text-align: center;
    }

        #login ul {
            margin: 5px 0;
            padding: 0;
        }

        #login li {
            display: inline;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        #login a {
            background: none;
            color: #999;
            font-weight: 600;
            margin: 2px;
            padding: 0;
        }

            #login a:hover {
                color: #333;
            }

    /* menu */
    nav {
        margin-bottom: 5px;
    }

    ul#menu {
        margin: 0;
        padding: 0;
        text-align: left;
    }

        ul#menu li {
            margin: 0;
            padding: 0;
        }


    /* main layout
    ----------------------------------------------------------*/
    .main-content,
    .featured + .main-content {
        background-position: 10px 0;
    }

    .content-wrapper {
        padding-right: 10px;
        padding-left: 10px;
    }

    .featured .content-wrapper {
        padding: 10px;
    }

    /* page content */
    article, aside {
        float: none;
        width: 100%;
    }

    /* ordered list */
    ol.round {
        list-style-type: none;
        padding-left: 0;
    }

        ol.round li {
            padding-left: 10px;
            margin: 25px 0;
        }

            ol.round li.zero,
            ol.round li.one,
            ol.round li.two,
            ol.round li.three,
            ol.round li.four,
            ol.round li.five,
            ol.round li.six,
            ol.round li.seven,
            ol.round li.eight,
            ol.round li.nine {
                background: none;
            }

    /* features */
    section.feature {
        float: none;
        padding: 10px;
        width: auto;
    }

        section.feature img {
            color: #999;
            content: attr(alt);
            font-size: 1.5em;
            font-weight: 600;
        }

    /* forms */
    fieldset input[type="text"],
    fieldset input[type="password"] {
        width: 90%;
    }

    /* login page */
    #loginForm {
        border-right: none;
        float: none;
        width: auto;
    }

        #loginForm .validation-error {
            display: block;
            margin-left: 15px;
        }

    #socialLoginForm {
        margin-left: 0;
        float: none;
        width: auto;
    }

    /* footer
    ----------------------------------------------------------*/
    footer {
        margin: 20px;
        margin-bottom: 0;
        text-align: center;
        border-top: solid 1px #000;
    }

        footer p {
            margin: 20px;
            margin-bottom: 0;
            text-align: center;
            border-top: solid 1px #000;
        }
}

.qte input {
    width: 50px;
    float: left;
}

.qte b {
    float: left;
}
