@font-face {
  font-family: 'Open Sans Regular';
  src: url('../fonts/OpenSans-Regular-webfont.eot');
  src: url('../fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/OpenSans-Regular-webfont.woff') format('woff'),
       url('../fonts/OpenSans-Regular-webfont.ttf') format('truetype'),
       url('../fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Open Sans Semibold';
  src: url('../fonts/OpenSans-Semibold-webfont.eot');
  src: url('../fonts/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/OpenSans-Semibold-webfont.woff') format('woff'),
       url('../fonts/OpenSans-Semibold-webfont.ttf') format('truetype'),
       url('../fonts/OpenSans-Semibold-webfont.svg#open_sanssemibold') format('svg');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Open Sans Bold';
  src: url('../fonts/OpenSans-Bold-webfont.eot');
  src: url('../fonts/OpenSans-Bold-webfont.eot?#iefix') format('embedded-opentype'),
       url('../fonts/OpenSans-Bold-webfont.woff') format('woff'),
       url('../fonts/OpenSans-Bold-webfont.ttf') format('truetype'),
       url('../fonts/OpenSans-Bold-webfont.svg#open_sansbold') format('svg');
  font-weight: normal;
  font-style: normal;
}

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}


.i::before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: url('../img/icons_18.png') no-repeat 18px 18px;
}
.i-exit::before { background-position: 0 0; }
.i-delete::before { background-position: 0 -18px; }
.i-new::before { background-position: 0 -36px; }
.i-check::before { background-position: 0 -54px; }
.i-remove::before { background-position: 0 -72px; }
.i-restore::before { background-position: 0 -90px; }
.i-up::before { background-position: 0 -108px; }
.i-down::before { background-position: 0 -126px; }
.i-handle::before { background-position: 0 -144px; }
.i-submit::before { background-position: 0 -162px; }
.i-edit::before { background-position: 0 -180px; }
.i-autofill::before { background-position: 0 -288px; }
.i-move2::before { background-position: 0 -306px; }
.i-mapping::before { background-position: 0 -324px; }
.i-drop-down::before { background-position: 0 -360px; }
.i-drop-up::before { background-position: 0 -378px; }
.i-code::before { background-position: 0 -396px; }
.i-down::before { background-position: 0 -414px; }

.break-word {
  /*white-space: pre-wrap;*/ /* css-3 */    
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}

.relative {
  position: relative;
}


