body {
  font-family: 'PT Sans', sans-serif;
  font-size: 16px;
  line-height: 27px;
  color: #3a3a3a;
  font-weight: 400;
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.1s;
}

.td-adds {
  display: flex;
  flex-wrap: nowrap;
  flex: 1 1 100%;
  width:100%;
}

.td-adds div {
  display: flex;
  white-space: nowrap;
}

.td-adds div:first-child {
  flex: 1 1 auto;
  padding-right:10px;
}

.td-adds div:last-child {
  flex: 0 1 auto;
}



.modal-footer.modal-footer-center {
  justify-content: center;
}

.no-borders .modal-header {
  border-bottom:0;
}

.no-borders .modal-footer {
  border-top:0;
}
.no-borders .modal-body {
  padding-top:0;
  padding-bottom:0;
}

.no-borders .modal-body table {
  margin-bottom:0;
  }

.table-flip tr:not(:last-child) th {border-top:1px solid transparent;}
.table-flip .progress {height:20px; margin-top: 5px;}

/*.table-flip tr:first-child th {*/
/*    border-top: 1px solid transparent;*/
/*  }*/

.table {
  margin-top: 10px;
}

.table td, .table th {
  border: 2px solid;
  border-color: #dee2e6;
}

.table tr:nth-child(odd) {
  /*background: #f5f5f5;*/
}

.page-item.active .page-link {
    background-color: #2980b9;
    border-color: #007bff;
}

.page-link {
    color: #2980b9;
}

.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}



.action-button {
  margin-right:7px;
  opacity: .7;
  transition: opacity .1s, transform .1s;
}

.action-button:hover {
  opacity: 1;
  transform: scale(1.1);
  }

/* mobile burger */

.mobileburger {
  position: relative;
  height: 27px;
  width: 35px;
  cursor: pointer;
  *z-index: 100;
  transition: opacity .25s ease;
  opacity: .8;
  display: none;
}

.mobileburger.active {
  opacity: 1;
}

.mobileburger.active>span:first-child {
  transform: translateY(11px) translateX(0) rotate(45deg);
}

.mobileburger.active>span:nth-of-type(2) {
  opacity: 0;
}

.mobileburger.active>span:last-child {
  transform: translateY(-11px) translateX(0) rotate(-45deg);
}

.mobileburger span {
  background: #999;
  border: none;
  height: 5px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .35s ease;
  cursor: pointer;
}

.mobileburger span:nth-of-type(2) {
  transition: all .2s ease;
  top: 11px
}

.mobileburger span:nth-of-type(3) {
  top: 22px
}

/* /mobile burger */


#sidebar {
  min-width: 250px;
  max-width: 250px;
  min-height: 100vh;
  background: #2980b9;
  color: #fff;
  *padding: 20px 20px;
  *border-left: 5px solid #3498db;
  border-right: 5px solid #3498db;
  display: block;
  position: relative; /* ".sidebar-footer-container ul li" width fix (client legal user) */
}

.sidebar-header {
  margin: 0 20px;
  padding: 20px 0;
  font-size: 28px;
  font-weight: 600;
  color: #ecf0f1;
  *border-bottom: 1px solid #3498db;
}

.sidebar-header img {
  max-width: 100%;
}

.sidebar-footer {
  padding: 10px 0 20px;
  margin: 0 20px;
  color: #ecf0f1;
}


.sidebar-footer label {
  margin-bottom: 0;
}

.sidebar-footer-container {
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
}

.sidebar-footer-container ul {
  margin-bottom: 0;
}

.sidebar-footer-container .sidebar-footer {
  padding-top: 0;
  line-height: 37px;
}

.sidebar-menu {
  padding-top: 15px;
  font-size: 18px;
  line-height: 54px;
}


#sidebar li {
  position: relative;
  *border-top: 1px solid #2879ae;
  -webkit-box-shadow: inset 0px 3px 3px -3px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: inset 0px 3px 3px -3px rgba(0, 0, 0, 0.75);
  box-shadow: inset 0px 3px 3px -3px rgba(0, 0, 0, 0.75);
}

#sidebar li.active a {}


