.base {
  position: relative;
  display: block;
}

.box-header>.row:not(.remove-item), .ordinal_container {
  display: none;
}

.wrapword {
    -ms-word-break: break-all;
    word-break: break-all;
    /* Non standard for webkit */
     word-break: break-word;
    -webkit-hyphens: auto;
       -moz-hyphens: auto;
        -ms-hyphens: auto;
            hyphens: auto;
}

.scroll-container {
    overflow-y:scroll; 
    height:15rem;
    background-color: #fff;
}

.scroll-container-locked {
    overflow:hidden; 
    height:15rem;
    background-color: #fff;
}

.clipped {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: default;
}

.progress-bar-module {
    position: relative;
    background: #fff;
    border-radius: 3px;
    border: 1px solid hsl(204, 15%, 94%);
    box-sizing: border-box;
    box-shadow: -1px 1px 4px 1px #B0B0B0 inset;
    -webkit-box-shadow: -1px 1px 4px 1px #B0B0B0 inset;
    -moz-box-shadow: -1px 1px 4px 1px #B0B0B0 inset;
}

.progress-bar-module .pb-background-module,
.progress-bar-module .pb-foreground-module {
    box-sizing: border-box;
    padding: 0.25rem;
    padding-bottom: 0.4rem !important;
    padding-top: 0.5rem !important;
}

.progress-bar-module .pb-foreground-module {
    color: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 95rem;
    box-sizing: border-box;
}

.progress-bar {
    position: absolute;
    box-sizing: border-box;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    overflow: hidden;
    background-color: #005cb7;
    border-radius: 3px;
    background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    -webkit-transition: 0.3s linear;
    -moz-transition: 0.3s linear;
    -o-transition: 0.3s linear;
    transition: 0.3s linear;
    -webkit-transition-property: width, background-color;
    -moz-transition-property: width, background-color;
    -o-transition-property: width, background-color;
    transition-property: width, background-color;
    box-shadow: -1px 1px 4px 1px #005cb7 inset;
    -webkit-box-shadow: -1px 1px 4px 1px #005cb7 inset;
    -moz-box-shadow: -1px 1px 4px 1px #005cb7 inset;
}

#item-container {
  display:-ms-grid;
  display: grid;
  -ms-grid-row:1; 
  -ms-grid-column:2; 
  grid-area: main;
  grid-template-areas:
    "search"
    "body";
  -ms-grid-rows: auto 1fr;
  grid-template-rows: auto 1fr;
  /*grid-gap: calc(16px * 0.75);*/
  grid-gap: 0;
  padding: calc(calc(16px * 0.75) / 2);
}

.players-flex {
	flex: 1 1 80% !important;
}

.qty-flex {
	flex: 1 1 30% !important;
}

.search-bar {
  -ms-grid-row:1; 
  -ms-grid-column:2; 
  grid-area: search;
  position: sticky;
  top: 0;
  background-color: hsl(204, 15%, 94%);
  z-index: 100;
  margin-top: 1rem;
  display:-ms-grid;
  display: grid;
  -ms-grid-columns: minmax(80%, 95rem);
  grid-template-columns: minmax(80%, 95rem);
  grid-auto-rows: auto;
  justify-content: center;
}

.tab-bar {
  -ms-grid-row:1; 
  -ms-grid-column:1; 
  grid-area: search;
  position: sticky;
  top: 0;
  background-color: hsl(204, 15%, 94%);
  z-index: 100;
  display:-ms-grid;
  display: grid;
  -ms-grid-columns: minmax(100%, 95rem);
  grid-template-columns: minmax(100%, 95rem);
  grid-auto-rows: auto;
  justify-content: center;
}

.tab-bar-item {
  grid-area: search;
  position: sticky;
  top: 0;
  background-color: hsl(204, 15%, 94%);
  z-index: 100;
  margin-top: .5rem;
  justify-content: center;
}

.bbox-dd {
	border-top: 1px solid hsl(15, 1%, 83%);
	background-color: #fff;
	padding: calc(30px * 0.75);
	cursor: pointer;
}

.bbox-dd-empty {
	background-color: #fff;
	padding: calc(30px * 0.75);
}

.bbox-dd:hover {
  background-color: #006ab7;
}

.dd-container {
	overflow-y: scroll;
	flex-grow: 1;
}

.dd-empty {
	height:100%;
	position:absolute;
	top:.5rem;
	bottom:.5rem;
	left:.5rem;
	right:.5rem;
}

.dd-inner-container {
	-webkit-box-shadow: 0 5px 5px -5px rgba(0,0,0,0.35);
	-moz-box-shadow: 0 5px 5px -5px rgba(0,0,0,0.35);
	box-shadow: 0 5px 5px -5px rgba(0,0,0,0.35);
}

.dd-inner-container-child {
	border-top: none !important;
}

#dropdown-menu-items {
	-moz-border-radius: 3px;   
	-webkit-border-radius: 3px;   
	border-radius: 3px;
	background-color: hsl(204, 15%, 94%);
	display: flex; 
	flex-direction: column;
	justify-content: center; 
	align-items: stretch; 
	border: 1px solid hsl(15, 1%, 83%);
}

.del-item {
	position:absolute;
	right:1rem;
}

.main-header-tab.active {
	/*box-shadow: 0 -5px 5px -5px #d3d3d3;*/
	/*border-left: 1px solid #d3d3d3;*/
	/*border-right: 1px solid #d3d3d3;*/
}

