*,
html,
body {
  font-family: 'Lato', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
}
html,
body {
  color: #444;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: 'Lato', sans-serif;
  line-height: 1.1;
  color: inherit;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small,
.h1 small,
.h2 small,
.h3 small,
.h4 small,
.h5 small,
.h6 small {
  color: #e7e9ec;
}

h1 {
  font-size: 22px;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 18px;
}
h4 {
  font-size: 16px;
}
h5 {
  font-size: 13px;
}
h6 {
  font-size: 11px;
}
h1, h2, h3 {
  margin: 20px 0 10px 0;
}
h4, h5, h6 {
  margin: 10px 0;
}
a {
  color: #6a7b5d;
  text-decoration: none;
  -webkit-transition: .25s;
  transition: .25s;
}
a:hover,
a:focus {
  color: #6a7b5d;
}
a:focus {
  outline: none;
}
.gray a {
  color: #ccc!important;
}
small,
.small {
  font-size: 83%;
  line-height: 2.067;
}
.login-card {
  margin-top: 25%;
}
.well{
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
}
.page-header {
  padding-bottom: 9px;
  margin: 40px 0 20px;
  border-bottom: 2px solid #e7e9ec;
}
#wrapper {
  display: flex;
  min-height: 100vh;
}
#page-wrapper {
  flex-grow: 1;
  padding: 15px 30px;
  min-height: 568px;
  margin: 40px 0;
  background-color: white;
  overflow-x: auto;
}
#page-wrapper-full {
  flex-grow: 1;
  padding: 15px 30px;
  min-height: 568px;
  margin: 40px auto;
  background-color: white;
  overflow-x: auto;
}
#sidebar {
  border-right: 1px solid #e7e7e7;
}
.sidebar-nav {
  position: relative;
  height: auto;
  top: 51px; 
  width: 250px;
}
.nav-link {
  color: #333;
  padding: .7rem 1.3rem;
}
.nav-link.main {
  border-bottom: 1px solid #e7e7e7;
}
.nav-link:focus, .nav-link:hover{
  color: #333;
  background-color: #eee;
}
.nav-link.active {
  background-color: #eeeeee;
}
.pl-6 {
  padding-left: 4.5rem;
}
.pl-7 {
  padding-left: 6rem;
}
.unanswered {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f4dbdb;
}
.thumbnail {
  position: relative;
  display: block;
  padding: 3px;
  margin-bottom: 5px;
  line-height: 1.72222;
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  -webkit-transition: border 0.25s ease-in-out;
  transition: border 0.25s ease-in-out;
}
.thumbnail .pic-delete {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  padding: 2px;
}
.thumbnail>img,
.thumbnail a>img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
  border-color: #d06b8f;
}
.thumbnail .caption {
  padding: 3px;
  color: #34495e;
}
.parsley-errors-list {
  padding: 0;
  list-style-type: none;
  font-size: 14px;
  opacity: 0;
  color: #B94A48;
  transition: all .3s ease-in;
  -o-transition: all .3s ease-in;
  -moz-transition: all .3s ease-in;
  -webkit-transition: all .3s ease-in;
}
.parsley-errors-list.filled {
  opacity: 1;
  margin-bottom: 5px; /*test products_yarns-add.php*/
}
.input-large {
  width: 210px!important;
}
textarea[readonly],
input[readonly] {
  cursor: text;
}
textarea {
  resize: both;
}
.thumb-container {
  max-width: 80px;
  min-width: 60px;
  overflow: hidden;
}
.btn-secondary {
  color: #333;
  background-color: #e4e4e4;
  border-color: #d3d5d6;
}
.btn-secondary:hover {
  color: #333;
  background-color: #b0b0b0;
  border-color: #9f9e9e;
}
.btn-secondary.disabled, .btn-secondary:disabled {
  color: #898989;
  background-color: #e4e4e4;
  border-color: #d3d5d6;
}
.btn-light {
  border-color: #212529;
}
.btn-light:hover {
  color: #212529;
  background-color: #dedede;
  border-color: #9f9e9e;
}
.btn[disabled] {
  background-color: #ccc!important;
  border-color: #ccc !important;
}
.btn-fixed {
  position: fixed;
  bottom: 20px;
  left: 300px;
}
.btn-wrapp {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 250px;
  padding: 40px 0;
  background: #f3f3f3;
  border-radius: 5px;
  z-index: 5;
}
.btn-group-xs > .btn, .btn-xs {
  padding: .5rem .8rem;
  font-size: .875rem;
  line-height: .5;
  border-radius: .2rem;
}
/* Text */
.thumb-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.red {
  color: #a94442!important;
}
.blue {
  color: #3366cc!important;
}
.light-blue {
  color: #4392d5;
}
.green {
  color: green;
}
.info {
  background-color: #d1ecf1;
}
#comments {
  list-style: none;
}
/* Pagination */
ul.pagination {
  z-index: 0;
}
ul.pagination a,
ul.pagination a:hover {
  color: #333;
}
ul.pagination>.active>a,
ul.pagination>.active>span,
ul.pagination>ul.active>a:hover,
ul.pagination>.active>span:hover,
ul.pagination>.active>a:focus,
ul.pagination>.active>span:focus {
  background-color: #5cb85c!important;
  border-color: #4cae4c!important;
  color: #ffffff;
}
.page-link:focus{
  box-shadow: none;
}
/* Tables */
.table-scroll{
  max-height: 90vh;
  overflow: auto;
}
table.table-sticky thead th{
  position: sticky;
  top: 0;
  z-index: 5;
  background: #27583d;
  color: #fff;
}
table.table-sticky thead th a{
  color: #fff;
  text-decoration: none;
}
.table-black {
  color: #fff;
  background-color: #333;
  font-weight: 600;
}
.table-green {
  color: #fff;
  background-color: #27583d;
}
.table-black td a {
  color: #fff;
}
.table-hover tbody tr.alert-warning:hover {
  background-color: #f7e5b5;
}
.table-hover tbody tr.alert-success:hover {
  background-color: #bee4c7;
}
.table-hover tbody tr.alert-info:hover {
  background-color: #c4e5eb;
}
.table-hover tbody tr.alert-danger:hover {
  background-color: #f2ced1;
}
.gray {
  background: #f5f5f5;
  color: #ccc;
}
.dark-gray {
  background: #9e9c9cb8;
  color: #ccc;
}
.coming-soon {
  background: #dbdfec;
  color: #333;
}
.gray-text {
  color: #ccc;
}
.white {
  background: #fff;
}
.selected {
  background: #DCEEF4;
}
.country-selected {
  font-weight: 700;
}
.td-250 {
  min-width: 250px;
}
.td-120 {
  min-width: 120px;
}
.td-100{
  min-width: 100px;
}
.td-90 {
  min-width: 90px;
}
.td-70 {
  min-width: 70px;
}
.center {
  text-align: center;
}
.td-small {
  max-width: 500px;
}
.td-xs {
  max-width: 80px;
  overflow: hidden;
}
/* Pattenr overviews */
.patterns-container {
  max-width: 1200px;
}
.link-patterns .pattern {
  display: inline-block;
}
.pattern-names {
  max-width: 1430px;
}
.pattern-overview .pattern {
  text-align: center;
}
.pattern-overview .pattern img {
  max-height: 319px;
  overflow: hidden;
}
.pattern-keyword img {
  max-width: 60px;
}
.pattern .pattern-type {
  position: absolute;
  top: 5px;
  left: 75%;
  width: 16px;
  height: 16px;
}
.img-md {
  max-width: 160px;
}
.caption-top {
  text-align: center;
  width: 100%;
  background-color: #f5f5f5;
}
.caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  padding: 5px 0 10px;
}
.caption-left {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 0 15px;
}
.caption-cont {
  min-height: 120px;
}
.caption-cont3 {
  min-height: 100px;
}
/*sorting*/
.ratio-2-3 {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-bottom: 0.6rem;
  animation: fadeInAnimation 1s ease-in-out;
}
.img-cont {
  position: relative;
  max-width: 100%;
}
.img-cont img.hover {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  object-fit: contain;
  opacity: 0;
  transition: opacity .2s;
}
.img-cont:hover img.hover {
  opacity: 1;
}
/*.sticky {
  position: static;
  display: none;
  transition: opacity 0.3s ease-in-out;
}*/
#site_wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
/* DROPSfans gallery - same as blogs css */
.blog-entry .blog-pic {
  width: 100%;
  height: 180px;
  border-radius: 3px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 10px;
}
.blog-entry .blog-pic img {
  zoom: 2;
  display: block;
  margin: auto;
  height: auto;
  max-height: 100%;
  width: auto;
  max-width: 100%;
}
.blog-entry .caption {
  height: 150px;
  text-align: left;
  margin: 0 0 10px 0;
  padding: 5px 8px;
  background: #fff;
  overflow: hidden;
}
.blog-entry .caption h3 {
  margin-top: 5px;
}
.blog-entry .caption .blog-title {
  margin-top: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.label {
  padding: .2em .6em .3em !important;
  font-size: 100% !important;
}
.label-default {
  background-color: #f5f5f5 !important;
  color: #333;
  margin: 20px 0;
}
.checkbox-inline {
  margin: 4px 0 4px 8px;
  padding: 5px;
  background-color: #fff;
}
/* Manage covers */
.row.home {
  max-width: 1050px;
}
.row.browse-cats .cat {
  position: relative;
  text-align: center;
}
.row.browse-cats .cat .cat_img img {
  max-width: 100%;
}
.row.browse-cats .cat .cat_name {
  background: #fff;
  width: 84%;
  margin-left: 8%;
  margin-right: 8%;
  text-align: center;
  position: absolute;
  line-height: 18px;
  bottom: 10px;
  left: 0;
  z-index: 9;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  padding: 3px 0;
  overflow: hidden;
  opacity: 0.75;
}
.cat-manage {
  text-align: center;
}
.cat-manage select {
  font-size: 12px;
  max-width: 220px!important;
  margin: 5px;
}
.media,
.img-rel {
  position: absolute;
  top: 0;
  background-color: #faf7f4;
}
.ratio-1-1 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #faf7f4;
  overflow: hidden;
}
.ratio-6-7 {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 7;
  background-color: #faf7f4;
  overflow: hidden;
}
.row.browse-cats .cat .cat_name {
  background: #fff;
  width: 84%;
  margin-left: 8%;
  margin-right: 8%;
  text-align: center;
  position: absolute;
  line-height: 18px;
  bottom: 5px;
  left: 0;
  z-index: 99;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  padding: 3px 0;
  overflow: hidden;
  opacity: 0.75;
}
.cat-name {
  padding: 10px 0 5px;
  font-size: 13px;
  text-align: center;
}
.cat .cat-text-container {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  z-index: 10;
  overflow: hidden;
}
.cat-text {
  text-align: center;
  text-align: center;
  letter-spacing: .3px;
  padding: 6px;
  margin: 10px 20%;
  color: #fff;
  font-size: 16px;
  border-radius: 1px;
  line-height: 1;
}
.scrim {
  background: linear-gradient(to top, #66534478 0%, rgb(101 92 78 / 8%) 50%, rgb(104 99 91 / 7%) 65%, rgb(162 162 162 / 6%) 75.5%, rgb(191 191 191 / 0%) 82.85%, rgb(230 230 230 / 1%) 88%, rgba(0, 0, 0, 0) 100%);
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9;
  overflow: hidden;
  border: 5px solid #fff;
}
.pattern-category {
  max-height: 300px;
  overflow-y: scroll;
}
.pattern-description {
  height: 180px;
  overflow: hidden;
}
/* name hashtag zoom */
.description{
  display: inline-block;
  margin: 0;
  font-weight: 700;
}
.name {
  background: #337ab7;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
  margin: 0 5px;
}
.hashtag {
  background: #cb857c;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
  margin: 0 5px;
}
.zoom {
  background: #efc460;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
  margin: 0 5px;
}
.materials {
  background: #2c7d28;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
  margin: 0 5px;
}
/*retailer news */
.news img {
  position: relative;
}
.news-cat {
  position: absolute;
  top: 5px;
  left: 20px;
  padding: 2px 4px;
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 2px;
}
.news-main {
  min-height: 90px;
}
.news-title {
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 28px;
}
.news-subtitle {
  color: #777;
  font-size: 14px;
  font-weight: 600;
}
.news-date {
  color: #6c757d;
  font-size: 10px;
}
.bg-cat1 {
  background-color: #414164;
  color: #fff;
}
.bg-cat2 {
  background-color: #7a4f4f;
  color: #fff;
}
.bg-cat3 {
  background-color: #50684e;
  color: #fff;
}
.bg-cat4 {
  background-color: #5a3a6d;
  color: #fff;
}
.bg-cat5 {
  background-color: #a73838;
  color: #fff;
}
.bg-cat6 {
  background-color: #5c859c;
  color: #fff;
}
.do-not-break-inside {
  display: block;
  break-inside: avoid;
  page-break-inside: avoid;
}
/* search */
.search-container {
  position: relative;
  display: inline-block;
}
#searchResults {
  display: none;
  position: absolute;
  z-index: 1;
  width: 300%;
  max-height: 300px;
  background: #fff;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 10px;
}
.result-item {
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.result-item:hover {
  background-color: #f0f0f0;
}

/* forms */
.control-label{
  font-weight: 700;
}
.form-control[readonly]{
  background-color: #f9f9f9;
}

/** popups **/
body .popup {
  margin: 0;
  padding: 0;
  max-width: 750px;
}
.popup-content {
  padding: 0 20px !important;
  margin: 0 auto;
}
.monospace {
  font-family: monospace;/* used on retailers_orders-edit.php */
  font-size: 12px;
}
@media (max-width: 767px) {
  #wrapper {
    flex-direction: column;
  }
  #sidebar {
    display: none;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 1020;
    overflow-y: auto;
    top: 0;
    left: 0;
    bottom: 0;
    background: #f8f9fa;
  }
  #sidebar.active {
    display: block;
  }
  #page-wrapper{
    padding: 0 15px;
    overflow-x: hidden;
  }
  #page-wrapper-full{
    padding: 0 15px;
    overflow-x: hidden;
  }
  .sidebar-nav {
    width: 100%;
  }
  .btn-wrapp {
    left: 0;
  }
  .btn-fixed{
    left: 30px;
  }
  .news-main {
    height: auto;
    margin-bottom: 20px;
  }
  .news-date {
    margin-top: 15px;
  }
  .sticky {
    position: sticky;
    left: 0;
    background-color: #fff;
  }
  .sticky-img {
    position: sticky;
    left: 99px;
    background-color: #fff;
  }
  .sticky-all {
    position: sticky;
    left: 159px;
    background-color: #DCEEF4;
  }
}
@media only screen and (min-width: 1500px) {
  .whatsnew {
    width: 90%;
  }
}
@media only screen and (min-width: 1800px) {
  #page-wrapper{
    flex-grow: 0;
    width: 1600px;
  }
}
@media only screen and (min-width: 1900px) {
  .news-main {
    min-height: 200px;
  }
}
@media only screen and (min-width: 2000px) {
  .whatsnew {
    width: 80%;
  }
}
@media print {
  a[href]:after {
    display: none;
    visibility: hidden;
  }
}
