/* CSS Document */

* {
	border:none;
	margin:0;
	padding:0;
	box-sizing: border-box;
}


@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-Light.eot'),
         url('../fonts/OpenSans-Light.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-Semibold.eot'),
         url('../fonts/OpenSans-Semibold.ttf') format("truetype");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-LightItalic.eot'),
         url('../fonts/OpenSans-LightItalic.ttf') format("truetype");
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'OpenSansLight';
    src: url('../fonts/OpenSans-SemiboldItalic.eot'),
         url('../fonts/OpenSans-SemiboldItalic.ttf') format("truetype");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'OpenSansCond';
    src: url('../fonts/OpenSans-CondLight.eot'),
         url('../fonts/OpenSans-CondLight.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSansCond';
    src: url('../fonts/OpenSans-CondBold.eot'),
         url('../fonts/OpenSans-CondBold.ttf') format("truetype");
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSansCond';
    src: url('../fonts/OpenSans-CondLightItalic.eot'),
         url('../fonts/OpenSans-CondLightItalic.ttf') format("truetype");
    font-weight: normal;
    font-style: italic;
}




body {
	font-family: OpenSansLight, Arial, Helvetica, sans-serif;
	font-size: 14px;
	background:#fff;
}
input, select, textarea {
	font-size: 14px ;
	font-family:  OpenSansLight, Arial, Helvetica, sans-serif;
	border:1px solid #e0e0e0;
	padding: 4px;
	background:#eee;
    width: 100%;
    box-sizing: border-box;
}
input[type=number] {
    width: 50px;
}
input[type=checkbox], input[type=radio] {
    width: auto;
}

table { border-collapse: collapse; }

td, th {
	border: #fff groove 2px;
	padding:0 3px;
	vertical-align:top;
	text-align:left;
	white-space:nowrap;
}
td:hover {
	background-color:#ff0;
}
tr:hover {
	background-color:#ffe;
}
tr {
	background:#f5f5f5;
}
th {
	background:#345;
	color:#31404f;
	font-size:11px;
	color:#fff;
}

main{
    display: block;
}


h1,h2,h3,h4,h5,h6 {
    font-weight: normal;
}
h1 {
    text-align: center;
    font-size: 32px;
    line-height: 32px;
    margin: 12px 0 20px;
}

.search {
    height: 50px;
    width: 100%;
    background: #ccc;
    display: flex;
    position: fixed;
    top: 0;
}
#sword {
    width: calc(100% - 50px);
    margin: 9px 5px;
    height: 32px;
}
.search em {
    content: ' ';
    position: absolute;
    top: 13px;
    right: 8px;
    width: 26px;
    height: 26px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/cancel.svg);
    cursor: pointer;
    opacity: 0.6;
}
#magn {
    height: 30px;
    width: 30px;
    margin: 10px 5px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url('../img/search.svg');
}
.articles {
    margin-top: 50px;
}
.article {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #aaa;
    padding: 5px;
    font-weight: bold;
    font-size: 14px;
}
.article.new {
    margin-top: 60px;
    font-style: italic;
    border-top: 1px solid #aaa;
}
.article.inactive {
    opacity: 0.3;
}
.article hr {
    border-bottom: 1px solid #aaa;
    display: block;
    clear: both;
}
.image {
    width: 50px;
    height: 50px;
}
.image img {
    width: 100%;
    height: auto;
}
.desc {
    width: calc(100% - 195px);
}
.desc span, .desc em {
}
.desc em {
    font-weight: normal;
    font-style: normal;
    padding-left: 8px;
    font-size: 12px;
}
.article ul {
    display: block;
    line-height: 12px;
    margin-top: 4px;
    margin-bottom: 4px;
}
.article li {
    display: inline-block;
    font-size: 10px;
    font-weight: 100;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    margin-right: 4px;
    background: #06d;
}
.desc span input {
    width: 70%;
}
.desc em input {
    width: 25%;
}
button.submit, 
button.reset,
button.delete {
    height: 30px;
    width: 30px;
    margin: 5px 10px;
    line-height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    background-color: transparent;
}
button.submit {
    background-image: url('../img/check.svg');
}
button.reset {
    background-image: url('../img/cancel.svg');
}
button.delete {
    background-image: url('../img/trash.svg');
    float: right;
}
.stock {
    width: 135px;
    text-align: center;
    font-size: 30px;
}
.stock em {
    font-style: normal;
}
.minus, .plus {
    display: none;
    height: 30px;
    width: 30px;
    border-radius: 15px;
    line-height: 30px;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    user-select: none;
}
.minus {
    background-image: url('../img/minus.svg');
    margin: 5px 10px 5px 0;
}
.plus {
    background-image: url('../img/plus.svg');
    margin: 5px 0 5px 10px;
}
.progress {
    opacity: 0.3;
    animation: rotating 1s linear infinite;
}
.minus.error, .plus.error {
    background-color: pink;
}
.article.act .minus,
.article.act .plus {
    display: inline-block;
}

#imagedialog {
    position: fixed;
    left: 55px;
    top: 50px;
    bottom: 50px;
    right: 10px;
    background: #f3f3f3;
    padding: 10px;
    border: 1px solid #aaa;
}
#imagedialog input[type=file] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}
#imagedialog label {
    text-align: center;
    border: 1px solid black;
    min-width: 80px;
    padding: 5px 10px 5px;
    cursor: pointer;
    user-select: none;
    border-radius: 20px;
    display: inline-flex;
}
#imagedialog label img {
    margin: 0px 5px;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* switch toggle */
.activetoggle {
    padding-bottom: 5px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.switch b {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  background-color: #eee;
  transition: .4s;
}

.switch b:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  border-radius: 50%;
  background-color: white;
  transition: .4s;
}

.switch input:checked + b {
  background-color: #06d;
}

.switch input:focus + b {
  box-shadow: 0 0 1px #06d;
}

.switch input:checked + b:before {
  transform: translateX(26px);
}





/* some jquery ui overrides */
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
	border: 1px solid #cc0000;
	background: #fef1ec;
	color: #cc0000;
}
div.ui-state-error,
.ui-widget-content div.ui-state-error,
.ui-widget-header div.ui-state-error {
	border: none;
	background: none;
}

.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: OpenSansLight, Arial, Helvetica, sans-serif;
}
.ui-widget {
    font-family: OpenSansLight, Arial, Helvetica, sans-serif;
}




