* {
  box-sizing: border-box;
}

:focus {
  outline: 0;
}

::-moz-focus-inner {
  border: 0;
  outline: 0;
}

select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

body {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.2;
  background: #cecece;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

.fieldGroup {
  border: 1px solid #c0c0c0;
}

.fieldGroup legend {
  margin-left: 10px;
}

input[type=text],
input[type=search],
input[type=password],
input[type=date],
select,
textarea {
  margin: 3px;
  padding: 6px 4px;
  color: #000000;
  border:1px solid #c0c0c0;
  border-radius: 4px;
  background: #f5f5f5;
}

input[type=text]:enabled:hover,
input[type=search]:enabled:hover,
input[type=password]:enabled:hover,
input[type=date]:enabled:hover,
select:enabled:hover,
textarea:enabled:hover {
  border-color: #a0a0a0;
  background: #ffffff;
}

input[type=text]:enabled:focus,
input[type=search]:enabled:focus,
input[type=password]:enabled:focus,
input[type=date]:enabled:focus,
select:focus,
textarea:focus {
  border-color: #8fc8ff;
  background: #ffffff;
}

input[type=text]:disabled,
input[type=search]:disabled {
  background: #f0f0f0;
}



button {
  margin: 3px;
  padding: 6px 8px;
  color: #000000;
  border:1px solid #c0c0c0;
  border-radius: 4px;
  background: #e5e5e5;

  vertical-align: top;
}

button:enabled:hover {
  border-color: #a0a0a0;
  background: #f0f0f0;
}

button:enabled:focus {
  border-color: #8fc8ff;
  background: #f0f0f0;
}

button:enabled:active {
  padding-bottom: 4px;
  padding-top: 8px;
}

a {
  text-decoration: none;
  color: #000000;
}

a:hover,
a:focus {
  text-decoration: underline;
}

#divAuth {
  display: flex;
}

#frmAuth {
  width: 400px;
  background: #f0f0f0;
  box-shadow: 0 0 10px #3f3f3f;
}

#frmAuth input,
#frmAuth button {
  display: block;
  margin: 15px 4%;
  width: 92%;
}

#divContent {
  display: none;
  padding-top: 50px;
}

#divHeader {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;

  text-align: right;
  padding: 3px 15px;
  background: #f0f0f0;
  box-shadow: 0 0 10px #3f3f3f;
  z-index:1;
}

#divHeader .cntrlIcon {
  height: 28px;
}

#divHeader #cntrlContracts {
  height: 22px;
}

.cntrlIcon {
  margin: 2px;
  vertical-align: middle;
  cursor: pointer;
  opacity: .6;
}

.cntrlIcon:hover {
  opacity: 1;
}

.tblData {
  margin: 15px;
  min-width: 360px;
  border-collapse: collapse;
  background: #ffffff;
  box-shadow: 0 0 10px #3f3f3f;
}

.tblData thead {
  color: #f0f0f0;
  background: #303030;
}

.tblData tbody {
  color: #000000;
  background: #ffffff;
  white-space: pre-line;
}

.tblData th,
.tblData td {
  padding: 8px 5px;
  border: 1px solid #c0c0c0;
}

.tblData tbody tr:nth-child(even) {
  background: #f5f5f5;
}

.tblData tbody tr:hover {
  background: #dfefff;
}

.tblData .cntrlIcon {
  margin-top: 4px;
  margin-bottom: 4px;
  height: 22px;
}

#divSearch {
  display: flex;
  margin: 0 15px;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 4px;
  box-shadow: 0 0 10px #3f3f3f;
}

#frmSearch {
  display: flex;
  flex: 1;
}

#frmSearch input {
  margin-left: 0;
  margin-right: 0;
  /*width: 100%;*/
  flex: 1;
  padding-left: 25px;
  background-image: url('../img/search.svg');
  background-repeat: no-repeat;
  background-position: left center;
}

#cntrlAddContract {
  margin-left: 25px;
  margin-right: 0;
}

#tblContracts {
  display: none;
  width: calc(100% - 30px);
}

.badge {
  position: relative;
}

.badgeContent {
  position: absolute;
  right: 7px;
  bottom: -16px;
  padding: 2px;
  font-family: cursive;
  font-size: 12px;
  color: blue;
  /*background: rgba(255,255,255,.8);*/
  /*border-radius: 50%;*/
}

#divMassSearch {
  height: 0px;
  position: relative;
  overflow: visible;
  width: calc(40vw + 200px);
  margin: 10px 15px;
}

#divMassSearch .dmsWrapper {
  height: calc(20vh + 150px);
  overflow: hidden auto;
  background: #f0f0f0;
  transition: 0.3s height;
  border-radius: 4px;
  box-shadow: 0 0 10px #3f3f3f;
  display: flex;
}

#divMassSearch .dmsWrapper .dmsRowsNumeration {
  border-right: solid 2px #000;
  width: 20px;
  display: flex;
  flex-direction: column;
  padding: 5px 0;
  min-height: 100%;
}

#divMassSearch .dmsWrapper .dmsRowsNumeration span {
  text-align: center;
  height: 18px;
}

#divMassSearch .dmsWrapper textarea {
  margin: 0;
  border-radius: 0;
  border: 0;
  width: 100%;
  padding: 5px 2px;
  line-height: 18px;
  font-size: 14px;
  min-height: 100%;
  resize: none;
  overflow-y: hidden;
}

#divMassSearch .dmsWrapper form {
  width: 100%;
  margin-right: 25px;
}

