#loader {
    background: white url(ajax_header.gif) no-repeat center center;
    border-top-left-radius: 20px;
    -moz-border-radius-topleft: 20px;
    -webkit-border-top-left-radius: 20px;
    bottom: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    height: 120px;
    position: fixed;
    right: 0;
    width: 120px;
    z-index: 1;
}

#header {
    height: 100px;
    margin: 10px 0;
}

#h1 {
    padding: 0 10px;
}

p {
    margin: 1em 0;
}

table.table-condensed input.input-sm {
    height: 25px;
    padding: 5px;
}

/***** NOTIFICATIONS *****/

#notifications {
    background: #CCC;
    border-radius: 0 0 3px 3px;
    left: 25%;
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 50%;
}

    #notifications li {
        background: url(information.png) no-repeat 10px center;
        padding: 0.5em 1em 0.5em 36px;
    }

/***** /NOTIFICATIONS *****/

/***** NAVI *****/

#navi {
    padding: 0 10px;
}

#navi ul {
    list-style: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

#navi ul li {
    float: left;
}

#navi ul li.right {
    float: right;
}

#navi ul li a {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2em;
    padding: 0.5em 1em;
    text-decoration: none;
}

/***** /NAVI *****/

#content > h2:first-child {
    margin-top: 0.5em;
}

#content {
    padding: 5px 20px 20px;
}

#footer {
    margin: 15px 0;
    padding: 1.5em 0;
    position: relative;
}

    #footer #print {
        position: absolute;
        right: 1em;
        top: 0;
    }

.browser-warning {
    background: #FCC;
    border: 1px solid #F00;
    font-weight: bold;
    margin: 1em 0;
    padding: 1em;
}

ul {
    list-style-type: disc;
    margin: 1em 0;
    padding-left: 2em;
}

/***** TABLES *****/

tr.odd {
    background: #F0F0F0;
}

tr.odd:hover,
tr.even:hover {
    background: #E0E0E0;
}

td.loader {
    background: no-repeat right center;
    padding-right: 20px !important;
}

tr.loading td.loader {
    background-image: url(ajax-small.gif) !important;
}

td.row-link {
    cursor: pointer;
}

tr.level-1 {
    background: white;
}

td.spacer-1,
td.spacer-small-1 {
    background: white !important;
}

tr.level-2 {
    background: #EEE;
}

td.spacer-2,
td.spacer-small-2 {
    background: #EEE !important;
}

tr.level-3 {
    background: #CCC;
}

td.spacer-3,
td.spacer-small-3 {
    background: #CCC !important;
}

td.spacer-1,
td.spacer-2,
td.spacer-3 {
    max-width: 15px;
    width: 15px;
}

td.spacer-small-1,
td.spacer-small-2,
td.spacer-small-3 {
    max-width: 2px;
    padding-left: 0;
    padding-right: 0;
    width: 2px;
}

a.tree-expand {
    background: url(expand.png) no-repeat left center;
    padding-left: 20px;
}

a.tree-collapse {
    background: url(collapse.png) no-repeat left center;
    padding-left: 20px;
}

.level-2 a.tree-expand,
.level-3 a.tree-expand {
    background: url(expand2.png) no-repeat left center;
    padding-left: 20px;
}

.level-2 a.tree-collapse,
.level-3 a.tree-collapse {
    background: url(collapse2.png) no-repeat left center;
    padding-left: 20px;
}
/***** /TABLES *****/


dl {
    margin: 1em 0;
}

input[type="text"].input-validation-error,
input[type="password"].input-validation-error,
textarea.input-validation-error {
    background: #FFEEEE;
    border-color: #FF2222;
}

input.search {
    background: url(search.png) no-repeat 98% center;
    padding-right: 25px;
}

button {
    padding: 0.5em 1em;
}

select {
    padding: 0.2em;
}

textarea {
    height: 10em;
    width: 35em;
}

.field-validation-error,
.validation-summary-errors {
    color: #FF2222;
    display: block;
    font-weight: bold;
    margin: 0.5em 0.5em 1em;
}

a.button {
    background-repeat: no-repeat;
    background-position: 5px center;
    display: inline-block;
    min-height: 20px;
    padding-left: 30px;
    vertical-align: middle;
}

.check-all {
    background-image: url(check-all.png);
}

.check-none {
    background-image: url(check-none.png);
}

/***** /FORMS *****/

