body,
.btn,
.form-control {
    font-size: 0.9rem;
}

.sidebar .sidebar-brand {
    padding: 8px !important;
}

.not-set {
    color: #c55;
    font-style: italic;
}

a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\f15d";
}

a.desc:after {
    content: "\f881";
}

.sort-numerical a.asc:after {
    content: "\f162";
}

.sort-numerical a.desc:after {
    content: "\f886";
}

.sort-ordinal a.asc:after {
    content: "\f884";
}

.sort-ordinal a.desc:after {
    content: "\f160";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

form div.has-star label:after {
  content:" * ";
  color:red;
}

.hide {
    display: none !important;
}

.grid-container .kv-expand-header-cell,
.grid-container .kv-expand-icon-cell {
    font-size:inherit;
}

.operation a {
    color: grey;
}

div .selected {
    background-color: #b8b6b6;
}

/* KARTIK WIDGETS */

.sortable {
    border: none !important;
}

.sortable li {
    padding: 2px !important;
}

.kv-panel-before a {
    margin: 2px;
}

.kv-panel-after .summary {
    padding: 5px;
}

.kv-panel-after .pagination {
    margin-bottom: 0px;
}

.line-through {
    text-decoration: line-through;
}

/* Animation */

@-webkit-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @-moz-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @-o-keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes spinner {
    0% {
      -webkit-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -ms-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

/* Absolute Center Spinner */
.loading {
  position: fixed;
  z-index: 999;
  height: 2em;
  width: 2em;
  overflow: visible;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Transparent Overlay */
.loading:before {
  content: '';
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
}

/* :not(:required) hides these rules from IE9 and below */
.loading:not(:required) {
  /* hide "loading..." text */
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.loading:not(:required):after {
  content: '';
  display: block;
  font-size: 10px;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  -webkit-animation: spinner 1500ms infinite linear;
  -moz-animation: spinner 1500ms infinite linear;
  -ms-animation: spinner 1500ms infinite linear;
  -o-animation: spinner 1500ms infinite linear;
  animation: spinner 1500ms infinite linear;
  border-radius: 0.5em;
  -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
  box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

.flashing {
    animation: blinker 1s linear infinite;
}

.d-flex {
    display: flex;
}

.gap-5 {
    gap: 5px;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}

.gap-40 {
    gap: 40px;
}

.gap-60 {
    gap: 60px;
}

.gap-80 {
    gap: 80px;
}

.gap-100 {
    gap: 100px;
}

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

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

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-start>div {
    margin: 0.4rem;
}

.v-align-middle {
    vertical-align: middle;
}

.grey {
    color: grey;
}

.grey a {
    color: grey;
}

.sidebar {
    overflow: auto;
}

.color-selected {
    border: 1px solid grey;
}

.btn-default {
    border: 1px solid grey;
    border-radius: 0.35rem;
}

form .d-flex>div,
form .d-flex>a,
form .d-flex>button{
    margin: 0.3rem;
}

.row-storno {
    text-decoration: line-through;
    background-color: #ffe6e4 !important;
}

.row-red {
    background-color: #ffe6e4 !important;
}

.mobile .breadcrumb {
    background-color: #eaecf4;
    border-radius: 0;
}
.nav-link {
    display: flex;
    align-items: center;
}

.nav-link span {
    margin-left: 5px;
}

/* On screens that are 600px or less, set the background color to olive */
@media screen and (max-width: 600px) {
    .kv-panel-before a {
        margin: 0;
        font-size: 0.9em;
    }

    .current-sale-placeholder {
        position: absolute;
        top:5px;
        left:5px;
        color: #6D737D;
        opacity: 0.4;
        font-size: 0.9rem;
    }
}

.empty {
    font-size: 0.875em;
}

.asset-select-list .asset-item svg {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    max-width: 100%;
    max-height: 100%;
    min-width: 100%;
    min-height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.border-left-blue {
    border-left: 0.25rem solid #4b86de !important;
}

.border-left-gray {
    border-left: 0.25rem solid #737980 !important;
}

a[data-opened-payment] .account-name {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #4fc2f5 100%) !important;
}

.bg-grey {
    background-color: #f2f2f2;
    margin: -10px;
    padding: 10px;
}

#myTabContent .tab-pane {
   overflow-x: hidden !important;
}

#container-header-pjax {
    margin-bottom: 15px;
}

.text-line-through {
    text-decoration: line-through;
}

/* Fix Select2 bugs */

.select2-container .select2-search--inline {
    float: left;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: inline-block;
    overflow: hidden;
    padding-left: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* internet checker */
.ic-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}
.ic-alert_2 {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}
.ic-alert .close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.2;
}
.ic-alert .close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.5;
}


.ic-alert.ic-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.ic-alert.ic-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}
.ic-alert.ic-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.col-form-label, label {
    font-weight: bolder;
}

.full-width {
    width: 100%;
}

.nav-mobile, .nav-item-mobile {
    display: none;
}

@media (max-width:768px) {
    .payment-place-block, .store-selector-block {
        display: none;
    }

    .nav-mobile {
        display: block;
    }

    .nav-item-mobile {
        display: block;
    }

    .topbar .nav-item .nav-link {        
        display: flex;
        align-items: center;
        padding: 0 0.4rem;
    }

    .nav-mobile {
        height: 65px;
    }
}