html {cursor: default;}

body {
    background-color: #fff;/*#7C9628;*/
    color: #17222F;
    font-family: Arial;
    font-size: 12px;
    overflow: hidden;
    width:100%;
}

/** {
    margin: 0px;
    padding: 0px;
    outline: 0; 
}*/


.space5 { height:5px; }
.space10 { height:10px; }
.space25 { height:25px; }
.space50 { height:50px; }
.space100 { height:100px; }
.clearer { clear:both; }
.left { float:left; }
.right { float:right; }
.clear {display: block;}

.hidden {
    visibility: hidden;
}


/* focus outline */
/*input[type="reset"]::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="file"] > input[type="button"]::-moz-focus-inner,
.fancybox-close*/
button::-moz-focus-inner,
button
{
    border: none;
    cursor: pointer;
    outline: 0;
}

a {
    color: inherit;
    cursor: pointer;
    outline: 0;
    text-decoration: none;
    width: inherit;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  /*border-collapse: collapse;*/
  border-spacing: 0;
}

/*
td,
th {
  padding: 0;
}
*/

table th:last-child { border-right: none !important; }

table tr th:first-of-type  {
    -webkit-border-top-left-radius: 4px;
    border-top-left-radius: 4px;
}

table tr th:last-of-type  {
    -webkit-border-top-right-radius: 4px;
    border-top-right-radius: 4px;
}

table tr:last-child td {
    border: 0 !important;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

button {
    color: inherit; /* 1 */
    font: inherit; /* 2 */
}


#workbench div > label + input[type='text'],
#workbench div > label + select,
#workbench div > label + input {
    margin-left: 0;
}

/* Add-Item DIVs z.B Image-Liste */
#workbench div > label + div > * {
    margin-left: 0 !important;
}

#workbench input[type='text'],
optgroup,
#workbench select,
#workbench textarea {
    border-width: 1px;
    border-color: #333;
    color: inherit; /* 1 */
    font: inherit; /* 2 */
    line-height: 19px;
    margin: 0 2px 0 4px;
    vertical-align: middle;
}

/*select {
    border-width: 1px;
}
*/
select option {
    padding: 0 2px 0px 5px;
}

label + input[type="radio"] {
    margin-right: 12px;
}

input[type="radio"] {
    margin: 1px 12px 0 5px;
}

input[type="checkbox"], input[type="radio"], select {
    cursor: pointer;
    padding: 1px 0;
}

input[type="checkbox"] {
    margin: 0 5px 2px 0;
}

ul, li {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

hr {
    margin: 0;
}

.button {
    background: #CDFF48 !important;
    border: 1px solid #17222F;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    box-shadow: 0px 1px 2px #17222F;
    -moz-box-shadow: 0px 1px 2px #17222F;
    -webkit-box-shadow: 0px 1px 2px #17222F;
    margin: 0 2px 2px 4px;
}

.button:hover,
.button:focus {
    box-shadow: 0px 2px 2px #17222F;
    -moz-box-shadow: 0px 2px 2px #17222F;
    -webkit-box-shadow: 0px 2px 2px #17222F;
    cursor: pointer;
}

a.button {
    padding: 2px;
    margin: 0 10px;
}

.box {
    display: block;
    box-shadow: 5px 5px 2px #17222F;
    -moz-box-shadow: 5px 5px 2px #17222F;
    -webkit-box-shadow: 5px 5px 2px #17222F;
    background-color: #D1E1ED;
    -webkit-border-radius: 8px;
    border-radius: 8px; 
}

.bodystatus .status {
    width:100%;
}

.status {
    position: absolute;
    top:0;
    left:0;
    line-height: 1.5em;
    white-space: pre-line;
    text-align: left;
    border-bottom: 1px solid #17222F;
    box-shadow: 0px 2px 2px #17222F;
    -moz-box-shadow: 0px 2px 2px #17222F;
    -webkit-box-shadow: 0px 2px 2px #17222F;
    z-index: 20;
    padding: 5px 5px 5px 35px;
}

.red  {
    color: #ff0000;
}

.bodystatus .status {
    width:100%;
}

.status.error {
    background: #ff0000 url(../img/error.png) no-repeat 10px;
    font-weight: bold;
    color: #fff;
}

.status.success {
    background: #00D900 url(../img/success.png) no-repeat 10px;
    font-weight: bold;
    color: #000;
}

.status.warning {
    background: #FBEA77 url(../img/warning.png) no-repeat 10px;
    font-weight: bold;
    color: #000;
}

.blind {
    display:none;
}

.box h1 {
    display: block;
    color: #fff;
    margin:0px;
    padding:3px;
    font-size:14px;
    font-weight: bold;
    background-color: #464646;
    -webkit-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0; 
}

#login input[type=text],
#login input[type=password] {
    background: #EBF2F7;
    border:0px;
    border-bottom: 1px solid #17222F;
}