a { color: #3D85B6; }
a:hover { text-decoration: underline; }

a.inherit { color: inherit; }

a.disabled { color: #AAA; }

a.none {
  color: inherit;
  text-decoration: none;
}

a.editable {
  display: inline-block;
  padding-left: 8px;
  color: inherit;
}

a.toggle {
  display: inline-block;
  position: relative;
  padding-left: 24px;
  color: #323232;
  text-decoration: none;
}
a.toggle::before {
  content: '';
  display: block;
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 16px; height: 16px;
  background: url('../img/icons_18.png') no-repeat -1px -199px;

  -webkit-transition: -webkit-transform .3s ease-in-out;
          transition: transform .3s ease-in-out;
}
a.toggle.active::before {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}
a.toggle:hover,
a.toggle:focus {
  text-decoration: underline;
}

a.sort::after {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background: url('../img/icons_18.png') no-repeat 2px -236px;
  vertical-align: middle;
}
a.sort.desc::after { background-position: 2px -254px; }
a.sort.asc::after { background-position: 2px -272px; }

a.red { color: #D80000; }
a.orange { color: #FF7F00; }
a.green { color: #218C00; }

span.red { color: #D80000; }
span.orange { color: #FF7F00; }
span.green { color: #218C00; }
span.minor { color: #AAA; }
span.h { color: #FF8000; }

span.master { color: #218C00; }
span.supplier { color: #2FA6CC; }

span.sm { color: #AAA; }

span.ean {
  display: inline-block;
  max-width: 296px;
  overflow: hidden;
  text-overflow: ellipsis;
}


div.error-code i,
.ui-datepicker th,
.ui-datepicker-title,
h3.toggle,
header.group h3,
table.data tr.main td,
table.groups > tbody > tr > td.b,
table.groups > tbody > tr > td.title,
table.data > tbody > tr > td.title {
  font-family: 'Open Sans Bold', Helvetica, Arial, Tahoma, sans-serif;
}

b,
h2,
.button,
span.sm,
a.action,
div.b h5,
h4.legend,
header.data h3,
table.data td.b,
table.data2 td,
div.value-block,
table.settings h5,
div.breadcrumbs h1,
h3.toggle span.count,
span.upload-gallery i,
section.import-result h3,
div.breadcrumbs span.location,
div.breadcrumb span.location {
  font-family: 'Open Sans Semibold', Helvetica, Arial, Tahoma, sans-serif;
}

input,
select,
button,
textarea,
div.value,
output.field {
  font-family: 'Open Sans Semibold', Helvetica, Arial, Tahoma, sans-serif;
}

h2 i,
h2.separate,
div.cube b.count,
header.container h2::before {
  font-family: 'Open Sans Regular', Helvetica, Arial, Tahoma, sans-serif;
}


h1 { text-transform: uppercase; }
h1, h2 {
  margin-bottom: 24px;
  font-size: 22px; font-weight: normal;
}

h2.separate {
  margin-bottom: 16px; padding: 16px 32px 0 48px;
  border-top: 1px solid #EEE;
  font-size: 16px;
  text-transform: uppercase;
}
h2.separate:first-child {
  border-top: none;
}
h2.separate + header.group {
  margin-top: -8px;
  border-top: none;
}
h2.separate + table.data {
  border-top: 1px solid #EEE;
}

h3.toggle {
  position: relative;
  font-size: 14px;
}
h3.toggle a.toggle {
  position: static;
  padding-left: 0;
}
h3.toggle a.toggle::before {
  top: 1px; left: -31px;
}
h3.toggle span.count {
  color: #AAA;
  font-size: 12px;
}

h4.legend {
  margin-bottom: 8px;
  font-size: 16px;
}


header.data {
  padding: 13px 31px 13px 47px;
  border-bottom: 1px solid #EEE;
  background: #FAFAFA;
}
header.data h3 {
  font-size: 11px;
  overflow: hidden;
}
header.data span.count {
  float: right;
  margin-top: -2px; margin-left: 16px;
}


span.status { color: #26547B; }
span.status-warn { color: #D80000; }

span.count-minor { color: #AAA; }


figure.medium {
  display: block;
  padding: 4px;
  width: 208px; height: 208px;
  border: 2px solid transparent;
  background: #FFF;
  overflow: hidden;
}
figure.medium span {
  display: block;
  width: 196px; height: 196px;
  font-size: 0;
  line-height: 196px;
  text-align: center;
  vertical-align: middle;
}
figure.medium img {
  max-width: 100%; max-height: 196px;
  height: auto;
}


/* Not used */
p.empty {
  padding: 16px 0;
  color: #AAA;
  text-align: center
}

p.breadcrumbs {}
p.breadcrumbs > span::after {
  content: '\00a0\2219';
}
p.breadcrumbs > span:last-child::after {
  content: none;
}
p.breadcrumbs > span {
  vertical-align: middle;
}


table.simple td {
  padding: 4px 8px;
  border-top: 1px solid #EEE;
  font-size: 12px;
}
table.simple tr:first-child td {
  border-top: none;
}
table.simple tr.hoverable:hover td {
  background-color: #F4FAFF;
}

table.data.separate {
  margin-bottom: 16px;
  border-bottom: 1px solid #EEE;
}
table.data.top {
  border-top: 1px solid #EEE;
}
table.data td.space {
  padding: 8px 0;
  width: 1%;
}
table.data td.space::before {
  content: '';
  display: block;
  width: 43px;
}
table.data td.space a.action,
table.data td.space span.handle {
  display: block;
  margin-left: 12px;
}
table.data td.space span.handle.hidden { display: none; }
table.data td.space span.instr {
  display: block;
  margin-left: 12px;
  width: 24px; height: 24px;
  color: #FF7F00;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
}
table.data td.none,
table.data > tbody.group-section > tr:first-child > td.none,
table.data > tbody.separate > tr:first-child > td.none {
  border: none;
}
table.data td.actions {
  width: 1%;
  text-align: right;
}
table.data td.shift {
  padding-left: 47px;
}
table.data td.nowrap { white-space: nowrap; }
table.data td.title {
  padding-top: 11px; padding-bottom: 11px;
  font-size: 14px;
}
table.data td.boolean {
  text-align: center;
}
table.data td.separate {
  padding-left: 12px;
  border-left: 1px solid #EEE;
}
table.data td.data-ext,
table.data td.data-ext:last-child {
  padding: 0;
}
table.data td.merge-right {
  padding-right: 4px;
}
table.data td.num {
  text-align: right;
}
table.data td.l2 {
  padding-left: 32px;
}
table.data td.l3 {
  padding-left: 64px;
}
table.data td.center {
  text-align: center;
}
table.data td.right {
  text-align: right;
}
table.data td.chips {
  padding-top: 6px; padding-bottom: 6px;
}

table.data tr.disabled a,
table.data tr.disabled td,
table.data tr.disabled span { color: #AAA; }
table.data tr.disabled a.toggle::before {
  opacity: 0.4;
}
table.data tbody.disabled a,
table.data tbody.disabled td { color: #AAA; }
table.data tbody.disabled a.toggle::before {
  opacity: 0.4;
}
table.data tr.deleted a,
table.data tr.deleted td {
  color: #AAA;
}
table.data tr.deleted td.b,
table.data tr.deleted td.title {
  text-decoration: line-through;
}
table.data tr.merge-bottom > td {
  padding-bottom: 0;
}
table.data tr.infinite td {
  padding: 0;
  text-align: center;
}
table.data tr.infinite a,
table.data tr.infinite span {
  display: inline-block;
  position: relative;
  padding: 12px 48px;
}
table.data tr.infinite span { color: #858585; }
table.data tr.infinite a {
  color: #858585;
}
table.data tr.infinite a.active,
table.data tr.infinite a.active:hover {
  text-decoration: none;
  cursor: default;
}
table.data tr.infinite a::before {
  content: '';
  display: block;
  position: absolute; top: 10px; left: 23px; z-index: 1;
  width: 18px; height: 18px;
  background: url('../img/spinner_small.gif') no-repeat 99px 99px;
}
table.data tr.infinite a.active::before { background-position: 50% 50%; }
table.data tr.green > td,
table.data > tbody > tr.green.hoverable:hover > td { background-color: #dbffd0; }
table.data tr.orange > td,
table.data > tbody > tr.orange.hoverable:hover > td { background-color: #FF7F00; }
table.data tr.red > td,
table.data > tbody > tr.red.hoverable:hover > td { background-color: #ffd8d8; }
table.data tr > td.none { background: none; }

table.data > thead > tr > td {
  padding: 9px 12px 8px 4px;
  border-bottom: 1px solid #EEE;
  background: #FAFAFA;
  color: #858585;
  font-size: 10px;
}
table.data > thead > tr > td > div.checkbox {
  margin-top: -3px; margin-bottom: -2px;
}
table.data > tbody > tr > th,
table.data > tbody > tr > td {
  padding: 13px 12px 12px 4px;
  border-top: 1px solid #EEE;
  font-size: 12px;
}
table.data > tbody > tr > th {
  border-top: 1px solid #EEE;
  background: #FAFAFA;
  color: #F8443E;
}
table.data > tbody > tr:first-child > td {
  border-top: none;
}
table.data > tbody.separate > tr:first-child > td {
  border-top: 1px solid #EEE;
}
table.data > tbody > tr.hoverable:hover td {
  background-color: #F4FAFF;
}
table.data > tbody > tr.hoverable:hover ul.value > li:hover {
  background-color: #E3F2FF;
}
table.data > tbody > tr.hoverable:hover ul.value > li.field:hover {
  background: none;
}
table.data > tbody > tr.hoverable:hover td.none {
  background: none;
}
table.data > tbody > tr.select span.category {
  color: #FF7F00;
}
table.data > thead > tr > td:last-child,
table.data > tbody > tr > td:last-child {
  padding-right: 32px;
}
table.data > tbody > tr:hover > td > .invisible,
table.data > tbody > tr:hover > td > div.handle .invisible {
  visibility: visible;
}
table.data > tbody > tr > td > ul.actions,
table.data > tbody > tr > td > div.action {
  margin-top: -5px; margin-bottom: -4px;
}
table.data > tbody > tr > td > ul.actions {
  text-align: right;
}
table.data > tbody > tr > td > div.field {
  margin-top: -9px; margin-bottom: -8px; padding: 0;
}
table.data > tbody > tr > td > div.field + div.field {
  margin-top: 12px;
}
table.data > tbody > tr > td > div.checkbox {
  margin-top: -1px; margin-bottom: -2px;
  padding: 0 3px;
}
table.data > tbody > tr > td > div.chips {
  margin: -7px 0 -6px;
}
table.data > tbody.data > tr:last-child > td {
  border-bottom: 1px solid #EEE;
}

table.data > tbody.group-header > tr:first-child > td {
  border-top: 1px solid #EEE;
}
table.data > tbody.group-header:first-child > tr:first-child > td {
  border-top: none;
}
table.data > tbody.group-header h3 {
  margin-top: -2px; margin-bottom: -1px;
}
table.data > tbody.group-section > tr:first-child > td {
  border-top: 1px solid #EEE;
}

table.data span.handle {
  display: block;
  padding: 3px;
  width: 24px; height: 24px;
  cursor: ns-resize;
}
table.data div.handle {
  position: absolute;
  margin: -13px 0 0 -28px;
  width: 24px; height: 40px;
}
table.data div.handle span.handle {
  padding: 11px 3px;
  height: 40px;
}
table.data ul.tags {
  margin: -8px 0 -9px;
}

table.data ul.value {
  margin: -10px -4px -9px;
}

table.data span.checkbox input.invisible:checked,
table.data span.checkbox input.invisible:checked + i,
table.data span.checkbox input.placeholder:checked,
table.data span.checkbox input.placeholder:checked + i,
table.data tr:hover span.checkbox input.invisible,
table.data tr:hover span.checkbox input.invisible + i {
  visibility: visible;
}

table.data2 td.boolean {
  text-align: center;
}
table.data2 td.switch {
  padding-top: 9px; padding-bottom: 5px;
}
table.data2 > tbody > tr > th {
  padding: 8px 0 0 32px;
  color: #81888C;
  font-size: 12px;
  line-height: 16px;
}
table.data2 > tbody > tr > td {
  padding: 10px 0 6px 32px;
}
table.data2 > tbody > tr > th:first-child,
table.data2 > tbody > tr > td:first-child {
  padding-left: 0;
}
table.data2 > tbody > tr > td > div.field {
  margin-top: -8px; margin-bottom: -6px; padding: 0;
}
table.data > thead > tr > td > div.checkbox {
  margin-top: -3px; margin-bottom: -2px;
}

table.data-ext > tbody > tr > td {
  padding: 13px 0 12px 12px;
  border-top: 1px solid #EEE;
}
table.data-ext > tbody > tr:first-child > td {
  border-top: none;
}
table.data-ext > tbody > tr > td:last-child {
  padding-right: 32px;
}
table.data-ext > tbody > tr.hoverable:hover td {
  background-color: #F4FAFF;
}
table.data-ext > tbody > tr:hover > td > .invisible {
  visibility: visible;
}

table.settings th,
table.settings td {
  border-top: 1px solid #EEE;
}
table.settings th {
  padding: 8px 0;
  vertical-align: middle;
}
table.settings td {
  padding: 12px 0 12px 16px;
  text-align: right;
}
table.settings h5 {
  /*font-size: 16px;*/
}
table.settings p {
  color: #81888C;
  font-size: 12px;
}
table.settings tr:first-child th,
table.settings tr:first-child td {
  border-top: none;
}
/*table.settings.separate {
  border-top: 1px solid #EEE;
}*/

/* TODO */


table.data.ui-sortable-helper {
  -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, .23), 0 3px 10px rgba(0, 0, 0, .16);
          box-shadow: 0 3px 10px rgba(0, 0, 0, .23), 0 3px 10px rgba(0, 0, 0, .16);
}
table.data.ui-sortable-helper,
table.data.ui-sortable-helper tr.hoverable:hover td {
  background: #FFF;
}
table.data tr.ui-sortable-placeholder td {
  border: none;
}


table.data-attributes span.checkbox input.invisible:checked,
table.data-attributes span.checkbox input.invisible:checked + i,
table.data-attributes span.checkbox input.placeholder:checked,
table.data-attributes span.checkbox input.placeholder:checked + i,
table.data-attributes tr:hover span.checkbox input.invisible.invisible,
table.data-attributes tr:hover span.checkbox input.invisible.invisible + i {
  visibility: visible;
}

table.groups td.space {
  padding: 9px 0 8px;
  width: 1%;
}
table.groups td.space::before {
  content: '';
  display: block;
  width: 43px;
}
table.groups td.space a.action {
  display: block;
  margin-left: 12px;
}
table.groups td.data {
  padding: 0 0 0 28px;
}
table.groups td.title {
  padding-top: 11px; padding-bottom: 11px;
  font-size: 14px;
}
table.groups > tbody > tr > th,
table.groups > tbody > tr > td {
  padding: 13px 4px 12px 4px;
  border-top: 1px solid #EEE;
  font-size: 12px;
}
table.groups > tbody > tr:first-child > th,
table.groups > tbody > tr:first-child > td {
  border-top: none;
}
table.groups table.data > tbody.actions > tr > td {
  border-bottom: none;
}
table.groups > tbody > tr:hover > td > .invisible {
  visibility: visible;
}
table.groups td.actions {
  width: 1%;
}
table.groups tr.disabled td { color: #AAA; }
table.groups tr.disabled table.data > tbody > tr:last-child > td {
  border-bottom: none;
}
table.groups ul.actions {
  margin-top: -4px; margin-bottom: -5px;
}


/* TODO: temporary */
ul.tmpl {
  font-size: 16px;
}
ul.tmpl > li {
  margin-bottom: 16px;
}
ul.tmpl time {
  color: #AAA;
  font-size: 12px;
}


ul.options {
  position: absolute; z-index: 50;
  padding: 8px 0;
  min-width: 160px;
  background: #FFF;
  border-radius: 3px;
  font-size: 12px;
  line-height: 16px;

  -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
          box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
}
ul.options::before {
  content: '';
  display: block;
  position: absolute; top: -10px; right: 16px; z-index: 1;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(0, 0, 0, .06);
}
ul.options::after {
  content: '';
  display: block;
  position: absolute; top: -7px; right: 17px; z-index: 2;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #FFF;
}
ul.options a,
ul.options div {
  display: block;
  padding: 4px 16px;
}
ul.options a:hover,
ul.options a:focus,
ul.options a:active {
  background: #F4FAFF;
  text-decoration: none;
}
ul.options div {
  color: #FF9800;
}
ul.options-top {
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, .2);
          box-shadow: 0 0 6px rgba(0, 0, 0, .2);
}
ul.options-top::before {
  top: auto; bottom: -17px;
  border: 8px solid transparent;
  border-top: 8px solid rgba(0, 0, 0, .06);
}
ul.options-top::after {
  top: auto; bottom: -14px;
  border: 7px solid transparent;
  border-top: 7px solid #FFF;
}
ul.options-hidden {
  opacity: 0;

  -webkit-transform-origin: top right;
     -moz-transform-origin: top right;
      -ms-transform-origin: top right;
          transform-origin: top right;

  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);

  -webkit-transition: all .25s;
          transition: all .25s;
  
  -webkit-backface-visibility: hidden;
     -moz-backface-visibility: hidden;
          backface-visibility: hidden;
}

ul.cubes {
  margin-left: -16px;
  font-size: 0;
}
ul.cubes > li {
  display: inline-block;
  margin-left: 16px; margin-bottom: 16px;
  width: 140px;
  font-size: 14px;
  vertical-align: top;
}
ul.cubes h4 {
  margin-top: 12px; padding: 0 8px;
  text-align: center;
}
ul.cubes-supply a.cube,
ul.cubes-supply div.cube {
  background-color: #A9DBEB; color: #FFF;
}
ul.cubes-supply a.cube:hover,
ul.cubes-supply a.cube:focus,
ul.cubes-supply a.cube:active,
ul.cubes-supply a.cube:active,
ul.cubes-supply div.cube.hoverable:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(169, 219, 235, 0.2);
          box-shadow: 0 0 0 4px rgba(169, 219, 235, 0.2);
}
ul.cubes-master a.cube,
ul.cubes-master div.cube {
  background-color: #70A83D; color: #FFF;
}
ul.cubes-master a.cube:hover,
ul.cubes-master a.cube:focus,
ul.cubes-master a.cube:active,
ul.cubes-master div.cube.hoverable:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(112, 168, 61, 0.2);
          box-shadow: 0 0 0 4px rgba(112, 168, 61, 0.2);
}
ul.cubes-customer a.cube,
ul.cubes-customer div.cube {
  background-color: #FEBAAD; color: #FFF;
}
ul.cubes-customer a.cube:hover,
ul.cubes-customer a.cube:focus,
ul.cubes-customer a.cube:active,
ul.cubes-customer div.cube.hoverable:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(254, 186, 173, 0.2);
          box-shadow: 0 0 0 4px rgba(254, 186, 173, 0.2);
}

ul.categories {
  margin: -8px 0 -9px;
}
ul.categories > li {
  position: relative;
  padding: 8px 28px 9px 0;
}
ul.categories > li.field { padding-top: 0; padding-bottom: 0; }
ul.categories > li + li.field { margin-bottom: 9px; }
ul.categories a.action {
  position: absolute; top: 3px;
}
ul.categories a.action.i-check { right: 0; }
ul.categories a.action.i-remove { right: 0; }
ul.categories a.action.i-remove::before {
  opacity: 0.6;
}
ul.categories input.stretch { min-width: 160px; }

ul.tags > li {
  position: relative;
  padding: 8px 32px 9px 0;
}
ul.tags > li.field { padding-top: 0; padding-bottom: 0; }
ul.tags > li + li.field { margin-bottom: 9px; }
ul.tags a.action {
  position: absolute; top: 3px; right: 0;
  opacity: 0.6;
}
ul.tags input.stretch { min-width: 160px; }
ul.tags button {
  position: absolute; top: 0; right: -4px;
}


ul.value > li {
  position: relative;
  margin-top: 2px; padding: 8px 4px 9px;
}
ul.value > li:hover {
  background-color: #F4FAFF;
}
ul.value > li:hover ul.actions { visibility: visible; }
ul.value > li.field {
  padding-top: 0; padding-bottom: 0; padding-right: 36px;
}
ul.value > li.action {
  padding-top: 4px; padding-bottom: 4px;
}
ul.value > li.action > a.action {
  float: none;
  margin: 0;
}
ul.value > li.field:hover,
ul.value > li.action:hover {
  background: none;
}
ul.value ul.actions,
ul.value > li > a.action {
  float: right;
  margin-top: -4px; margin-left: 16px;
}
ul.value input.stretch { min-width: 160px; }
ul.value button,
ul.value > li > a.i-submit {
  float: none;
  position: absolute; top: 0; right: 0;
  margin: 0; padding: 7px;
  width: 32px; height: 32px;
}
ul.value span.meta {
  float: right;
  color: #AAA;
}

div.value-block {
  position: relative;
  padding-right: 24px;
}
div.value-block > a.action {
  position: absolute; top: 6px; right: 0;
}
div.value-block ul.value > li {
  padding-top: 7px; padding-bottom: 7px;
}
div.value-block ul.value > li > a.action {
  margin-top: -3px; margin-left: 4px;
}


ul.fields > li {
  position: relative;
  padding: 4px 32px 4px 4px;
}
ul.fields a.action {
  position: absolute; top: 4px; right: 0;
  margin: 0; padding: 7px;
  width: 32px; height: 32px;
}

table.data ul.fields {
  /*margin: -10px -4px -9px;*/
  margin: -13px -4px -12px;
}


ul.gallery {
  margin-top: -16px; margin-left: -16px;
  font-size: 0;
}
ul.gallery > li {
  display: inline-block;
  position: relative;
  margin-top: 16px; margin-left: 16px;
  width: 140px; height: 140px;
  border: 1px solid #EEE;
  background: #FFF;
  font-size: 12px;
  overflow: hidden;
  vertical-align: top;
}
ul.gallery > li.new { border: none; }
ul.gallery > li.placeholder {
  border: 1px dashed #EEE;
  visibility: visible;
}
ul.gallery > li.ui-sortable-helper {
  cursor: move;

  -webkit-box-shadow: 0 3px 10px rgba(0, 0, 0, .23), 0 3px 10px rgba(0, 0, 0, .16);
          box-shadow: 0 3px 10px rgba(0, 0, 0, .23), 0 3px 10px rgba(0, 0, 0, .16);
}
ul.gallery > li > a.i-remove {
  position: absolute; top: 0; right: 0; z-index: 10;
}
ul.gallery > li:hover ul.actions {
  visibility: visible;
}
ul.gallery > li.new > a.action {
  display: block;
  padding-top: 27px;
  height: 79px;
  border: 1px solid #EEE;
  text-align: center;
}
ul.gallery > li.new > a.action span {
  display: inline-block;
  position: relative;
  padding-left: 24px;
}
ul.gallery > li.new > a.action span.i::before {
  position: absolute; top: 2px; left: 0;
}
ul.gallery img {
  max-width: 100%; max-height: 138px;
  height: auto;
}
ul.gallery figure {
  display: table-cell;
  width: 138px; height: 138px;
  text-align: center;
  vertical-align: middle;
  font-size: 0;
}
ul.gallery h4 {
  padding: 8px 4px 4px;
  font-weight: normal;
}
ul.gallery h5 {
  padding: 4px 8px;
  width: 130px;
  color: #AAA;
  font-weight: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
ul.gallery ul.actions {
  position: absolute; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  visibility: hidden;
}
ul.gallery span.progress {
  font-size: 18px;
}
ul.gallery p.error {
  padding: 4px 8px;
  color: #E7391E;
  font-size: 11px;
}
ul.gallery div.w {
  display: table-cell;
  width: 138px; height: 138px;
  text-align: center;
  vertical-align: middle;
}
ul.gallery div.progress {
  position: absolute; right: 0; bottom: 0; left: 0;
  height: 4px;
}
ul.gallery div.progress > div { height: 4px; }

/* addons for gallery */
ul.video > li {
  height: auto;
  border-color: transparent;
}
ul.video figure {
  /*display: block;*/
  /*width: auto;*/
  height: 79px;
  /*overflow: hidden;*/
  text-align: left;
}
ul.video figure img {
  max-height: 79px;
}
ul.video ul.actions { top: 55px; bottom: auto; }


div.category {
  position: relative;
  margin: -8px 0 -9px; padding: 8px 28px 9px 0;
}
div.category a.action {
  position: absolute; top: 3px;
}
div.category a.action.i-remove { right: 0; }
div.category a.action.i-remove::before {
  opacity: 0.6;
}

/*a.action { background: red; }*/

a.cube,
div.cube {
  display: block;
  width: 140px; height: 140px;
  background: #EEE;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
}
a.cube > div,
div.cube > div {
  display: table-cell;
  width: 140px; height: 140px;
  text-align: center;
  vertical-align: middle;
}
a.cube b.count,
div.cube b.count {
  display: block;
  font-size: 32px; font-weight: normal;
}
a.cube span.count,
div.cube span.count {
  display: block;
  font-size: 24px;
}
a.cube span.status,
div.cube span.status {
  display: block;
  font-size: 11px;
}
a.cube span.status i,
div.cube span.status i {
  display: block;
  font-size: 18px;
}
a.cube span.status,
div.cube span.status {
  margin-top: 4px;
}


div.toggle { position: relative; }
div.toggle a.toggle {
  position: static;
  padding-left: 0;
}
div.toggle a.toggle::before { top: -1px; left: -31px; }
div.toggle a.toggle-loading {
  text-decoration: none;
  cursor: default;
}
div.toggle a.toggle-loading::before {
  background: url('../img/spinner_small.gif') no-repeat 50% 50%;
}

div.b p {
  margin-top: 4px;
}
div.b p.small {
  font-size: 11px;
}
div.b span.count {
  color: #858585;
}
div.b + div.b {
  margin-top: 4px;
}

div.breadcrumb {
  font-size: 22px;
}
div.breadcrumb span.level {
  text-transform: uppercase;
}
div.breadcrumb span.level::after {
  content: '\00a0\203A';
  position: relative; top: -2px;
}

div.breadcrumbs {
  font-size: 16px;
}
div.breadcrumbs h1 {
  text-transform: none;
}
div.breadcrumbs span.level {
  text-transform: uppercase;
}
div.breadcrumbs span.level::after {
  content: '\00a0\203A';
  position: relative; top: -2px;
}
div.breadcrumbs span.location {
  font-size: 22px;
}


div.overlay { position: absolute; z-index: 1000; }
div.overlay > i,
div.overlay > span,
div.overlay > div {
  display: block;
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
}
div.overlay > i { z-index: 2; }
div.overlay > span {
  z-index: 1;
  background: #FFF;
  opacity: 0.7;
}
div.overlay-content > span {
  opacity: 0.85;
}
div.overlay > div > table {
  margin: 0 auto;
  color: #858585;
  font-size: 14px;
  text-shadow: 0 0 10px #fff;
}
div.overlay > div > table i {
  display: block;
  margin-right: 16px;
  width: 32px; height: 32px;
}
div.overlay > div > table > tbody > tr > td { vertical-align: middle; }
div.overlay-spinner i { background: url('../img/spinner_medium.gif') no-repeat 50% 50%; }
div.overlay-spinner.small i { background: url('../img/spinner_small.gif') no-repeat 50% 50%; }
body > div.overlay { top: 0; }


a.chip,
div.chip {
  display: inline-block;
  position: relative;
  margin: 2px 4px 2px 0; padding: 0 12px;
  height: 24px; max-width: 360px;
  border-radius: 12px;
  background: #6DBCDA;
  color: #FFF;
  font-size: 12px;
  line-height: 24px;
  white-space: nowrap; 
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.chip:last-child,
div.chip:last-child {
  margin-right: 0;
}
a.chip:hover {
  text-decoration: none;
  
  -webkit-box-shadow: 0 0 0 2px rgba(109, 188, 218, 0.2);
          box-shadow: 0 0 0 2px rgba(109, 188, 218, 0.2);
}
a.chip-red,
div.chip-red { background: #D80000; }
a.chip-red:hover {
  -webkit-box-shadow: 0 0 0 2px rgba(216, 0, 0, 0.2);
          box-shadow: 0 0 0 2px rgba(216, 0, 0, 0.2);
}
a.chip-orange,
div.chip-orange { background: #FF7F00; }
a.chip-orange:hover {
  -webkit-box-shadow: 0 0 0 2px rgba(255, 175, 0, 0.2);
          box-shadow: 0 0 0 2px rgba(255, 175, 0, 0.2);
}
a.chip-green,
div.chip-green { background: #218C00; }
a.chip-green:hover {
  -webkit-box-shadow: 0 0 0 2px rgba(33, 140, 0, 0.2);
          box-shadow: 0 0 0 2px rgba(33, 140, 0, 0.2);
}
div.chip.disabled { background: #AAA; }
div.chip.disabled:hover {
  -webkit-box-shadow: 0 0 0 2px rgba(170, 170, 170, 0.2);
          box-shadow: 0 0 0 2px rgba(170, 170, 170, 0.2);
}
div.chip-action {
  padding-right: 28px;
}
div.chip-action a.i {
  position: absolute; top: 0; right: 0;
  padding: 3px;
}
div.chip-action a.i-remove::before {
  background-position: 0 -216px;
}
div.chip-action a.i-restore::before {
  background-position: 0 -342px;
}
div.chip span.count {
  opacity: 0.4;
}
div.chips { font-size: 0; }
div.chips-block {
  padding: 2px 32px 2px 48px;
}


/*div.chips-before {
  margin-top: -8px; padding-bottom: 8px;
}*/
div.chips-before div.chip {
  margin-bottom: 4px; margin-top: 4px;
}
div.chips-before div.chip:last-child { margin-bottom: 16px; }


div.compare {
  margin-left: -16px;
  height: 252px;
}
div.compare > div {
  float: left;
  margin-left: 16px;
  width: calc(50% - 16px); height: 236px;
  border: 1px solid #EEE;
  border-radius: 4px;
  overflow: auto;
}


div.product-description {
  max-width: 240px;
}


div.progress {
  background: #F1F1F1;
  height: 8px;
  overflow: hidden;
}
div.progress > div {
  background: #FF8C41;
  width: 0%; height: 8px;

  -webkit-transition: width .2s ease-in-out;
     -moz-transition: width .2s ease-in-out;
       -o-transition: width .2s ease-in-out;
          transition: width .2s ease-in-out;
}

div.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.2);
  width: 100%; height: 4px;
  overflow: hidden;
}
div.progress-bar > div {
  background: #FF7F00;
  width: 0%; height: 4px;

  -webkit-transition: width .2s ease-in-out;
     -moz-transition: width .2s ease-in-out;
       -o-transition: width .2s ease-in-out;
          transition: width .2s ease-in-out;
}


header.group {
  padding: 16px 31px 16px 47px;
  border-top: 1px solid #DDD;
}
header.group a.toggle {
  display: inline;
  padding-left: 0;

}
header.group a.toggle::before { top: 1px; left: -31px; }
header.group h3 {
  display: inline-block;
}
header.group span.count {
  color: #AAA;
  font-size: 12px;
}
header.group span.category {
  float: right;
  padding-top: 1px;
  color: #AAA;
  font-size: 12px;
}
header.group ul.actions {
  float: right;
  margin-top: -2px;
}
header.group div.field {
  float: right;
  margin: -6px 0 0; padding: 0;
}
header.group.merge-top {
  padding-top: 0;
  border-top: none;
}
header.group.first-child,
.group-first-child header.group:first-child {
  border-top: none;
}

form.attribute-form header.group.merge-top {
  margin-top: -16px;
}

section.group table.data {
  border-top: 1px solid #EEE;
}
section.group fieldset:first-child {
  padding-top: 0;
}
section.group fieldset.form-h.separate {
  margin: 0; padding-left: 32px;
}
section.group div.chips-block { padding-bottom: 16px; }
section.group-space::after { /* not used */
  content: '';
  display: block;
  height: 24px;
}


aside.supplier-meta {
  font-size: 18px;
}
aside.supplier-meta span.title {
  display: block;
  margin-bottom: 16px;
  color: #81888C;
  font-size: 22px;
  text-transform: uppercase;
}

aside.filter > div.w {
  margin: 0 auto; padding: 8px 32px 0 32px;
  min-width: 1024px; max-width: 1600px;
}


header.container {
  border-bottom: 1px solid #DDD;
  min-width: 1024px;
}
header.container > div {
  margin: 0 auto; padding: 24px 31px 24px 47px;
  max-width: 1600px;
}
header.container h1,
header.container h2 {
  display: inline;
}
header.container h2 {
  text-transform: none;
}
header.container h1 + h2::before {
  content: ' - ';
}
header.container span.count {
  display: inline-block;
  margin-left: 8px;
  color: #777;
  font-size: 22px;
}
header.container ul.actions {
  float: right;
}
header.container ul.actions > li {
  padding-left: 16px;
}
header.container div.buttons {
  float: right;
  margin: -1px 0 0;
}


section.container div.w {
  margin: 0 auto; padding: 32px 31px 16px 47px;
  min-width: 1024px; max-width: 1600px; 
}
section.container.separate::before {
  content: '';
  display: block;
  position: absolute; left: 0; right: 0;
  margin-top: -32px;
  border-top: 1px solid #DDD;
}

section.cubes {
  margin-bottom: 32px;
}

section.dashboard {
  
}

section.data > div.w {
  padding: 0 1px;
}
section.data.separate::before { margin-top: 0; }

section.block {
  margin-bottom: 16px;
}
section.block.separate {
  border-top: 1px solid #EEE;
}

section.supplier ul.cubes {
  width: 510px;
}
section.supplier aside.supplier-meta {
  float: right;
  padding: 28px 0;
  width: 464px;
  text-align: center;
}

article.form > div.w {
  margin: 0 auto; padding: 8px 32px 0 48px;
  min-width: 1024px; max-width: 1600px;
}
article.form div.field span.updated {
  position: absolute; top: 4px; right: 0; z-index: 1;
  font-size: 12px;
  line-height: 16px;
}


section.customer-wl .break-word {
  /*max-width: 328px;*/
}
section.customer-wl button.button {
  margin-bottom: 8px;
}
section.customer-wl table.data td.wl button.button {
  float: right;
  margin-left: 16px;
}
section.customer-wl table.data td.wl ul.actions {
  float: right;
  margin: 0;
}
section.customer-wl table.data td.wl button.button,
section.customer-wl table.data tr:hover td.wl button.button,
section.customer-wl table.data td.wl ul.actions,
section.customer-wl table.data tr:hover td.wl ul.actions {
  visibility: hidden;
}
section.customer-wl table.data td.wl:hover button.button,
section.customer-wl table.data tr:hover td.wl:hover button.button,
section.customer-wl table.data td.wl:hover ul.actions,
section.customer-wl table.data tr:hover td.wl:hover ul.actions {
  visibility: visible;
}
section.customer-wl table.data td.wl div.b {
  overflow: hidden;
}
section.customer-wl table.data-ext {
  table-layout: fixed;
}
section.customer-wl table.data-ext td.actions {
  width: 120px;
}

section.supplier-wl span.sm {
  display: inline;
  position: relative;
  color: #AAA;
  font-size: 10px;
}
section.supplier-wl span.sm span {
  position: absolute; left: -32px; top: 0;
}


section.map-attribute header.default h2,
section.map-attribute header.default h3 {
  display: table-cell;
  vertical-align: top;
}
section.map-attribute header.default h2 { width: 354px; }
section.map-attribute header.default h3 {
  width: 548px;
  font-size: 22px;
}
section.map-attribute table.groups td.title { width: 328px; }


ul.shortlist {
  font-size: 12px;
  list-style: square outside;
}
ul.shortlist > li {
  margin-bottom: 8px;
}

section.product-shortlist {
  width: 800px;
}
section.product-shortlist header.default h2 {
  display: block;
  max-width: 676px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
section.product-shortlist div.modal-s {
  max-height: 232px;
  overflow: auto;
}


section.import-result {
  width: 480px;
}
section.import-result h3 {
  margin-top: 16px; margin-bottom: 10px;
  font-size: 16px;
}
section.import-result h3:first-child { margin-top: 0; }
section.import-result table th,
section.import-result table td {
  padding: 6px 0;
}
section.import-result table td {
  padding-left: 8px;
  text-align: right;
}
section.import-result div.modal-s {
  padding: 24px 32px 24px 48px;
}

/* TODO: refactor */
article.product h2,
article.supplier-product h2 {
  margin-bottom: 16px;
  font-size: 16px;
}
article.product p.breadcrumbs,
article.supplier-product p.breadcrumbs {
  margin-top: -12px; margin-bottom: 16px;
}
article.product p.description {
  margin-bottom: 16px;
  min-width: 400px; max-width: 50%;
  font-size: 12px;
}
article.product div.value-block,
article.supplier-product div.value-block {
  margin-top: 24px;
  float: right;
}

section.product-attributes a.chip,
section.product-attributes div.chip {
  max-width: 800px;
}


#middle section.form { padding: 0; }
#middle footer.form {
  padding: 24px;
  border-top: none;
}
#middle section.form > div.w,
#middle footer.form > div.w {
  margin: 0 auto; padding: 0 32px 0 48px;
  min-width: 1024px; max-width: 1600px;
}
#middle footer.form::before,
#middle section.form::before {
  content: '';
  display: block;
  position: absolute; left: 0; right: 0;
  border-top: 1px solid #DDD;
}
#middle footer.form::before {
  margin-top: -24px;
}


@media screen and (-webkit-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
  .i::before,
  a.sort::before,
  a.toggle::before {
    background-image: url('../img/icons_18_x2.png');
    background-size: 18px;
  }

  input.field-period,
  input.field-datepicker {
    background-image: url('../img/datepicker_x2.png');
    background-size: 24px 24px;
  }
  select.field {
    background-image: url('../img/select_x2.png');
    background-size: 24px 24px;
  }

  table.data tr.infinite a::before {
    background-image: url('../img/spinner_medium.gif');
    background-position: 16px 16px;
  }

  div.overlay-spinner i {
    background-image: url('../img/spinner_big.gif');
    background-position: 32px 32px;
  }
  div.overlay-spinner.small i {
    background-image: url('../img/spinner_medium.gif');
    background-position: 16px 16px;
  }

  div.modal-tools a.modal-close::before {
    background-image: url('../img/sprite_x2.png');
    background-size: 32px auto;
  }

  #logo {
    background-image: url('../img/logo_x2.png');
    background-size: 16px 16px;
  }
}