#sidebar li a {
  padding-left: 58px;
  display: flex;
  flex: 1 1 100%;
}

#sidebar li a:hover {
  background: #3498db;
  transition: .3s;
}

#sidebar li ul {
  margin-bottom: 4px;
}

#sidebar li ul li {
  *padding-left: 40px;
  line-height: 42px;
  *margin-left: -60px;
  *margin-right: -20px;
  background: #2879ae;
  border-bottom: 1px solid #236e9f;
}

#sidebar li ul li:last-child {
  border-bottom: none;
}

#sidebar svg {
  position: absolute;
  left: 20px;
  top: 15px;
}

#sidebar a:hover {
  color: yellow;
}

#sidebar li.active a {
  background: #278bce;
  *color: #ffffb0;
  font-weight: 600;
  color: yellow;
}

#sidebar li.active a:hover {
  background: #3498db;
  color: yellow;
}


#sidebar li.red {
  background: #e03a3a;
  *background: #ea1515;
  *border-left: 5px solid #ea1515;
}

#sidebar li.green {
  background: #35c384;
  *background: #35c384;
  *border-left: 5px solid #35c384;
}

#sidebar li.red a:hover {
  background: #ea1515;
}

#sidebar li.red svg {
  *left: 15px;
}

#sidebar.active {
  margin-left: -250px;
}


.dropdown-toggle::after {
  *display: block;
  *position: absolute;
  *top: 27px;
  *right: 0;
  *transform: translateY(-50%);
  margin-bottom: -2px;
  margin-left: 8px;
}


#content {
  width: 100%;
  padding: 0px 30px 30px 30px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  *flex-wrap: wrap;
  align-items: center;
  padding-top:20px;
  padding-bottom:20px;
  border-bottom: 1px solid #dee2e6;
  margin-bottom:20px;
}

.top-bar h1 {
  margin-bottom: 0;
  font-size: 36px;
}

.tippy {
  cursor: pointer;
}

.maintenanceCheckText:after {
  content: 'Отметить о проведении ТО';
}

.underline {
  text-decoration: underline;
}

.cell-red {
  background-color: #e52e2e;
}

.modal.fade .modal-dialog.modal-dialog-zoom {
  -webkit-transform: translate(0, 0)scale(.5);
  transform: translate(0, 0)scale(.5);
}

.modal.show .modal-dialog.modal-dialog-zoom {
  -webkit-transform: translate(0, 0)scale(1);
  transform: translate(0, 0)scale(1);
}


.table-hover tbody tr:hover {
  color: #000;
  background-color: rgba(52, 175, 255, .05);
}