#login input[type=text]:focus,
#login input[type=password]:focus,
.button:focus {
    border-bottom: 1px solid #00B22D;
    background: #fff;
}

#login {
    position: absolute;
    top:50%;
    left:50%;
    margin:-120px 0 0 -150px;
    width:300px;
    height:140px;
    background: #93C9A2 url("/img/logo_klein.png") no-repeat 15px 100px;
}

#login label {
    margin-left:15px;
    width: 90px;
    float:left;
}

#login input[type=text],
#login input[type=password] {
    float:left;
    width:165px;
    font-size: 12px;
}

#login input[type=submit] {
    float:right;
    margin: 3px 20px;
}

#logout {
    float:right;
    line-height: 40px;
    margin-right: 16px;
}

#menue_oben {
    background: #464646 url(/img/logo_klein.png) 62px no-repeat;
    border: 1px solid #17222f;
    box-shadow: 0 2px 2px #17222f;
    -moz-box-shadow: 0px 2px 2px #17222F;
    -webkit-box-shadow: 0px 2px 2px #17222F;
    height: 50px;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
}

#menue_oben ul {
    line-height: 40px;
    margin-left: 242px;
    list-style: none outside none;
}

#menue_oben ul li {
    padding:5px 10px;
    float: left;
}

#menue_oben ul li a,
#logout a{
    display: block;
    color:#fff;
    font-size:12px;
    text-decoration: none;
}

#menue_oben img {
    vertical-align: middle;
    margin-right: 5px;
}


/*Menü Links*/

div#untermenue {
    width: 200px;
    margin: 18px 25px 0 20px;
    background-color: #FAFAFA;
    border: 1px solid #bbb;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

#untermenue ul {
    list-style: none outside none;
    margin: 5px 0;
    line-height: 26px;

}

#untermenue hr {
    margin: 4px 2px;
    height: 1px;
    border: 1px solid #a5a5a5;
}

#untermenue ul li.menuelink {
    height: 26px;
}

#untermenue ul li.menuelink span {
    width: 100%;
    vertical-align: middle;
    display: inline-block;
    text-decoration: none;
    color: #17222F;
    font-size: 13px;
    overflow: hidden;
}

#untermenue ul li.menuelink span:hover,
#untermenue .menuelink.current span
{
    margin: -1px -1px 0px -1px;
    border: 1px solid #968A67;
    background-color: #cdff48;
}

#untermenue a {
    padding-left: 34px;
    margin: 0px;
    display: block;
    height: 100%;
}

#content {
    position: absolute;
    top: 52px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    overflow:auto;
}

body.bodystatus #content {
    top: 81px;
}



/* Arbeitsbereich */


#workbench {
    position: absolute;
    top: 18px;
    bottom: 5px;
    right: 34px;
    left: 245px;
}

#workbench > h1, .dialog > h2 {
    margin-bottom: 10px;
}

