﻿/*Contains any common function to modify the tables, which can then be imported and applied per sub style.
	eg, for the email table may want to show lines, so can import the below to apply show-lines() just for item-container.email*/
/*Contains any common function to modify the tables, which can then be imported and applied per sub style.
	eg, for the email table may want to show lines, so can import the below to apply show-lines() just for item-container.email*/
/*tag colours on people page for diff link types.*/
@keyframes loading-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*Mixin to make avatar circle, for users, to be added inside a .name-and-avatar-display style*/
/*tag colours on people page for diff link types.*/
@keyframes loading-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*Mixin to make avatar circle, for users, to be added inside a .name-and-avatar-display style*/
div.item-list .show-paging-buttons {
  display: block;
  opacity: 0;
  height: 0;
  margin: 0;
  text-align: center;
}
div.item-list .show-paging-buttons.hidden {
  display: none;
}
div.item-list a.disabled {
  opacity: 0.5;
}
div.item-list div.header .sort-container {
  display: inline;
}
div.item-list div.header .sort-container a.sort.title {
  padding-right: 16px;
  position: relative;
  display: inline-block;
}
div.item-list div.header .sort-container a.sort.title span.sort-indicator {
  background: none;
  width: 10px;
  height: 10px;
  text-align: center;
  padding: 0;
  margin: 0;
  font-size: 8px;
  vertical-align: middle;
  position: absolute;
  top: 0;
  right: 3px;
}
div.item-list div.header .sort-container a.sort.title span.sort-indicator.ascending:before {
  content: "\f0d7";
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  font-size: 2em;
}
div.item-list div.header .sort-container a.sort.title span.sort-indicator.descending:before {
  content: "\f0d8";
  font-family: "Font Awesome 5 Pro";
  font-weight: 900;
  font-size: 2em;
}
div.item-list div.header .sort-container a.sort.title span.sort-indicator.hidden {
  display: none;
}
div.item-list div.header .title {
  vertical-align: middle;
}
/*An item container renders its elements as tables or cards, based
    on the size of the page.  
    A fixed item container will always render as a table.*/