.main-header-tab {
	background-color: #EDF0F2 !important;
	-moz-border-radius: 3px 3px 0px 0px;
	-webkit-border-radius: 3px 3px 0px 0px;
	border-radius: 5px 5px 0px 0px;
}

.main-header-tab-parent {
	background-color: #EDF0F2 !important;
}

.menues-tickets-tab.active {
	/*box-shadow: 0 -5px 5px -5px #d3d3d3;*/
	/*border-left: 1px solid #d3d3d3;*/
	/*border-right: 1px solid #d3d3d3;*/
}

.menues-tickets-tab {
	background-color: #FFFFFF !important;
	-moz-border-radius: 3px 3px 0px 0px;
	-webkit-border-radius: 3px 3px 0px 0px;
	border-radius: 5px 5px 0px 0px;
}

.menues-tickets-tab-parent {
	background-color: #FFFFFF !important;
}

.back-item {
	z-index: -1 !important;
}

.item-body {
  -ms-grid-row:1; 
  -ms-grid-column:1; 
  grid-area: body;
}

body {
  overflow-y: scroll !important;
}

#items, #items-tab-one:not(.reports-months), #items-tab-two, #items-tab-three, #items-tab-four, #items-tab-five, #items-tab-six, #documents, #documents-tab-one, #documents-tab-two, #documents-tab-three, #documents-tab-four {
  display:-ms-grid;
  display: grid;
  -ms-grid-columns: minmax(80%, 95rem);
  grid-template-columns: minmax(80%, 95rem);
  justify-content: center;
}

.reports-months-items {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    -ms-grid-columns: minmax(80%, 95rem);
    justify-content: center;
    grid-auto-rows: max-content;
    /*grid-auto-rows: 1fr;*/
    grid-gap: 1rem;
}

/* ordinal + logo + name */
.oln {
  flex: 1 1 24rem;
}

.oln-short {
  flex: 1 1 18rem;
}

.oln-shortest {
  flex: 1 1 10rem;
}

/* client mini stats */
.cms {
  flex: 1 1 24rem;
}

.cms-short {
  flex: 1 1 .5rem;
}

.cms-small {
  flex: .5 .5 10rem;
}

.cms-mid {
  flex: 1 1 50rem;
}

.cms>div {
  flex: 1 1 30%;
}

.cms-short>div, .cms-small>div {
  flex: 1 1 50%;
}

.cms-short-icons>div {
  flex: 1 1 30%;
}

.remove-item {
    top: unset;
    right: 1rem;
    margin-left: auto;
}

.remove-caption, .cancel-caption, .reactivate-caption {
    color: #006ab7;
}

.remove-item-btns {
  position: absolute;
  top: 0rem;
  right: 0rem;
  background-color: #fff;
}

.pdf-item {
  position: absolute;
  bottom: 1rem;
  right: .5rem;
}

.rep-inv-det {
  margin-top: -3px;
}

.rep-inv-det>div {
  border-top: none;
  border-right: 1px solid hsl(15, 1%, 83%);
  border-bottom: 1px solid hsl(15, 1%, 83%);
  border-left: 1px solid hsl(15, 1%, 83%);
}

.rep-inv-det>div:last-child {
  border-radius: 0 0 3px 3px;
}

.remove-item img{
  height: 1rem;
}

#box-logo {
  display: none;
  max-width: 275px;
}

#box-logo>img {
  display: block;
  width: 10rem;
  height: auto;
}

.multicolumn-modal {
	display: flex;
	flex-direction: row;
}

@media only screen and (min-width: 520px) {
  /* this should be temporary hack and done auto */
  .machine-info-grid {
    display:-ms-grid;
    display: grid;
	-ms-grid-columns: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
	-ms-grid-rows: auto auto;
    grid-template-rows: auto auto;
  }
}

@media only screen and (min-width: 768px) {
  .cms, .cms-short {
    padding: 0 .5rem;
    border-left: none;
  }
  
  .cms-short-last{
    border-right: none;
  }
  
  .cms-short-icons{
    border: none;
  }

  #box-logo {
    display: block;
  }
}

@media only screen and (min-width: 916px) {
  .base {
	display:-ms-grid;
    display: grid;
    grid-template-areas: "nav main";
	-ms-grid-columns: minmax(15rem, 20rem) auto;
    grid-template-columns: minmax(15rem, 20rem) auto;
	-ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    margin-bottom: 0;
    padding: 0;
  }

  #item-container {
    min-width: 60rem;
    margin-bottom: 0;
  }
}

@media only screen and (min-width: 1160px) {
    
  .box-header>.row:not(.remove-item), .ordinal_container {
      display: flex;
  }
  
  .cms, .cms-short {
    border-left: none;
  }
  
  .cms-short-last{
    border-right: none;
  }
  
  .cms-short-icons{
    border: none;
  }

  .remove-item {
    position: absolute;
    top: unset;
    right: 1rem;
  }
  
  .remove-item-btns {
      position: absolute;
      top: 0rem;
      right: 0rem;
  }
  
  .pdf-item {
    position: initial;
  }

  .remove-item img {
    height: 1.25rem;
  }

  #item-container {
    min-width: 75rem;
    justify-self: center;
  }

  .search-bar {
    margin-top: 1rem;
  }
}

@media only screen and (min-width: 1600px) {

  .cms, 
  .cms-short, 
  .cms-small,
  .cms h5 {
    font-size: .8rem;
  }

}