#workbench > div:last-of-type,
#popupwb {
    /*padding:10px 20px;*/
    overflow: auto;
    background-color: #eee;
    border: 1px solid #bbb;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    min-height: 600px;
    min-width: 350px;
    margin-bottom: 20px;
}

#workbench > div > div,
#workbench > div > form > div {
    padding:10px 20px;
}

#workbench > div > div:last-child {
    height: 100%;
}

/* ZEbra */
/*#workbench > div > div:nth-child(2n+1),
#workbench > div > form > div:nth-child(2n+1),
div#popupwb > div > div:nth-child(2n+1)*/
#workbench > div > div:nth-child(even):not(.flat),
#workbench > div > form > div:nth-child(even),
div#popupwb > div > div:nth-child(even)
{
    background-color: #F7F7F7;
}

#workbench table {
    width: 100%;
    border: 1px solid  #333;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    max-width: 1200px;
}

#workbench table th,
#workbench table td {
    text-align: left;
    padding: 5px;
    white-space: nowrap;
    word-break: normal;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

#workbench table th {
    color: #F2F6F7; /*#3289A8; #BFE4EF;*/
    background: #464646 no-repeat center left;
    border-right: 1px solid #fff;
}

#workbench table th.header { 
    background-image: url(../img/small_sort.gif);
    cursor: pointer; 
    font-weight: bold;
    /*padding-left: 22px; */
    /*margin-left: -1px; */
}

#workbench table th.header > *:first-of-type {
    padding-left: 22px; 
}

#workbench table th.headerSortDown { background-image: url(../img/small_desc.gif); }

#workbench table th.headerSortUp { background-image: url(../img/small_asc.gif); }

#workbench table td.arbeiten {
    background-color: #93FA6B;
    font-weight: bold;
}

#workbench table td.pause {
    background-color: #B6E7FE;
}

#workbench table td.gesperrt {
    -moz-opacity:0.30;
    opacity:0.30;
    filter:alpha(opacity=30);
}

#workbench table td.neu {
    color:#ff0000;
    font-weight: bold;
}

/*#workbench table td span {
    color: #05A408;
}*/

#workbench table tr.gesperrt td span {
    color: #ff0000;
}

#workbench div > label,
#popupwb label {
    display: block;
    width: 120px;
    font-weight: bold;
    white-space: normal;
}

label[for] {
    cursor: pointer;
}

#workbench label.radio {
    display: block;
    min-width:20px;
    padding-right:5px;
    font-weight:bold;
    box-sizing: content-box;
}

#workbench checkbox.radio {
    font-weight:bold;
    margin-right:20px;
    display: block;
}

#workbench input[type="text"],
#workbench textarea,
#workbench select,
span.button {
    /*background: #f7f7f7;*/
    background: #fff;
}

#workbench input[type="text"] {
    padding: 0 4px;
    box-sizing: border-box;
}

#workbench input.inputerror,
#workbench textarea.inputerror,
#workbench select.inputerror {
    background: #FFB0B0;
}

/* Image Upload */

#upload h4 {
    margin-bottom: 10px;
}

#upload img {
    border: 1px solid #333;
}

#upload input[type='file'] {
    width : 304px;
}

#src_preview {
    width: 600px;
    height: 600px;
    margin-right: 10px;
    border-right: 1px solid black;
}

#prev_img ~ span {
    font-weight: bold;
}

#bilder-vorschau img { cursor:move; }
#bilder-vorschau div.delete {
    float: right;
    display: inline-block;
    background: transparent url(../img/delete.png) no-repeat; width:12px;height:12px;margin:5px;cursor:pointer;
}
#bilder-vorschau { margin: 0; padding: 0; float:left; width: 95%; }
#bilder-vorschau li {
    margin: 3px;
    border:1px solid #bbb;
    width: 100%;
    padding:
    2px;
    background-color: #F0F5F9;
    min-height: 60px;
}
#bilder-vorschau li:hover { border-color: #ccc; background-color: #fff; }
#bilder-vorschau .platzhalter {
    width:100%;
    min-height:150px;
    background-color: #FBEC88;
    border:1px solid #FAD42E;
}
#bilder-vorschau .info {
    font-weight: bold;
    margin-right:15px;
    vertical-align: bottom;
    float: right;
    min-width: 170px;
}