.color-plate {
  display: inline-block;
  padding: .4em 2em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

button svg {
  vertical-align: bottom;
}

/*
.btn-outline-secondary:hover {
    color: #fff;
    background-color: #47a6e4;
    border-color: #498ebd;
}
*/

.btn-outline-secondary:hover {
  color: #275e6f;
  background-color: #e6f5ff;
  border-color: #90a6b5;
}

.btn-outline-secondary {
  border-color: #a7b3bd;
}

.dropdown-item:focus,
.dropdown-item:hover {
  background-color: #e6f5ff;
}




.btn-primary {
  color: #fff;
  background-color: #2980b9;
  border-color: #2980b9;
}

.btn-primary:hover {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-outline-primary {
  color: #2980b9;
  border-color: #2980b9;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #3498db;
  border-color: #3498db;
}

.btn:focus,
.btn:active {
  outline: none !important;
  box-shadow: none;
}

/*
table tr:first-child th,
table tr:first-child td {
  border-top: none;
}
*/


.close-m {
  position: absolute;
  right: 15px;
  top: 20px;
  width: 24px;
  height: 24px;
  opacity: 0.3;
}
.close-m:hover {
  opacity: 1;
}
.close-m:before, .close-m:after {
  position: absolute;
  left: 10px;
  content: ' ';
  height: 24px;
  width: 2px;
  background-color: #fff;
}
.close-m:before {
  transform: rotate(45deg);
}
.close-m:after {
  transform: rotate(-45deg);
}

  #mobile-menu-close {
    display: none;
  }




@media (max-width: 768px) {

.page-link {
    padding: 0.25rem .5rem;
}

  .table td, .table th {
    padding: .3rem;
}


  .mobileburger {
    display: flex;
  }

  #mobile-menu-close {
    display: block;
  }

  .sidebar-footer {
    padding: 0 0;
  }

  #sidebar svg {
    top: 12px;
  }

  #sidebar {
    position: absolute;
    *position: fixed;
    *bottom: 0;
    *right: 0;
    left:-270px;
    top: 0;
    z-index: 99;
    max-width: 270px;
    width:270px;
    min-width: auto;
    *display: none;
    will-change: transform;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    -webkit-transition: -webkit-transform ease-in-out .33s;
    transition: -webkit-transform ease-in-out .33s;
    transition: transform ease-in-out .33s;
    transition: transform ease-in-out .33s,-webkit-transform ease-in-out .33s;

  }

  #sidebar.opened {
    *display: block;
    *left:-270px;
    -webkit-transform: translateX(270px);
    -ms-transform: translateX(270px);
    transform: translateX(270px);
    -webkit-transform: translate3d(270px,0,0);
    transform: translate3d(270px,0,0);
    box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.3);
  }

  .sidebar-menu {
    line-height: 48px;
  }

  .sidebar-header {
    padding: 10px 0 0 0;
  }

  .sidebar-header img {
    max-width: 50%;
  }

  .sidebar-footer label {
    display: none;
  }

  #sidebar.active {
    margin-left: 0;
  }

  .pay-warning {
    margin-top: 20px;
  }
}


@media (max-width: 547px) {




#content {
  padding: 0px 15px;
}

.top-bar {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: none;
    margin-bottom: 5px;
}

