* {
    padding: 0;
    margin: 0;
}
html { }
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333;
    /*background: #FFF url('images/body_bg.png') repeat-y left top;*/
    background-color: #FFF;
    padding: 0;
    margin: 0;
}
::selection {
    color: white;
    background-color: #7ECC30;
}

/**
	LAYOUT
*/
#headerwrap {
    z-index: 400;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0;
    color: #FFF;
    background: #52595F;
    box-sizing: content-box;
}
#header {
    width: 980px;
    height: 50px;
    padding: 0;
    margin: 0 20px;
}
#header #logo {
    float: right;
    padding: 3px 6px;
}
#header #title {
    float: left;
    width: 240px;
    height: 50px;
    padding: 0;
    margin: 0;
}
#header #title a:link,
#header #title a:visited,
#header #title a:hover,
#header #title a:active {
    color: #FFF;
    text-decoration: none;
}
#header #title span#title_large {
    color: #FFF;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0px;
    line-height: 54px;
    text-shadow: #000 1px 1px 1px;
}
#header #title span#title_small {
    color: #FFF;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 54px;
    text-transform: uppercase;
    text-shadow: #000 1px 1px 1px;
}
#main {
    clear: both;
    margin: 64px 0 20px 0;
}
#content {
    width: 980px;
    padding: 15px 20px;
}
#footer {
    clear: both;
    min-height: 28px;
}

/**
	MAIN NAVIGATION
*/
#navigation {
    float: left;
}
#navigation ul,
#navigation li {
    list-style-type: none;
    padding: 0;
    margin: 0;
    box-sizing: content-box;
}
#navigation ul li {
    float: left;
    display: block;
    min-width: 80px;
    font-size: 14px;
    line-height: 50px;
    margin: 0;
    padding: 0;
}
#navigation > ul > li {
    position: relative;
}
#navigation > ul > li > a {
    display: block;
    min-width: 80px;
    height: 40px;
    padding: 5px 15px;
    background: none;
    border-bottom: 4px solid transparent;
    box-sizing: content-box;
}
#navigation > ul > li > a:link,
#navigation > ul > li > a:visited,
#navigation > ul > li > a:hover,
#navigation > ul > li > a:active {
    color: #FFF;
    font-weight: normal;
    letter-spacing: -1px;
    text-decoration: none;
    text-transform: uppercase;
}
#navigation li div.subnav {
    display: none;
    visibility: hidden;
    position: absolute;
    top: 54px;
    left: 5px;
    z-index: 101;
    min-width: 120px;
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: rgba(0, 0, 0, .75) 0 0 2px;
}
#navigation li:hover div.subnav {
    display: block;
    visibility: visible;
}
#navigation li div.subnav ul,
#navigation li div.subnav li {
    float: none;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
}
#navigation div.subnav a:link,
#navigation div.subnav a:visited,
#navigation div.subnav a:hover,
#navigation div.subnav a:active {
    display: block;
    width: auto;
    padding: 4px 10px;
    margin: 0;
    line-height: 19px;
    color: #FFF;
    font-size: 12px;
    font-weight: normal;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0;
    border: 0;
    background-color: rgba(0, 0, 0, .75);
}
#navigation div.subnav a:hover {
    color: #7ECC30;
}


/**
 *  BACKEND STARTSEITE
 */
.admin-home {
    width: 910px;
    margin: 25px;
    background-color: #CCC;
    border: none;
    border-spacing: 1px;
    border-collapse: separate;
}
.admin-home td {
    text-align: center;
    padding: 15px 30px;
    background-color: #F7F7F7;
}
.admin-home a,
.admin-home a:link,
.admin-home a:active,
.admin-home a:visited,
.admin-home a:hover {
    color: #333;
    font-size: 125%;
    font-weight: bold;
    text-decoration: none;
}