#galerie > div {
    text-align: center;
}

#galerie a {
    text-decoration: underline;
}

#galerie > div .item-info {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#galerie > div .item-info label {
    float: left;
    min-width: 71px;
}

/* Image Manager - Bildverwaltung */
#imgr_image_upload div > div {
    min-height: 28px;
}

#imgr_image_upload input[type='text'] {
    
    width: 300px;
    border: 1px solid #999;
}

#imgr_image_upload > br {
    clear: left;
}


/*  Popup Fenster image Details */
#imngr_image_details .img-info {
    float: left;
    margin-left: 20px;;
}

#imngr_image_details .image {
    display: block;
    float: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 58%;
    text-align: center;
}

#imngr_image_details span {
    vertical-align: top;
    display: inline-block;
    min-height: 24px;
    min-width: 468px;
}

#imngr_image_details > span {
    width: 100%;
}

#imngr_image_details input[type='text'] {
    width: 379px;
    float: left;
}

#imngr_image_details label {
    float: left;
    padding: 4px 0;
    width: 79px;
}

#imngr_image_details p > br {
    clear: both;
}

#popupwb > div > * {
    margin: 0 10px;
}

/* Popup IMngr Pictur Viewer */
#popupwb > div > div > br {
    clear: left;
}

#popupwb input[name^='min_'] {
    width: 40px;
}

#popupwb input, #popupwb select {
    padding: 0 5px;
    margin: 0 0 2px;
}

/*img-button*/
td img.action {
    width: 15px;
}

#article_tabelle td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* WOXIKON */
#edit_woxikon .label {
    width: 100px;
}

#edit_woxikon .label+input {
    color: #444;
    font-family: Arial;
    font-size: 12px;
    width: 600px;
}

#edit_woxikon textarea {
    color: #444;
    font-family: Arial;
    font-size: 12px;
    height: 50px;
    width: 600px;
    max-width: 600px;
}

#edit_woxikon form textarea {
    margin: 0 0 8px;
}

#kategories_seo a {
    display: block;
}


/* SEO */
#seo_tabelle td {
    max-width:200px;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

#seo_tabelle td a {
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

#edit_seo .label {
    width: 100px;
}

#edit_seo .label+input {
    color: #444;
    font-family: Arial;
    font-size: 12px;
    width: 600px;
}

#edit_seo textarea {
    color: #444;
    font-family: Arial;
    font-size: 12px;
    height: 50px;
    width: 600px;
}

#edit_woxikon_seo .seo_preview {
    padding: 5px;
}

#edit_woxikon_seo .label {
    margin-right: 5px;
}

#edit_woxikon_seo textarea {
    color: #444;
    font-family: Arial;
    font-size: 12px;
    height: 120px;
    width: 474px;
}

.seo_preview {
    max-height: 200px;
    width: 600px;
    overflow: auto;
    border: 1px solid #333;
}

#edit_affilate .label {
    display: inline-block;
    min-width: 100px;
    margin: 4px 2px 4px 0;
}

#edit_affilate > div:first-of-type {
    text-align: center;
}

#edit_affilate div img {
    margin: 12px;
}

#edit_amazon_item > div {
    display: block;
    min-height: 35px;
}

#amazon_tabelle td {
    overflow: hidden;
    text-overflow: ellipsis;
}

#amazon_tabelle td {
    max-width: 180px;
}


/* Lebensmittel */

#edit_nutrition .label {
    display: inline-block;
    min-width: 100px;
    margin: 0 2px;
}

#edit_nutrition > div:first-of-type {
    text-align: center;
}