#cntrlMassSearchSubmit {
  margin-top: 8px;
  margin-left: 10px;
}

#cntrlMassSearchClose {
  aspect-ratio: 1;
  border-radius: 100%;
  height: 30px;
  margin-left: 10px;
  background: #0004;
  border: none;
  padding: 0;
  transition: .2s background;
  cursor: pointer;
}

#cntrlMassSearchClose:hover {
  background: #0003;
}

#cntrlMassSearchClose span {
  position: relative;
  top: -1px;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

#divMassSearch .dmsHeader {
  height: 0;
  overflow: visible;
  position: relative;
  left: 100%;
  width: min-content;
}

#divMassSearch .dmsFooter {
  display: flex;
}

#cntrlMassSearch.active {
  box-shadow: 0px 0px 4px 1px #bab9dd;
}

#divExport {
  display: flex; 
  justify-content: center;
  margin-bottom: 15px;
}
  
#tblUsers {
  display: none;
  margin: 15px auto;
}

#tblUsers p {
  margin: 0;
  padding: 0;
  font-size: small;
}

.modalWrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
}

.modalContent {
  width: 400px;
  background: #f0f0f0;
  outline: 1px solid #ffffff;
  box-shadow: 0 0 10px #3f3f3f;
}

.modalTitle {
  display: block;
  width: 100%;
  padding: 10px 4%;
  color: #f0f0f0;
  background: #303030;
}

#frmUser .fieldGroup {
  margin: 15px;
}

.cntrlGroupX,
.cntrlGroupY {
  display: flex;
  margin: 10px 15px;
}

.cntrlGroupX {
  align-items: center;
}

.cntrlGroupY {
  flex-direction: column;
}

.cntrlGroupX input,
.cntrlGroupX button,
.cntrlGroupX select,
.cntrlGroupX textarea,
.cntrlGroupY input,
.cntrlGroupY button,
.cntrlGroupY select,
.cntrlGroupY textarea {
  margin-left: 0;
  margin-right: 0;
}

.cntrlGroupY input[type=text],
.cntrlGroupY input[type=password],
.cntrlGroupY textarea {
  display: block;
  width: 100%;
}

.cntrlGroupX {
  justify-content: space-between;
}

#divNotificationArea {
  position: fixed;
  right: 0;
  top: 40px;
  left: 0;
  z-index: 100;
}

.divMsg {
  display: none;
  float: right;
  clear: right;
  margin: 5px 10px 5px 5px;
  padding: 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
}

.divMsgNotify {
  color: #547892;
  background: #cce8f4;
  border-color: #a9c0cc;
}

.divMsgError {
  color: #964246;
  background: #ebc8c4;
  border-color: #b28f8d;
}

.shake-x {
  animation: shake-x 0.5s;
}

@keyframes shake-x {
  0%   { transform: translateX(30px);  }
  15%  { transform: translateX(-30px); }
  30%  { transform: translateX(15px);  }
  45%  { transform: translateX(-15px); }
  60%  { transform: translateX(5px);   }
  75%  { transform: translateX(-5px);  }
  100% { transform: translateX(0px);   }
}




@media (hover:none ) and (pointer: coarse) {
  .badgeComments::before {
    display: block;
    content: 'Комментарии:\0A' attr(title);
    margin-bottom: 15px;
  }

  .badgeContent {
    display: none;
  }
}


@media (max-width:600px) {
  .hidden-mobile {
    display: none;
  }


  #divSearch {
    margin-left: 0;
    margin-right: 0;
  }
  
  #divMassSearch {
	margin-left: 0;
    margin-right: 0;
	width: 100%;
  }
}

@media (min-width:601px) {
  .hidden-desktop {
    display: none;
  }
}

@media (max-width:1020px) {
  #tblContracts {
    background: none;
    box-shadow: none;
  }

  #tblContracts thead {
    display: none;
  }

  #tblContracts tbody {
    background: none;
  }

  #tblContracts tr {
    display: block;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #c0c0c0;
    box-shadow: 0 0 10px #3f3f3f;
  }

  #tblContracts td {
    display: block;
    border: 0;
  }

  #tblContracts tr td:nth-child(1) {
    color: #f0f0f0;
    background: #303030;
  }

  #tblContracts tr td:nth-child(1)::before {
    content: 'Контракт #';
  }

  #tblContracts tr td:nth-child(2)::before {
    display: block;
    content: 'Дата заключения:';
  }

  #tblContracts tr td:nth-child(3)::before {
    display: block;
    content: 'Партнер:';
  }

  #tblContracts tr td:nth-child(4)::before {
    display: block;
    content: 'Адрес партнера:';
  }

  #tblContracts tr td:nth-child(5)::before {
    display: block;
    content: 'Телефон партнера:';
  }

  #tblContracts tr td:nth-child(6)::before {
    display: block;
    content: 'Email партнера:';
  }

  #tblContracts tr td:nth-child(7)::before {
    display: block;
    content: 'Спонсор:';
  }

  #tblContracts tr td:nth-child(8)::before {
    display: block;
    content: 'Сервисный центр:';
  }
  
  #cntrlAddContract {
    margin-left: 10px;
  }
  
  #divMassSearch {
	width: auto;
  }
  
  #cntrlMassSearchSubmit {
    margin: 10px 0 0 0;
    height: 35px;
  }
  
  #cntrlMassSearchClose {
    display: none;
  }
  
  #divMassSearch .dmsFooter {
	justify-content: center;
  }
}

@media (max-width:390px) {
  .tblData {
    min-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