/**
	LISTS
*/
table.list {
    width: 100%;
    border: 2px solid #FFF;
    box-shadow: #999 0 0 1px;
}
table.list tr th {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding: 6px;
    color: #333;
    background-color: #7ECC30;
    border: none;
}
table.list tr th a {
    color: #333;
    text-decoration: underline;
}
table.list tr td {
    margin: 0;
    padding: 6px;
    border-bottom: 1px solid #EEE;
}
table.list tr.even td { background-color: #FFF; }
table.list tr.odd td { background-color: #FFF; }
table.list tr:hover td { background-color: #FFC; }
table.list tr.highlight td { background-color: #FC9; }
table.list tr.heading td {
    font-weight: bold;
    padding: 3px 6px;
    line-height: 21px;
    background-color: #BBB;
    border-top: 2px solid #FFF;
    border-bottom: 2px solid #FFF;
}
table.list tr.heading td a:link,
table.list tr.heading td a:visited,
table.list tr.heading td a:hover,
table.list tr.heading td a:active {
    color: #333;
    text-decoration: none;
}
table.list tr.heading + tr.heading td {
    border-top: none;
}
table.list tr.sub-heading td {
    font-weight: bold;
    padding: 3px 6px;
    line-height: 21px;
    background-color: #E5E5E5;
    border-bottom: 2px solid #FFF;
}
table.list tr.sub-heading td a:link,
table.list tr.sub-heading td a:visited,
table.list tr.sub-heading td a:hover,
table.list tr.sub-heading td a:active {
    color: #333;
    text-decoration: none;
}
table.list tr.footer td {
    text-align: center;
    padding: 5px;
    color: #FFF;
    background-color: #41484F;
    border: none;
}
table.list tr td.left {
    text-align: left;
}
table.list tr td.center {
    text-align: center;
}
table.list tr td.right {
    text-align: right;
}

/**
    Tabelle ohne Formatierungen
*/
table.list table.blank {
    width: auto;
    border: none;
    margin: 0;
    box-shadow: none;
}
table.list table.blank tr th, table.blank tr th {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
    padding: 3px 6px;
    color: #333;
    background: none;
    border: none;
}
table.list table.blank tr th a, table.blank tr th a {
    color: #333;
    text-decoration: underline;
}
table.blank tr td, table.list table.blank tr td{
    margin: 0;
    padding: 3px 6px;
    border: none;
}

/**
    PAGINATION
*/
.pagination a {
    display: inline-block;
    color: #666;
    margin: 1px;
    padding: 2px 6px;
    font-weight: bold;
    text-decoration: none;
    background-color: #EEE;
    border: 1px solid #999;
}
.pagination a.current {
    color: #333;
    background-color: #CCC;
}

/**
 *
 */
#articles input.order_position_amount {
    width: 64px;
}
#articles .row {
    color: #999;
}
#articles .row.active {
    color: #333;
}
#articles .order_position_actions {
    min-width: 76px;
}

/**
	STANDARD FORM
*/
table.form {
    width: 100%;
    padding: 10px;
    background: #F7F7F7;
    border: 2px solid #FFF;
    box-shadow: #999 0 0 1px;
}
table.form tr td {
    padding: 3px;
    line-height: 17px;
}
table.form tr th {
    padding: 3px;
    font-size: 15px;
    font-weight: bold;
    font-variant: small-caps;
}
table.form label {
    font-weight: bold;
}

/**
	STANDARD ADDRESS FORM
*/
table.form.address {
    width: 490px;
    margin-bottom: 10px;
}
table.form.address input.one-fourth {
    width: 70px;
}
table.form.address input.two-fourth {
    width: 132px;
}
table.form.address input.three-fourth {
    width: 218px;
}
table.form.address input.four-fourth {
    width: 300px;
}
table.form.address select.four-fourth {
    width: 306px;
}

table.table thead tr th {
    background-color: #7ECC30;
    border-bottom: 0;
}

/* Lagerbestand Formular */
#total-amount {
    display: block;
    margin-top: 30px;
}

#set-total-amount, #change-amount {
    display: block;
    margin-top: 10px;
}