.top-bar h1 {
  font-size: 30px;
  font-weight: 600;
}


  .table-flip table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size:14px;}

  .table-flip caption {white-space: nowrap;}

  .table-flip th,
  .table-flip td { margin: 0; vertical-align: top; min-height:38px; }
  .table-flip th { text-align: left; min-height:38px; }

  .table-flip table { display: block; position: relative; width: 100%; }
  .table-flip thead { display: block; float: left; }
  .table-flip tbody { display: block; width: auto; position: relative; overflow-x: auto; white-space: nowrap; }
  .table-flip thead tr { display: block; }
  .table-flip th { display: block; text-align: right; }
  .table-flip tbody tr { display: inline-block; vertical-align: top; }
  .table-flip td { display: block; text-align: left; }

  .table-flip thead th { border-right:1px solid #eee;border-top:0;border-bottom: 1px solid transparent; border-left: 0;}
  .table-flip td { border-left: 0; border-right: 0; border-bottom: 0; }
  .table-flip tbody tr { border-left: 1px solid #babcbf; padding-left: 15px; padding-right: 15px; }
  .table-flip td:first-child { border-top: 0; }
  .table-flip td:last-child { border-bottom: 0; }
  .table-flip .progress {height:19px; margin-top: 4px;}
}

.payment-success {
  color: green;
}

.payment-error {
  color: red
}

@keyframes fade-blink-white {
  0% {
    color: #1A5681
  }
  50% {
    color: white
  }
  100% {
    color: #1A5681
  }
}

@-webkit-keyframes fade-blink-white {
  0% {
    color: #1A5681
  }
  50% {
    color: white
  }
  100% {
    color: #1A5681
  }
}

.fade-blink-white {
  text-align: center;
  -moz-transition: all 0.7s ease-in-out;
  -webkit-transition: all 0.7s ease-in-out;
  -o-transition: all 0.7s ease-in-out;
  -ms-transition: all 0.7s ease-in-out;
  transition: all 0.7s ease-in-out;
  -moz-animation: fade-blink-white normal 1.7s infinite ease-in-out;
  /* Firefox */
  -webkit-animation: fade-blink-white normal 1.7s infinite ease-in-out;
  /* Webkit */
  -ms-animation: fade-blink-white normal 1.7s infinite ease-in-out;
  /* IE */
  animation: fade-blink-white normal 1.7s infinite ease-in-out;
  /* Opera */
}

@keyframes fade-blink-green {
  0% {
    background: #2980b9
  }
  50% {
    background-color: #35c384
  }
  100% {
    background: #2980b9
  }
}

@-webkit-keyframes fade-blink-green {
  0% {
    background-color: #2980b9
  }
  50% {
    background-color: rgba(53, 195, 132, 0.47)
  }
  100% {
    background-color: #2980b9
  }
}

.fade-blink-green {
   text-align: center;
   -moz-transition: all 0.7s ease-in-out;
   -webkit-transition: all 0.7s ease-in-out;
   -o-transition: all 0.7s ease-in-out;
   -ms-transition: all 0.7s ease-in-out;
   transition: all 0.7s ease-in-out;
   -moz-animation: fade-blink-green normal 1.7s infinite ease-in-out;
   /* Firefox */
   -webkit-animation: fade-blink-green normal 1.7s infinite ease-in-out;
   /* Webkit */
   -ms-animation: fade-blink-green normal 1.7s infinite ease-in-out;
   /* IE */
   animation: fade-blink-green normal 1.7s infinite ease-in-out;
   /* Opera */
 }

.green-status {
  color: green;
}

.red-status {
  color: red
}

.clear-table-style, .clear-table-style > td, .clear-table-style > th,
.clear-table-style:hover, .clear-table-style > td:hover, .clear-table-style > th:hover
{
  border-bottom: none;
  border-left: none;
  border-right: none;
  background-color: unset !important;
}

.pay-warning {
  position: relative;
  height: 103px;
  display: flex;
  justify-content: center;
  padding: unset;
}

.pay-warning svg {
  top: unset !important;
  left: unset !important;
}

.form-control.small {
  width: 150px !important;
}

.w-fit {
  width: fit-content;
}

.no-pointer-events {
  pointer-events: none;
}

.text-gray-400 {
  color: #d1d3e2 !important;
}

.text-gray-500 {
  color: #b7b9cc !important;
}

.cursor-pointer {
  cursor: pointer;
}

.modal .news-text {
  max-height: 200px;
  color: #0076AC;
  font-weight: 700;
  font-size: large;
}

@media (max-width: 768px) {
  .modal.modal-m-fullscreen,
  .modal.modal-m-fullscreen .modal-dialog,
  .modal.modal-m-fullscreen .modal-content {
    max-width: unset;
    width: 100%;
    height: 100%;
    margin: unset;
    padding: unset !important;
    border-radius: unset;
  }

  .modal.modal-m-fullscreen.notification .modal-header {
    height: 20%;
    max-height: 110px;
  }

  .modal.modal-m-fullscreen.notification .modal-body {
    height: 70%;
  }

  .modal.modal-m-fullscreen.notification .modal-footer {
    height: 10%;
  }

  .modal.notification .modal-body-wrap {
    height: 100%;
  }

  .modal.notification .news-notification-container {
    max-height: calc(100% - 2px - 2px);
  }

  .modal.notification .news-text-container {
    flex-grow: 1;
    max-height: calc(100% - 2px - 2px);
    overflow-y: auto;
  }

  .modal.notification .news-text {
    max-height: unset;
    height: 100%;
  }
}

.align-center {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.notification-logo {
  background-repeat: no-repeat;
  background: url(/admin/img/vensta.png);
  width: 71px;
  height: 64px;
  background-size: 318px;
}

.fix-action-buttons-image-pos {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.fix-action-buttons-image-pos a:has(i) {
  margin-top: 2px;
  margin-left: -2px;
  margin-right: 5px;
}

.fix-action-buttons-image-pos a:has(img) {
  margin-right: 5px;
}

.notification {
}

.notification hr {
  color: #0076AC;
  border: 1px solid #0076AC;
  margin: 0;
}

.notification.red hr {
  color: #ea1515;
  border: 1px solid #ea1515;
}

.notification.red .news-text {
  color: #ea1515;
}

.notification.red .btn-primary {
  color: #fff;
  background-color: #ea1515;
  border-color: #e03a3a;
}

.notification.red .btn-primary:hover {
  background-color: #ef3939;
  border-color: #ea1515;
}
