#admgmtform {
  width: 198px;
  margin: 0 5px;
}

#admgmtform > p {
  width: 198px;
  min-height: 22px;
  margin: 0 0 3px;
  padding: 15px 0;
  border: 0 none;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  line-height: 22px;
  overflow: hidden;
}

#admgmtform > p:first-child {
  border-top: 0 none;
}

#admgmtform > p:last-child {
  margin-bottom: 0;
  border-bottom: 0 none;
}

#admgmtform > p > input,
#admgmtform > p > span > input {
  display: block;
  height: 18px;
  margin: 12px 0 0;
  padding: 2px;
  border: 0 none;
  color: #666;
  line-height: 18px;
  background: #efefef;
  outline: none;
}

#admgmtform > p > input:first-child,
#admgmtform > p > span > input:first-child {
  margin: 0;
}

#admgmtform.update > p > input,
#admgmtform.update > p > span > input {
  color: #c0c0c0;
}

#admgmtform > p > input.err,
#admgmtform > p > span > input.err {
  color: #f74160;
}

#admgmtform > p > input.ico,
#admgmtform > p > span > input.ico {
  padding-left: 22px;
  background-position: 2px 50%;
  background-repeat: no-repeat;
}

#admgmtform > p > input.ico {
  width: 174px;
}

#admgmtform > p > span.link > input.ico {
  width: 108px;
}

#admgmtform > p > span.date > input.ico {
  width: 96px;
}

#admgmtform > p > span.link {
  display: inline;
  float: left;
  width: 132px;
}

#admgmtform > p > span.src {
  position: relative;
  display: inline;
  float: right;
  width: 56px;
  height: 56px;
  background: #e0e0e0 url(../img/ico.ad.img.svg) 50% 50% no-repeat;
  cursor: pointer;
}

#admgmtform > p > span.src:hover {
  background: #e0e0e0;
}

#admgmtform > p > span.src > span.img {
  position: absolute;
  display: block;
  width: 50px;
  height: 50px;
  padding: 2px;
  border: 1px dashed #c7c7c7;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-origin: content-box;
  background-clip: content-box;
  background-size: cover;
}

#admgmtform > p > span.src > input.err + span.img {
  border-color: #f74160;
}

#admgmtform > p > span.src > span.img > i {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  border-radius: 50%;
}

#admgmtform > p > span.src:hover > span.img > i {
  background: rgba(0,0,0,.2) url(../img/ico.ad.src.svg) 50% 50% no-repeat;
}

#admgmtform > p > span.pos {
  display: inline;
  float: left;
  width: 68px;
}

#admgmtform > p > span.pos > span.l {
  display: inline;
  float: left;
  width: 20px;
}

#admgmtform > p > span.pos > span.r {
  display: inline;
  float: right;
  width: 40px;
}

#admgmtform > p > span.pos > span > i {
  display: block;
  width: 18px;
  height: 8px;
  margin: 0 0 5px 0;
  border: 1px dashed #c7c7c7;
  background: #e0e0e0;
}

#admgmtform > p > span.pos > span > i:last-child {
  margin: 0;
}

#admgmtform > p > span.pos > span.r > i {
  width: 38px;
  height: 63px;
}

#admgmtform > p > span.pos > span > label {
  display: block;
  margin: 0 0 5px 0;
  cursor: pointer;
}

#admgmtform > p > span.pos > span > label > input {
  display: none;
}

#admgmtform > p > span.pos > span > label > i {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px dashed #c7c7c7;
  background: #efefef;
}

#admgmtform > p > span.pos > span.r > label > i {
  width: 38px;
}

#admgmtform > p > span.pos > span > label > input.err + i {
  border-color: #f74160;
}

#admgmtform > p > span.pos > span > label > input:checked + i::after {
  position: absolute;
  display: block;
  width: 16px;
  height: 16px;
  margin: 1px;
  background: url(../img/ico.ad.checked.svg) 50% 50% no-repeat;
  content: '';
}

#admgmtform > p > span.pos > span.r > label > input:checked + i::after {
  width: 36px;
}

#admgmtform > p > span.date {
  display: inline;
  float: right;
  width: 120px;
}

#admgmtform > p > input[name=advertiser] {
  background-image: url(../img/ico.ad.ader.svg);
}

