@keyframes circular_loader1 {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-90deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes circular_loader2 {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.preloader {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.circular-container {
  width: 10%;
  margin: 0 auto;
}

.circle {
  border: 5px solid transparent;
  border-radius: 50%;
}

.circular-loader1 {
  width: 100px;
  height: 100px;
  display: table;
  padding: 10px;
  border-top: 5px solid #006495;
  border-bottom: 5px solid #006495;
  animation: circular_loader1 linear 2s infinite;
}

.circular-loader2 {
  width: 10px;
  height: 10px;
  display: table-cell;
  border-right: 5px solid #3498db;
  border-left: 5px solid #3498db;
  animation: circular_loader2 linear 2s infinite;
}

.active_content {
  display: none;
}

.active_content.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9999;
}

.stacktable {
  width: 100%;
}

.st-head-row {
  padding-top: 1em;
}

.st-head-row.st-head-row-main {
  font-size: 1.5em;
  padding-top: 0;
}

.st-key {
  width: 49%;
  text-align: right;
  padding-right: 1%;
}

.st-val {
  width: 49%;
  padding-left: 1%;
}

.stacktable.large-only {
  display: table;
}

.stacktable.small-only {
  display: none;
}

@media (max-width: 800px) {
  .stacktable.large-only {
    display: none;
  }

  .stacktable.small-only {
    display: table;
  }
}

@media (max-width: 768px) {
  #app .order-status-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    border: 0;
  }

  #app .order-status-tabs>li,
  #app .order-status-tabs>li.active {
    float: none !important;
    min-width: 0;
    margin: 0;
    border: 0;
  }

  #app .order-status-tabs>li>a,
  #app .order-status-tabs>li.active>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #355c71;
    font-size: 13px;
    line-height: 1.2;
  }

  #app .order-status-tabs>li.active>a {
    border-color: #198754;
    background: #ecfdf3;
    color: #146c43;
  }

  #app .order-status-tabs .badge {
    flex: 0 0 auto;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .modal-product-history .modal-dialog {
    width: auto !important;
    max-width: none;
    margin: 8px;
  }

  .modal-product-history .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 16px);
  }

  .modal-product-history .modal-header,
  .modal-product-history .modal-footer {
    flex: 0 0 auto;
    padding: 10px 12px;
  }

  .modal-product-history .modal-title {
    padding-right: 28px;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .modal-product-history .modal-body {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px;
  }

  .modal-product-history .table {
    margin: 0;
    border: 0;
  }

  .modal-product-history .table thead {
    display: none;
  }

  .modal-product-history .table,
  .modal-product-history .table tbody,
  .modal-product-history .table tr,
  .modal-product-history .table td {
    display: block;
    width: 100%;
  }

  .modal-product-history .table tr {
    margin: 0 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
  }

  .modal-product-history .table td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    gap: 8px;
    padding: 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .modal-product-history .table td:last-child {
    border-bottom: 0 !important;
  }

  .modal-product-history .table td::before {
    color: #64748b;
    font-weight: 700;
  }

  .modal-product-history .table td:nth-child(1)::before {
    content: 'Дата';
  }

  .modal-product-history .table td:nth-child(2)::before {
    content: 'Сотрудник';
  }

  .modal-product-history .table td:nth-child(3)::before {
    content: 'Комментарий';
  }

  .modal-product-history .table td[colspan] {
    display: block;
    text-align: center;
  }

  .modal-product-history .table td[colspan]::before {
    content: none;
  }
}

.d-flex {
  display: flex !important;
}
.flex-column {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.flex-grow {
  flex-grow: 1 !important;
}
.flex-between {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.justify-content-between {
  justify-content: space-between !important;
}
.justify-content-around {
  justify-content: space-around !important;
}
.justify-content-start {
  justify-content: flex-start !important;
}
.justify-content-end {
  justify-content: flex-end !important;
}
.justify-content-center {
  justify-content: center !important;
}
.align-self-end {
  align-self: flex-end !important;
}
.align-self-center {
  align-self: center !important;
}
.align-self-start {
  align-self: flex-start !important;
}
.align-items-center {
  align-items: center !important;
}
.align-items-start {
  align-items: flex-start !important;
}
.align-items-end {
  align-items: flex-start !important;
}
.align-items-baseline {
  align-items: baseline !important;
}
.flex-centered {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.flex-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
}
.flex-no-wrap {
  display: flex !important;
  flex-wrap: nowrap !important;
}
.space-right {
  margin-right: 10px !important;
}
.space-left {
  margin-left: 10px !important;
}
.space-top {
  margin-top: 10px !important;
}
.space-bottom {
  margin-bottom: 10px !important;
}
.pad {
  padding: 10px !important;
}
.pad-small {
  padding: 5px !important;
}
.gap   { gap: 5px  !important; }
.gap-2 { gap: 10px !important; }
.gap-3 { gap: 15px !important; }
.gap-4 { gap: 20px !important; }
.gap-5 { gap: 25px !important; }
.gap-6 { gap: 30px !important; }
.gap-7 { gap: 35px !important; }

.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.w-25 { width: 25% !important; }
.h-100 { height: 100% !important; }
.h-75 { height: 75% !important; }
.max-h-70vh { max-height: 70vh !important; }
.h-50 { height: 50% !important; }
.h-25 { height: 25% !important; }

.ellipsis {
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  overflow: hidden
}

.overflow-auto {
  overflow: auto !important;
}
.pretty-scrollbar {
  overflow: auto;
  scroll-behavior: smooth;
}
.pretty-scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.pretty-scrollbar::-webkit-scrollbar-track {
  background-color: transparent;
}
.pretty-scrollbar::-webkit-scrollbar-thumb {
  background-color: #d6dee1;
  border-radius: 20px;
  border: 1px solid transparent;
  background-clip: content-box;
}
.pretty-scrollbar::-webkit-scrollbar-thumb:hover {
  background-color: #a8bbbf;
}

.pointer {
  cursor: pointer !important;
}
.position-relative {
  position: relative !important;
}
.position-absolute {
  position: absolute !important;
}


.table-bordered {
  border: 1px solid #f4f4f4
}

.table-bordered>thead>tr>th,
.table-bordered>tbody>tr>th,
.table-bordered>tfoot>tr>th,
.table-bordered>thead>tr>td,
.table-bordered>tbody>tr>td,
.table-bordered>tfoot>tr>td {
  border: 1px solid #f4f4f4
}

.table-bordered>thead>tr>th,
.table-bordered>thead>tr>td {
  border-bottom-width: 2px
}