div.item-container {
  width: 100%;
  display: table;
  margin: 0;
  padding: 0;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 5px;
  margin-top: 30px;
  position: relative;
}
div.item-container > .item:last-child > div {
  border-bottom-left-radius: 5px;
}
div.item-container > .item:last-child > div ~ div {
  border-bottom-left-radius: 0;
}
div.item-container > .item:last-child > div:last-child {
  border-bottom-right-radius: 5px;
}
div.item-container > .item:not(.readonly):hover > * {
  background-color: #FEF6F1;
  cursor: pointer;
}
div.item-container > .item:not(.readonly):hover > div:first-child {
  box-shadow: inset 6px 0px 0px -1px #536889;
}
div.item-container > .item {
  cursor: pointer;
}
div.item-container > .header > .item {
  line-height: 18px;
}
div.item-container > .item,
div.item-container > .header > .item {
  display: table-row;
}
div.item-container > .item > div:last-child,
div.item-container > .header > .item > div:last-child {
  border-right: solid 1px #bdc4c9;
}
div.item-container > .item.removed,
div.item-container > .header > .item.removed {
  display: none;
}
div.item-container > .item > *,
div.item-container > .header > .item > * {
  display: table-cell;
  position: relative;
  text-align: left;
  border-left: solid 1px #bdc4c9;
  border-bottom: solid 1px #bdc4c9;
}
div.item-container > .item > *,
div.item-container > .header > .item > *,
div.item-container > .item > .commands > *,
div.item-container > .header > .item > .commands > * {
  display: table-cell;
  vertical-align: middle;
  padding: 4px 8px;
}
div.item-container > .item > .commands,
div.item-container > .header > .item > .commands {
  margin: 0;
  padding: 0;
  font-size: inherit;
  height: 42px;
  width: 40px;
}
div.item-container > .item > .commands > *,
div.item-container > .header > .item > .commands > * {
  text-align: center;
  min-width: 5em;
}
div.item-container > .item > .commands > button,
div.item-container > .header > .item > .commands > button,
div.item-container > .item > .commands > a.button,
div.item-container > .header > .item > .commands > a.button {
  background-color: transparent;
  color: #566068;
  font-size: 0;
}
div.item-container > .item > .commands > button:before,
div.item-container > .header > .item > .commands > button:before,
div.item-container > .item > .commands > a.button:before,
div.item-container > .header > .item > .commands > a.button:before {
  font-size: 14px;
  padding: 0 10px;
}
div.item-container > .item > .commands > button.edit,
div.item-container > .header > .item > .commands > button.edit,
div.item-container > .item > .commands > a.button.edit,
div.item-container > .header > .item > .commands > a.button.edit {
  display: none;
}
div.item-container > .item > .commands > button.delete,
div.item-container > .header > .item > .commands > button.delete,
div.item-container > .item > .commands > a.button.delete,
div.item-container > .header > .item > .commands > a.button.delete {
  border: 0;
}
div.item-container > .item > .commands > button.delete:before,
div.item-container > .header > .item > .commands > button.delete:before,
div.item-container > .item > .commands > a.button.delete:before,
div.item-container > .header > .item > .commands > a.button.delete:before {
  padding-right: 0.5em;
  font-family: "Font Awesome 5 Pro";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  text-decoration: inherit;
  content: "\f2ed";
}
div.item-container > .item > .commands > button.disable,
div.item-container > .header > .item > .commands > button.disable,
div.item-container > .item > .commands > a.button.disable,
div.item-container > .header > .item > .commands > a.button.disable {
  border: 0;
}
div.item-container > .item > .commands > button.disable:before,
div.item-container > .header > .item > .commands > button.disable:before,
div.item-container > .item > .commands > a.button.disable:before,
div.item-container > .header > .item > .commands > a.button.disable:before {
  padding-right: 0.5em;
  font-family: "Font Awesome 5 Pro";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  text-decoration: inherit;
  content: "\f05e";
}
div.item-container > .item > .commands > button.disabled,
div.item-container > .header > .item > .commands > button.disabled,
div.item-container > .item > .commands > a.button.disabled,
div.item-container > .header > .item > .commands > a.button.disabled {
  opacity: 0.5;
}
div.item-container > div.header {
  display: table-header-group;
}
div.item-container > div.header.hidden {
  display: none;
}
div.item-container > div.header > .item > div {
  font-family: Arial, sans-serif;
  background-color: white;
  font-weight: normal;
  font-size: 18px;
  color: #3d464d;
  border-top: solid 1px #bdc4c9;
}
div.item-container > div.header > .item > div.commands > div {
  color: #3d464d;
}
div.item-container > div.header > .item > div:first-child {
  border-top-left-radius: 5px;
}
div.item-container > div.header > .item > div:last-child {
  border-right: solid 1px #bdc4c9;
  border-top-right-radius: 5px;
}
div.item-container > div.footer {
  display: table-footer-group;
}
div.item-container > div.footer > .item > div {
  background-color: #DDDDDD;
  font-weight: bold;
}
div.item-container.card {
  margin: 10px;
  display: block;
  text-align: center;
}
div.item-container.card > .item,
div.item-container.card > .header > .item {
  display: inline-block;
  border-spacing: 2px;
  height: auto;
  width: 250px;
  margin: 20px 10px;
  padding: 5px;
  border: solid 1px #ccc;
  -webkit-box-shadow: rgba(80, 80, 80, 0.2) 0 4px 8px;
  box-shadow: rgba(80, 80, 80, 0.2) 0 4px 8px;
  /*&:nth-child(2n+1)
            {
                background-color: inherit;
            }*/
}
div.item-container.card > .item > *,
div.item-container.card > .header > .item > * {
  display: block;
  text-align: left;
  padding-left: 0;
  border-bottom: none;
}
div.item-container.card > .item > *:nth-child(1),
div.item-container.card > .header > .item > *:nth-child(1) {
  font-weight: bold;
  font-size: 1.3em;
}
div.item-container.card > .item > *.commands,
div.item-container.card > .header > .item > *.commands {
  display: table;
  text-align: center;
  width: 100%;
}
div.item-container.card > .item > *.commands > button,
div.item-container.card > .header > .item > *.commands > button,
div.item-container.card > .item > *.commands > a.button,
div.item-container.card > .header > .item > *.commands > a.button {
  display: table-cell;
  width: 1px;
}
div.item-container.card > div.header,
div.item-container.card > div.footer {
  display: none;
}
/* tablet resizes - render as card view always*/
/*@media only screen and (max-width : @tabletSize) {
    .resp {
        div.item-container {
            .card-container();
        }
    }
}*/
/* mobile resizes - cards are full width*/
/*@media only screen and (max-width : @mobileSize) {
    .resp {
        div.item-container {
            > .item {
                display: block;
                height: auto;
                width: 100%;
                margin: 10px 0px;
                padding: 5px;
            }
        }
    }
}*/