#edit_nutrition form > div {
    min-height: 24px;
    margin: 8px 0;
}

#nutrition_manufacturer > div a {
    display: block;
}

.grid {
    display: flex;
    flex-wrap:wrap;
    list-style: outside none none;
}

#nutrition_food_edit_item .grid > div {
    flex: 1 1 0;
    margin: 10px 0;
}

#food_items table th {
    padding: 5px 5px 5px 20px;
}

#food_items table td {
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SELECT FELd Nahrungmittelunverträglichkeit - Food Items */
#edit_food_intolerance select {
    min-height: 500px;
    overflow-y: hidden;
}

/* Portionsgößen, Barcodes - Remove Button */
#nutrition_food_edit_item div > span:last-of-type a.remove {
    display:none;
}

#nutrition_food_edit_item .add {
    display: none;
}

#nutrition_food_edit_item div > span:last-of-type a.add {
    display: inline;
}

#pitems > span, #barcode-items > span {
    display: block;
    margin: 0 0 8px;
}
#pitems select + label {
    margin: 0 5px 0 10px;
}

#barcode-items label {
    margin: 0 5px 0 0;
}

#pitems select + label:after,  {
    content: ":";
}

div.pathway {
    margin: 6px 4px 12px;
}

#preview_image > div:first-of-type {
    border-left: 1px solid #333;
    padding: 2px 5px;
    height: 100%;
}

#preview_image label {
    display: inline-block;
    min-width: 70px;
    font-weight: bold;
}

.edit_item {
    cursor: pointer;
}

/* REZEPTE */


#nutrition_recipes_overview td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#nutrition_recipes_overview td:last-of-type a {
    margin: 0 4px 0 0;
}

#ingredient-select-dialog form > div {
     
    margin: 8px 0;
    min-height: 24px;
}

.ingredient-item {
    margin: 0 0 8px;
    white-space: nowrap;
}

#nutrition_recipes_edit_item .ingredient-item label {
    width: auto;
}

#nutrition_recipes_edit_item .ingredient-item label.bl {
    width: 300px;
}

#nutrition_recipes_edit_item a.button.add_item {
    margin: 0 0 2px 4px;
}

.ingredient-item select {
    width: 192px;
}

#nutrition_recipes_edit_item .instruction-item textarea {
    height: 95px;
    width: 495px; 
}

#nutrition_recipes_edit_item .instruction-item {
    margin: 0 0 10px;
    white-space: nowrap;
    width: 0px;
}

#nutrition_recipes_edit_item .instruction-item input {
    text-align: center;
    width:28px;
}

#nutrition_recipes_edit_item .instruction-item a {
    vertical-align: top;
}

#nutrition_recipes_edit_item .instruction-item:last-of-type a.add {
    display: inline;
}

#nutrition_recipes_edit_item .instruction-item:last-of-type a.remove {
    display: none;
}

#nutrition_recipes_edit_item .add {
    display: none;
}

#nutrition_recipes_edit_item .amount {
    text-align: right;
    width: 42px;
}

/* Nährstofftabelle */
#nutrition_recipes_edit_item .grid > div {

    flex: 1 1 0;
    padding: 8px 0;
}

/* Nährstofftabelle-Rahmen */
#nutrition_recipes_edit_item div.calc-nutritions div {
    margin: 4px 5px;
}
#nutrition_recipes_edit_item div.calc-nutritions div:not(:last-of-type) {
    border-right: 1px solid #666;
}
#nutrition_recipes_edit_item div.calc-nutritions div:first-of-type {
    margin-left: 0;
}
#nutrition_recipes_edit_item label.portion {
    display: inline;
    margin-right: 5px;
    width: auto;
}

#nutrition_recipes_edit_item .help-icon {
    cursor: pointer;
    margin: 0;
    padding: 0 6px;
    vertical-align: super;
}

#nutrition_recipes_edit_item label.pg {
    display: inline;
    margin-left: 5px;
}