/***** PRODUCTS *****/

#product-groups ul {
    list-style: none;
}

/* FILTER */

form#product-filter {
    margin: 0;
}

    form#product-filter table {
        margin: 0;
        width: 100%;
    }

    form#product-filter td {
        padding: 0;
    }

td#product-filter-group select {
    width: 300px;
}

td#product-filter-saldo {
    text-align: center;
    vertical-align: middle;
}

    td#product-filter-saldo label {
        display: inline;
        font-weight: normal;
    }

td#product-filter-search {
    text-align: right;
}

    td#product-filter-search input {
        margin: 0;
        width: 250px;
    }

td#product-filter-submit {
    width: 32px;
}

    td#product-filter-submit button {
        background: url(search.png) no-repeat center;
        border: 0;
        height: 32px;
        vertical-align: middle;
        width: 32px;
    }

td.product-order {
    color: #666;
    text-align: right;
}

tr.error td.product-order input[type="text"] {
    background: #FFAAAA;
    border: 1px solid #FF6666;
}

td.product-order label {
    margin: 0;
    text-align: center;
}

td.product-order input[type="text"] {
    font-weight: normal;
}

span.product-group {
    background: #CCC;
    border-radius: 4px;
    color: #666;
    font-size: 0.9em;
    margin: 0 0.5em;
    padding: 0.2em 0.4em;
}

/* /FILTER */

th.product-amount,
td.product-amount {
    text-align: right;
    white-space: nowrap;
}

th.product-unit,
td.product-unit {
    padding-left: 0;
}

td.product-order input[type="text"] {
    margin-bottom: 0;
    padding: 0.1em;
    text-align: right;
    width: 4em;
}

td.product-id div,
td.product-name div,
td.product-instance-group div,
td.incoming-batch div,
td.product-instance div {
    position: relative;
    height: 100%;
}

#product-measures {
    background: #CCC;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    font-size: 0.9em;
    margin: 0;
    height: 1.6em;
    padding: 0.5em;
    position: absolute;
    right: 2px;
    top: 2px;
}

.product-description {
    font-size: 0.9em;
    font-style: italic;
}

div.product-details {
    margin: 1em 0;
}

/***** /PRODUCTS *****/


/***** MINI CART *****/

#cart-mini {
    background: #CCC;
    border-bottom-left-radius: 4px;
    -webkit-border-bottom-left-radius: 4px;
    -moz-border-radius-bottomleft: 4px;
    cursor: pointer;
    overflow: auto;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10000;
}

    #cart-mini p {
        margin: 0.5em;
        white-space: nowrap;
    }

    #cart-mini table {
        margin: 0;
        width: 100%;
    }

    #cart-mini th,
    #cart-mini td {
        padding: 0;
    }

    #cart-mini td {
        text-align: right;
    }

/***** /MINI CART *****/


/***** CART *****/

.cart-products tr.disabled .product-amount span,
.cart-products tr.disabled .product-unit span {
    display: none;
}

.cart-products.show-subtotals tr.disabled .product-amount span,
.cart-products.show-subtotals tr.disabled .product-unit span {
    color: #AAA;
    display: inline;
}

.cart-products tr.error td {
    background: #FFEEEE;
}

    .cart-products tr.error td.product-cart-amount {
        color: #FF6666;
    }

a.show-subtotals {
    display: block;
    text-align: right;
}

/***** /CART *****/


/***** ORDERS *****/

table#orders,
table#order-details-products {
    width: 100%;
}

    table#order-details-products .product-name {
        width: 90%;
    }

#order-details-products td.product-undelivered-amount {
    color: #AAA;
    text-align: center;
}

#order-details-products tr.diff td.product-delivered-amount {
    font-weight: bold;
}

#order-details-products tr.diff td.product-delivered-unit {
    background: url(warning.png) no-repeat 90% center;
}

#order-details-products .product-edit {
    text-align: center;
}

#order-details-buttons {
    width: 100%;
}

    #order-details-buttons .right {
        vertical-align: middle;
    }

/***** /ORDERS *****/


/***** MESSAGE *****/

ul#messages {
    list-style: none;
}

/***** /MESSAGE *****/


.notification_caption {
    padding-left: 30px;
    font-weight: bold;
}

.notification_lines {
    width: 80%;
    list-style-type: none;
    padding: 5px;
}

.notification_lines:nth-child(odd) {
    background: #f2f2f2;
}
