/* 
  1. global css all project
  2. login
  3. product
  4. pos-receipt
  5. printer label
*/

/* 1. global css all project  */
.td-word-break {
  word-wrap: break-word;
  white-space: normal;
}

.react-datepicker-wrapper {
  width: 100%;
}

#sidebar {
  margin-bottom: -5000px !important;
  padding-bottom: 5000px;
}

.content-wrapper {
  padding: 50px 30px;
}

.avatar {
  vertical-align: middle;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.loader {
  position: relative;
  width: 100%;
  height: 100vh;
}

.loader:before {
  content: "";
  display: block;
  padding-top: 100%;
}

.circular {
  animation: rotate 2s linear infinite;
  height: 100px;
  transform-origin: center center;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
  stroke-linecap: round;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}

@keyframes color {

  100%,
  0% {
    stroke: #343a40;
  }

  40% {
    stroke: #343a40;
  }

  66% {
    stroke: #343a40;
  }

  80%,
  90% {
    stroke: #343a40;
  }
}

.showbox {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  background: #00000059;
}

/* end 1 */

/* 2. login */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* end 2 */

/* 3. product */
.preview {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 250px;
  cursor: pointer;
}

.preview-container {
  padding: 30px 0;
  border: 1px solid black;
  border-radius: 10px;
}

/* end 3 */

.menu {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cccccc;
  z-index: 999;
  background: white;
}

.item {
  padding: 2px 6px;
  cursor: default;
}

.item-highlighted {
  color: white;
  background-color: #007bff;
}

.item-header {
  background-color: #eeeeee;
  color: #454545;
  font-weight: bold;
}

/* 4. pos-receipt */
.pos-container {
  width: 255px;
  max-width: 260px;
  box-shadow: 0 0 1in -0.25in rgba(0, 0, 0, 0.5);
  background-color: #fff;
  padding: 10px;
}

.title {
  font-size: 20px;
  text-align: center;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 10px 0;
}

.sub-title {
  font-size: 15px;
}

.table-receipt {
  margin-top: 20px;
  border-collapse: collapse;
  border-bottom: px solid red;
}

.table-receipt td {
  font-size: 15px;
}

.table-title {
  font-size: 16px;
  background: #eee;
}

.name-title-column {
  font-weight: bold;
  width: 120px;
}

.position-title-column {
  font-weight: bold;
  width: 100px;
}

.name-deal-title-column {
  font-weight: bold;
  width: 30%;
}

.quantity-title-column {
  font-weight: bold;
  width: 10%;
}

.price-title-column {
  font-weight: bold;
  width: 30%;
}

.all-price-title-column {
  font-weight: bold;
  width: 30%;
}

.total-title-column {
  font-weight: bold;
  width: 40px;
}

.order {
  border-bottom: 1px solid #eee;
}

.border-under-table {
  margin-top: 12px;
  border-bottom: 1px solid black;
}

/* end pos-receipt */

/* 5. printer label */
.barcode-label img {
  width: 100%;
  max-height: 100px;
}

.close-barcode {
  position: absolute;
  right: 0px;
  top: -10px;
  width: 28px;
  height: 28px;
  opacity: 0.8;
  background: transparent;
  border: transparent;
}

.close-barcode:hover {
  cursor: pointer;
  opacity: 1;
}

.close-barcode:before,
.close-barcode:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 20px;
  width: 2px;
  background-color: red;
}

.close-barcode:before {
  transform: rotate(45deg);
}

.close-barcode:after {
  transform: rotate(-45deg);
}

.barcode-label-container {
  position: relative;
  page-break-before: always;
}

.barcode-label-container .barcode-text {
  position: absolute;
  left: 90px;
  bottom: -12px;
  font-size: 14px;
}

.barcode-label-container .date-text {
  position: absolute;
  left: 160px;
  bottom: 75px;
  font-size: 12px;
}

.barcode-label-container img {
  width: 100vw;
  height: 70vh;
  max-width: 210px; 
  max-height: 78px;
  margin-left: 0.8cm;
}

.detail-barcode-print {
  width: 4cm;
  font-size: 0.29cm;
  word-wrap: break-word;
}

.block-with-text {
  overflow: hidden;
  position: relative;
  line-height: 1.2em;
  max-height: 2.4em;
  text-align: justify;
  margin-right: -1em;
  padding-right: 1em;
}

.block-with-text+.block-with-text {
  margin-top: 10px;
}

.block-with-text:before {
  content: '...';
  position: absolute;
  right: 0;
  bottom: 0;
}

.block-with-text:after {
  content: '';
  position: absolute;
  right: 0;
  width: 1em;
  height: 1em;
  margin-top: 0.2em;
  background: white;
}

/*  */

.form-group.required label:after {
  content: "*";
  color: red;
}

.react-slick * {
  min-height: 0;
  min-width: 0;
}

.react-slick .slick-prev,
.react-slick .slick-next {
  background-color: rgb(187, 184, 184);
  border-radius: 10px;
}

.react-slick .fluid__instructions {
  margin-top: 30px;
}

@media (min-width: 480px) {
  .react-slick .fluid__image-container {
    margin: 40px;
  }

  .react-slick .fluid__instructions {
    margin: 0 20px;
    padding-top: 20px;
  }
}

.fluid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  font-family: Arial;
  line-height: 1.3;
  font-size: 16px;
}

.fluid__instructions {
  flex: 0 0 auto;
  margin: 0 20px;
}

.fixed__instructions {
  flex: 1;
  margin: 0 20px;
}

@media (min-width: 480px) {
  .fluid {
    flex-direction: row;
  }

  .fluid__image-container {
    flex: 0 0 30%;
    margin: 20px 0 20px 20px;
  }

  .fluid__instructions {
    flex: 0 0 50%;
    padding-top: 30px;
  }

  .fixed__instructions {
    padding-top: 30px;
    margin: 0 10px;
  }

  .portal {
    position: absolute;
    top: 40px;
    left: -30px;
  }
}

.barcode-print-container {
  position: relative;
}

.total-text-title {
  font-weight: bolder;
  font-size: 25px;
}

.modal-lg {
  max-width: 90% !important;
}

.border-red-sm {
  border: 1px solid red;
}

.border-red {
  border: 4px solid red;
}

.border-yellow {
  border: 4px solid yellow;
}

.border-green {
  border: 4px solid greenyellow;
}

.border-container {
  height: fit-content;
}