#admgmtform > p > input[name=contact] {
  background-image: url(../img/ico.ad.contact.svg);
  background-position-x: 4px;
}

#admgmtform > p > span > input[name=link] {
  background-image: url(../img/ico.ad.link.svg);
}

#admgmtform > p > span > input[name=description] {
  background-image: url(../img/ico.ad.text.svg);
  background-position-x: 3px;
}

#admgmtform > p > span > input[name=date] {
  width: 116px;
}

#admgmtform > p > span > input[name=duration] {
  background-image: url(../img/ico.ad.date.svg);
}

#admgmtform > p > span > input[name=price] {
  background-image: url(../img/ico.ad.price.svg);
  background-position-x: 3px;
}

#admgmtform > p.btn > input[type=submit] {
  display: inline;
  float: right;
  width: 45px;
  margin: 0;
  box-sizing: content-box;
  text-align: center;
  background: #f5f5f5;
  cursor: pointer;
}

#admgmtform > p.btn > span {
  position: relative;
  display: none;
  width: 110px;
  height: 18px;
  margin: 2px 0;
  padding: 0 0 0 18px;
  line-height: 18px;
  color: #c0c0c0;
}

#admgmtform.update > p.btn > span {
  display: inline;
  float: left;
}

#admgmtform > p.btn > span::before {
  position: absolute;
  display: block;
  width: 10px;
  height: 10px;
  left: 0;
  margin: 2px auto;
  border: 2px solid rgba(0,0,0,.15);
  border-left: 2px solid rgba(0,0,0,.35);
  border-radius: 50%;
  animation: waiting 1s linear infinite;
  content: '';
}

#admgmtlist {
  display: none;
  width: 198px;
  margin: 0 5px;
  border-top: 4px dotted #d9d9d9;
  overflow: hidden;
}

#admgmtlist.list {
  display: block;
}

#admgmtlist.wait {
  position: relative;
  display: block;
  height: 20px;
  padding: 10px 0;
}

#admgmtlist.wait::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  left: 0;
  right: 0;
  margin: 2px auto;
  border: 2px solid rgba(0,0,0,.15);
  border-left: 2px solid rgba(0,0,0,.35);
  border-radius: 50%;
  animation: waiting 1s linear infinite;
  content: '';
}

#admgmtlist > li {
  position: relative;
  display: inline;
  float: left;
  width: 54px;
  height: 54px;
  margin: 15px 15px 0 0;
  border: 1px solid rgba(0,0,0,.1);
  background-color: #efefef;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-origin: border-box;
  background-size: cover;
}

#admgmtlist > li:nth-child(3n+0) {
  margin-right: 0;
}

#admgmtlist > li:last-child {
  margin-bottom: 15px;
}

#admgmtlist > li:not(.lock).eft::after {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  top: -1px;
  right: -1px;
  border-top: 10px solid rgba(252,159,0,.75);
  border-left: 10px solid transparent;
  content: '';
}

#admgmtlist > li > i.btn {
  position: absolute;
  display: none;
  width: 22px;
  height: 22px;
  top: 0;
  bottom: 0;
  margin: auto;
  border-radius: 50%;
  color: #efefef;
  line-height: 22px;
  text-align: center;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}

#admgmtlist > li:not(.lock):hover > i.btn {
  display: block;
}

@keyframes adbtnanil {
  0% {left: -6px;opacity: 0;}
  100% {left: 2px;opacity: 1;}
}

#admgmtlist > li:hover > i.update {
  left: 2px;
  animation: adbtnanil .2s;
}

@keyframes adbtnanir {
  0% {right: -6px;opacity: 0;}
  100% {right: 2px;opacity: 1;}
}

#admgmtlist > li:hover > i.del {
  right: 2px;
  animation: adbtnanir .2s;
}

#admgmtlist > li > i.mask {
  position: absolute;
  display: none;
  width: 100%;
  height: 100%;
  top: -1px;
  left: -1px;
  z-index: 1;
  padding: 1px;
  background: rgba(229,229,229,.7) url(../img/ico.ad.lock.svg) 50% 50% no-repeat;
}

#admgmtlist > li.lock > i.mask {
  display: block;
}