body {
  background: #eee;
  font-size: 0.85rem;
}
.navbar-brand {
  position: relative;
}
.navbar-brand span {
  display: block;
  position: absolute;
  bottom: 2px;
  right: 18px;
  font-size: 12px;
  font-weight: 400;
  color: white;
}
nav.navbar-shrink .navbar-brand span {
  color: #1584A5;
}

/* The sidebar menu */
.sidebar {
  height: 100%; /* 100% Full-height */
  width: 47px; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0;
  left: 0;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,.2);
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 0px; /* Place content 60px from the top */
  transition: 0.3s; /* 0.5 second transition effect to slide in the sidebar */
}
#main {
  margin-left: 47px;
}
.sidebar-open .sidebar {
  width: 210px;
}
.sidebar-open #main {
  margin-left: 210px;
}
.sidebar .toggle-button {
  position: relative;
}
.sidebar-open .sidebar .toggle-button {
  color: transparent;
}
.sidebar-open .sidebar .toggle-button::after {
  position: absolute;
  left: 15px;
  top: -3px;
  content: "\00d7";
  font-size: 28px;
  color: #1E00FF;
}

/* The sidebar links */
.sidebar ul {
  margin: 0;
  padding: 0 5px 0 21px;
}
.sidebar ul li {
  margin: 0 0 0 25px;
  padding: 0;
}
.sidebar ul {
  display: none;
}
.sidebar-open .sidebar ul {
  display: block;
}
.sidebar a {
  text-decoration: none;
  font-size: 13px;
  color: #1E00FF;
  display: block;
  transition: 0.3s;
  white-space: nowrap;
}
.sidebar-open li a {
  white-space: unset;
  width: 155px;
}
.sidebar a i {
  margin-right: 14px;
  min-width: 22px;
}
.sidebar > a {
  padding: 5px 5px 5px 15px;
  font-size: 18px;
}
.sidebar li a {
  padding: 0 2px;
  border-radius: 3px;
}
/* When you mouse over the navigation links, change their color */
.sidebar a:hover {
  color: #4F37FF;
  background-color: #D6CEFF;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .3s; /* If you want a transition effect */
  padding: 10px;
}
h2 {
  margin-top: 25px;
  margin-bottom: 15px;
}
.frame {
  background: white;
  box-shadow: 0 2px 10px #ddd;
  padding: 10px;
  border-radius: 6px;
}
.frame p {
  margin: 0;
}
.frame-big {
  padding: 25px;
}
h5 {
  font-weight: bold;
}
p, li {
  font-size: 16px;
  margin-bottom: 0;
}
.chart-big {
  height: 300px;
}
.chart-bigger {
  height: 400px;
}
.chart-huge {
  height: 500px;
}
.table-compact {
  width: auto;
  margin: auto;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-shadow: 0 0 2px white;
}
.table-compact td {
  padding: 1px;
  width: auto;
  min-width: 5vw;
}
.table-compact tbody {
  line-height: 100%;
}
.table-compact tbody th {
  padding: 0 10px;
  font-weight: normal;
}
.gradient {
  height: 15px;
  position: relative;
}
.gradient * {
  position: absolute;
  line-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.gradient-bar {
  left: 45px;
  right: 45px;
  top: 0;
  bottom: 0;
}
.gradient-left {
  left: 0;
  width: 40px;
  text-align: right;
}
.gradient-right {
  right: 0;
  width: 40px;
  text-align: left;
}
.tooltip {
  opacity: 1.0;
}
.tooltip-inner {
  -background: white;
  -border: 1px solid silver;
  -border-radius: 2px;
  -opacity: 1.0;
  -color: black;
  -font-family: Arial, Helvetica, sans-serif;
}
/* .tooltip.bs-tooltip-top .arrow:before {
  border-top-color: silver !important;
} */
.image-tooltip.show {
  -width: 450px !important;
  opacity: 1.0;
}
.image-tooltip .tooltip-inner {
  max-width: 450px;
  padding: 3px;
}
.image-tooltip img {
  border-radius: 4px;
  width: 400px;
  height: 400px;
  background-color: white;
}
.btn-normal {
  text-transform: none;
  font-weight: normal;
  padding: 4px 12px;
  letter-spacing: 0;
}
.wait-bar {
  background: #f4f4f4;
  border-radius: 6px;
  height: 20px;
  margin-top: 8px;
  margin-right: 12px;
  display: inline-block;
}
.wait-bar-lg {
  height: 30px;
}
.wait-bar-sm {
  height: 12px;
}
tr[data-id] {
  cursor: pointer;
}

.card-primary {
  background: linear-gradient(to bottom, #e8e8ff, #f8f0ff);
}
.card-secondary {
  background: linear-gradient(to bottom, #e8ffe8, #f8fff0);
}
.card .table * {
  background-color: transparent;
}

.ellipsis {
  position: relative;
}
.ellipsis:before {
  content: '&nbsp;';
  visibility: hidden;
}
.ellipsis span {
  position: absolute;
  left: 4px;
  right: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-photo {
  border-radius: 6px;
  box-shadow: 0 2px 4px silver;
  width: 60px;
  height: 60px;
}
.item-photo:hover, .item-photo.dz-drag-hover {
  outline: 3px dotted #8ac;
  outline-offset: 2px;
}
.item-name { width: 15%; }
.item-unit-price { min-width: 7rem; width: 10rem; }
.item-count { min-width: 6rem; width: 9rem; }
.item-offer-price { min-width: 6.5rem; width: 9rem; }
.item-price { min-width: 5rem; width: 8rem; }
.item-discount { min-width: 6.5rem; width: 9rem; }
.item-final-price { min-width: 5rem; width: 8rem; }
.item-status { min-width: 8rem; }
.item-char { width: .6rem; padding: 0 !important; text-align: center; }

.form-select.compact, .compact > .form-select {
  padding: .2rem .35rem .2rem .25rem;
  background-position: right 0.15rem center;
  background-blend-mode: exclusion;
}
.form-control.compact, .compact > .form-control {
  padding: .2rem .35rem;
}
.input-group-text.compact, .compact > .input-group-text {
  padding: .2rem .35rem;
}
.compact, .compact > .form-control, .compact > .form-select, .compact > .input-group-text {
  font-size: .85rem;
}
.no-border { border-style: none; }

.bg-unit-price { background-color: hsl(120, 100%, 95%) !important; }
.bg-unit-price .input-group * { border-color: hsl(120, 50%, 80%); }
.bg-count { background-color: hsl(160, 100%, 95%) !important; }
.bg-count .input-group * { border-color: hsl(160, 50%, 80%); }
.bg-offer-price { background-color: hsl(190, 100%, 95%) !important; }
.bg-offer-price .input-group * { border-color: hsl(190, 50%, 80%); }
.x-bg-price { background-color: hsl(220, 100%, 95%) !important; }
.bg-discount { background-color: hsl(230, 100%, 95%) !important; }
.bg-discount .input-group * { border-color: hsl(230, 50%, 80%); }
.x-bg-final-price { background-color: hsl(280, 100%, 95%) !important; }

.text-big { font-size: 150%; }
.required { box-shadow: inset 0 0 3px orangered; }

input:disabled, select:disabled, span.disabled {
  border: none;
  background: transparent !important;
}
.input-group input:disabled {
  text-align: right !important;
}
span.disabled {
  padding-left: .0rem;
}

.chat-background {
  background-color: #eee;
}
.chat-row {
  display: flex;
  align-items: center;
  margin: .8rem .3rem;
}
.chat-reverse {
  flex-direction: row-reverse;
}
.chat-icon {
  margin: 0 .8rem 0 0;
  font-size: 120%;
  color: #7ad;
}
.chat-reverse .chat-icon {
  margin: 0 0 0 .8rem;
  color: #444;
}
.chat-msg {
  border: 1px solid #ace;
  border-radius: .3rem;
  box-shadow: 0 3px 6px #ddd;
  padding: .3rem .8rem;
  background-color: #e8f4ff;
  max-width: 70%;
  color: rgba(0, 0, 0, .8);
}
.chat-reverse .chat-msg {
  border-color: #ccc;
  background-color: white;
}
.chat-msg-foot {
  text-align: right;
  font-size: 80%;
  color: rgba(0,0,0,.6);
  margin-top: .2rem;
}
.cancelled * {
  color: silver !important;
  background-color: white !important;
  border-color: silver !important;
  box-shadow: none !important;
}
.cancelled img {
  opacity: 0.3;
}