#nutrition_recipes_edit_item .calc-nutritions input {
    width: 50px;
}

#edit_recipe_image .label {
    display: inline-block;
    min-width: 100px;
    margin: 0 2px;
}

#edit_recipe_image > div:first-of-type {
    text-align: center;
}

#edit_recipe_image form > div {
    min-height: 24px;
    margin: 8px 0;
}

#recipe-preview-image {
    max-width: 100%;
    max-height: 300px;
}

#recipe-images .imgItem > span:last-of-type {
    float: right;
    width: 250px;
}

#recipe-images .imgItem {
    line-height: 24px;
    margin: 4px 0;
    padding: 0 2px;
}

#recipe-images .imgItem a.right {
    background: url('../img/symbole/bearbeiten.png') no-repeat 0 2px;
    padding: 0 0 0 25px;
    text-decoration: underline;
}


/* Workout */
#workout_overview  table td {
    max-width: 214px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#workout_overview .button {
    margin: 0 2px 0 5px;
}

#workout_overview a:not(:last-of-type) img.action {
    margin: 0 5px 0 0;
}

#workout_item_edit .text-edit {
    display: flex;
}

#workout_item_edit .text-edit > textarea {
    flex: 1 1 0px;
    height: 119px;
    margin: 0;
}

#workout_item_edit .muscle-item, #workout_item_edit .require-item {
    margin: 10px 0px 0px;
    padding: 0px 0px 10px;
    min-width: 200px;
}

#workout_item_edit .muscle-item {
    cursor: pointer;
}

#workout_item_edit .muscle-item img:first-of-type {
    cursor: pointer;
    width: 75px;
}

.item-options {
    display: flex;
    width: 220px;
    text-align: right;
}

#workout_item_edit .require-item span {
    flex: 1 1 0px;
    padding: 0 2px;
}

#workout_item_edit .require-item input {
    width: 28px;
    text-align: center;
}

#workout_item_edit .zoom {
    background-color: white;
    border: 1px solid #eee;
    position: absolute;
    right: 50px;
    top: 25px;
    width: auto;
    padding: 12px;
}


/*  Popup Fenster image Details - workout sektion */
#workout_edit_popup .img-info {
    float: left;
    margin-left: 20px;;
}

#workout_edit_popup .img-info > div {
    clear: both;
    margin: 5px 0 0;
    padding: 0 0 5px;
    height: 20px;
}

#workout_edit_popup .img-info input[type='text'] {
    float: left;
    width: 379px;
}

#workout_edit_popup .image {
    display: block;
    float: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 52%;
    text-align: center;
}

#workout_edit_popup .label {
    display: inline-block;
    line-height: 20px;
    min-width: 100px;
    margin: 0 2px;
}

#workout_edit_popup > div:first-of-type {
    text-align: center;
}

#workout_edit_popup form > div {
    min-height: 24px;
    margin: 8px 0;
}

#muscle-preview-image {
    max-width: 100%;
    max-height: 300px;
}



/*****************/
/* Workout Plans */
/*****************/


#workout_plan_edit .workout-item {
    display: flex;
    flex-wrap: wrap;
    line-height: 20px;
    margin: 5px 0 0;
    padding: 0 0 5px;
}

#workout_plan_edit .workout-item > div {
    flex: 1 1 0px;
    float: left;
    min-width: 105px;
    text-align: center;
    white-space: nowrap;
}

#workout_plan_edit .workout-item > select {
    width: 205px;
}

#workout_plan_edit .workout-item input[type='text'] {
    width: 30px;
}

#workout_plan_edit .workout-item:last-of-type button {
    visibility: hidden;
}

/* Pager/Filter */

.pager-top a.next, .pager-top a.back {
    margin: 0 5px;
    padding: 2px 8px;
}

.pager-top input[type="submit"] {
    cursor: pointer;
    vertical-align: middle;
}