/**
	LINKS
*/
a:link,
a:visited,
a:hover,
a:active {
    color: #7ECC30;
}
a.title {
    font-size: 14px;
    font-weight: normal;
    text-decoration: underline;
    padding: 0 2px;
}
a.title:hover {
    text-decoration: underline;
}
a.action {
    font-weight: bold;
    text-decoration: underline;
    padding: 0 2px;
    margin: 0 25px 0 0;
}
a.action:hover {
    color: #06F;
}
a.text:link,
a.text:active,
a.text:visited,
a.text:hover {
    color: #333;
}
a.text-bold:link,
a.text-bold:active,
a.text-bold:visited,
a.text-bold:hover {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
a.text-bold:hover {
    text-decoration: underline;
}

/**
	TOOLTIP
*/
a.tooltip {
    position: relative;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    padding: 0;
    margin: 0;
    border-bottom: 1px dotted #333;
}
a.tooltip span {
    display: none;
    text-decoration: none;
}
a.tooltip:hover {
    cursor: help;
}
a.tooltip:hover span {
    display: block;
    z-index: 100;
    position: absolute;
    top: 27px;
    left: 10px;
    width: 220px;
    font-size: 12px;
    text-align: left;
    color: #333;
    padding: 5px;
    margin: 0;
    border: 1px solid #333;
    background-color: #FFC;
    -webkit-box-shadow: 2px 2px 1px rgba(0, 0, 0, .33);
    -moz-box-shadow: 2px 2px 1px rgba(0, 0, 0, .33);
    box-shadow: 2px 2px 1px rgba(0, 0, 0, .33);
}
a.tooltip:hover span h1 {
    line-height: 18px;
    font-size: 14px;
}
a.tooltip:hover span p {
    font-size: 12px;
    font-weight: normal;
    line-height: 18px;
    letter-spacing: 0;
    padding: 0;
    margin: 0;
}

/**
	TEXT
*/
.fl { float: left; }
.fr { float: right; }
.fn { float: none; }
.cl { clear: left; }
.cr { clear: right; }
.cb { clear: both; }
.left { text-align: left; }
.right { text-align: right; }
.center { text-align: center; }
.txtbig { font-size: 14px; }
.txtmed { font-size: 12px; }
.txttiny { font-size: 11px; }
.txtwhite { color: #FFF; }
.txtblack { color: #000; }
.txtgray { color: #999; }
.markgreen { color: darkgreen; }
.markred { color: darkred; }
label.markred { font-weight: bold; }
input.markred { border: 2px solid darkred; color: #333; }
select.markred { border: 2px solid darkred; color: #333; }


p, table {
    font-size: 12px;
    margin: 0 0 5px 0;
}
h1, h2 {
    font-family: Arial, 'Helvetica Neue', Helvetica, Tahoma, sans-serif;
    font-weight: 700;
    color: #7ECC30;
}
h3, h4, h5, h5 {
    font-family: Arial, 'Helvetica Neue', Helvetica, Tahoma, sans-serif;
    font-weight: 700;
    color: #333;
}
h1 { font-size: 21px; }
h2 { font-size: 19px; }
h3 { font-size: 17px; }

ul.list {
    padding: 0 0 0 16px;
    margin: 0;
}
ul.list li {
    padding: 2px 0;
}

/**
	ERRORS & HINTS
*/
.success {
    padding: 5px 10px;
    margin-bottom: 5px;
    border: 1px solid #999;
    background-color: #CFC;
}
.notice {
    padding: 5px 10px;
    margin-bottom: 5px;
    border: 1px solid #999;
    background-color: #FFC;
}
.failure {
    font-weight: bold;
    padding: 5px 10px;
    margin-bottom: 5px;
    border: 1px solid #999;
    background-color: #FC9;
}
.label-danger {
    display: inline-block;
    color: #FFF;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    margin: 1px 0;
    border-radius: 3px;
    background-color: #DC4A37;
}

/**
	FORM ELEMENTS
*/
input {
    padding: 1px 2px;
}
button[disabled] {
    cursor: not-allowed;
}
input[disabled] {
    cursor: not-allowed;
    background-color: #CCC;
}
input[type='text'][readonly],
input[type='number'][readonly] {
    color: #999;
}
button, input[type=file] {
    padding: 1px 5px;
}
select optgroup {
    padding: 1px 0;
    background-color: #CCC;
}
select optgroup option {
    padding-left: 15px;
    background-color: #FFF;
}
.btn-icon {
    border: 0;
    background-color: transparent;
    cursor: pointer;
}


/*
 * Rechnungsmodul
 */
.invoice-preview.wrapper {
    width: 1100px;
}
#preview-options {
    width: 1100px;
    height: 56px;
    background-color: #5E5E5E;
    margin-top: 10px;
    color: white;
    text-align: right;
}
#preview-options a {
    cursor: pointer;
}
#preview-options a img {
    padding: 4px;
}

iframe#invoice-preview {
    width: 1100px;
    height: 700px;
    border: 0;
}

.generate-invoices td * {
    vertical-align: middle;
}

.loading-bar-container {
    border: 1px solid grey;
    background-color: white;
    width: 200px;
    height: 17px;
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.loading-bar {
    background-color: greenyellow;
    width: 0;
    height: 17px;
    position: absolute;
    top: 0;
    left: 0;
}


/**
    MISC
*/
img {
    border: none;
}

.well {
    padding: 5px 10px;
    margin-bottom: 5px;
}

/** Overlay */
.overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 500;
}
.overlay form {
    position: relative;
    margin: 200px auto 0;
    padding: 20px;
    width: 700px;
    background-color: white;
}
.overlay-close {
    border: 0;
    background-color: transparent;
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
    cursor: pointer;
    outline: none;
}
.overlay .article-select, .overlay .article-adds {
    padding: 0 30px;
    line-height: 30px;
}
.overlay select {
    margin: 0 3px;
}

.invoice-viewed td {
    background-color: rgb(182, 222, 187) !important;
}

.flex-box {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    font-weight: bold;
}

.flex-box > div {
    flex-grow: 1;
}