html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
  font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/*After removing bootstrap, box sizing on many elements were off. Adding the following helped.*/
div, section {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: rgb(250, 249, 248);
}

.bold {
  font-weight: bold;
}

.color-primary {
  color: rgb(66, 136, 174) !important;
}

.color-dark {
  color: rgb(33, 68, 87) !important;
}

.color-error {
  color: rgb(255, 100, 100) !important;
}

.color-warning {
  color: rgb(255, 255, 100) !important;
}

.color-positive {
  color: rgb(80, 200, 80) !important;
}

.primary {
  background-color: rgb(66, 136, 174, .5) !important;
}

.dark {
  background-color: rgb(33, 68, 87, .5) !important;
}

.error {
  background-color: rgb(255, 100, 100, .5) !important;
}

.warning {
  background-color: rgb(255, 255, 100, .5) !important;
}

.positive {
  background-color: rgb(80, 200, 80, .5) !important;
}

.margin-0 {
  margin: 0 !important;
}

/*VALIDATION*/
label.error, input.error, select.error, textarea.error {
  background-color: unset !important;
  margin: 0;
}

label.error {
  color: rgb(200, 50, 50);
}

/*ELEMENTS*/
a {
  text-decoration: none;
}

.overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.loading-overlay {
  z-index: 5000;
}

.loading-overlay img {
  width: 96px;
  height: 96px;
}

.banner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  /*width: 100%;*/
  min-height: 96px;
  padding: 32px;
  border-radius: 2px;
  gap: 16px;
  /*box-sizing: border-box;*/
}

.banner p {
  margin: 0;
  /*font-size: 1.2rem;*/
}

.banner a {
  text-decoration: none;
  color: rgb(33, 68, 87) !important;
}

.banner .ms-Icon {
  margin-right: 8px;
}

.dialog {
  position: fixed;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -40%);
  z-index: 100;
  
  width: 80vw;
  max-width: 800px;
  max-height: 90vh;
  
  color: rgb(50, 49, 48);
  
  padding: 0;
  margin-bottom: 14px;
  
  background-color: rgb(255, 255, 255);
  border-radius: 2px;
  background-clip: padding-box;
  box-shadow: rgba(0, 0, 0, .3) 0 3px 12px 0;
  
  display: flex;
  flex-direction: column;
  align-items: stretch;
  
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  overflow: scroll;
}

.dialog-header {
  color: rgb(0, 0, 0);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: center;
  height: 64px;
  background-color: rgb(243, 242, 241);
  padding: 12px 32px;
  border-radius: 2px 2px 0 0;
}

.dialog-header h1
{
  text-transform: uppercase;
  font-size: 1.6rem;
  font-weight: bold;
}

.dialog-close, .dialog-back {
  cursor: pointer;
}

.dialog-content {
  padding: 32px;
}

.dialog-buttons {
  margin: 16px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.dialog-buttons button {
  flex-grow: 1;
}

.notification {
  bottom: 64px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 80vw;
  max-width: 800px;
  padding: 32px;
  font-size: 1.2rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  display: flex;
  z-index: 100000;

  background-color: rgb(255, 255, 255);
  border-radius: 2px;
  background-clip: padding-box;
  box-shadow: rgba(0, 0, 0, .3) 0 3px 12px 0;

  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.notification p {
  margin: 0;
}

.notification i {
  font-size: 2rem;
}

/*PAGE TITLE*/
.page-title {
  /*width: 100%;*/
  padding: 32px;
  background-color: rgb(255, 255, 255);
}

.page-title-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 32px;
  width: 100%;
  border-bottom: 1px solid rgb(161, 159, 157);
  gap: 16px;
}

.page-title-container i {
  font-size: 2rem;
}

.page-title-container h1 {
  margin: 0;
  font-size: 2rem;
}

/*Input -> Text */
input, textarea, select {
    line-height: 1.5;
    padding: 8px;
    /*width: 100%;*/
    border-color: rgb(100, 100, 100);
    border-width: 1px;
    border-radius: 2px;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
}

/*BREADCRUMBS*/
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 0;
  user-select: none;
}

.breadcrumbs a, .breadcrumbs span {
  text-transform: uppercase;
  text-decoration: none;
  margin: 0;
  color: rgb(33, 68, 87);
}

.inline-button {
  font-weight: bold;
  color: rgb(33, 68, 87);
  cursor: pointer;
}

.inline-button:hover {
  color: rgb(66, 136, 174);
}

/*Used when an inline-button contains one or more child element. When only contains one child element, this class is not needed.*/
.inline-button-content {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 8px;
}

button, .button {
  border: 1px solid rgb(33, 68, 87);
  background-color: rgb(255, 255, 255);
  color: rgb(36, 36, 36);
  /*box-shadow: rgba(0, 0, 0, 0.133) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.11) 0px 0.3px 0.9px 0px;*/

  /*height: 32px;*/
  /*display: inline-block;*/
  outline: transparent;
  position: relative;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  font-weight: 400;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  padding: 8px 32px;
  border-radius: 2px;
  min-width: 80px;
  user-select: none;
  font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  
  /*EXPERIMENTAL*/
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
}

button:hover, .button:hover {
  background-color: rgb(240, 240, 240);
}

.button-primary {
  background-color: rgb(33, 68, 87);
  color: rgb(255, 255, 255);
  border: 1px solid rgb(33, 68, 87);
}

.button-primary:hover {
  background-color: rgb(66, 136, 174);
}

.button-danger {
  background-color: rgb(210, 70, 70);
  color: rgb(255, 255, 255);
  border-color: unset;
}

.button-danger:hover {
  background-color: rgb(255, 100, 100);
  color: rgb(255, 255, 255);
}

.button-disabled {
  background-color: rgb(200, 200, 200);
  color: rgb(0, 0, 0);
  cursor: default;
}

.button-disabled:hover {
  background-color: rgb(200, 200, 200);
  color: rgb(0, 0, 0);
}

button img, .button img {
  max-height: 100%;
  height: 24px;
  margin-right: 10px;
  margin-bottom: 2px;
}

button .ms-Icon, .button .ms-Icon {
  margin-right: 8px;
}

.button-wide {
  width: 100%;
}

.button-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

/*BOARD*/
.board {
  position: relative;
  background-color: rgb(255, 255, 255);
  background-clip: padding-box;
  padding: 0;
  margin-bottom: 14px;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.133) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.11) 0px 0.3px 0.9px 0px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  color: rgb(50, 49, 48);
}

.board .board-label {
  font-weight: bold;
  border-radius: 8px;
  background-color: rgb(33, 68, 87);
  color: rgb(255, 255, 255);
  padding: 4px 8px;
  font-size: 12px;
  position: absolute;
  display: block;
  right: 12px;
  top: 12px;
}

.board-label-left {
  left: 12px;
  right: unset !important;
}

.board>.board-indicator {
  margin: 0;
  padding: 0;
  background-color: rgb(161, 159, 157);
  width: 0.5em;
}

.board-content {
  padding: 42px;
  margin: 0;
  /*flex-grow: 1;*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}


.board-content .board-title, .board-content h1, .board-content h2 {
  width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
  margin: 0;
  padding: 0;
  font-size: 1.5em;
}

.board-content .board-text, .board-content p {
  margin: 12px 0;
  line-height: 1.5em;
  color: rgb(59, 58, 57);
}

.board-content .board-buttons {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  width: 100%;
}

.board-buttons .button, .board-buttons button, .board-buttons .board-button-container {
  margin-top: 8px;
  width: 100%;
}

.board.centered {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  margin: 0;
  max-width: 500px;
  max-height: 500px;
  width: 350px;
}

/*PILLS*/
.pill-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 8px;
}

.pill {
  /*display: inline-block;*/
  padding: 4px 12px;
  border-radius: 2px;
  border: 1px solid rgb(85, 85, 85);
  background-color: rgb(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.pill:hover {
  cursor: pointer;
  color: rgb(255, 255, 255);
  background-color: rgb(33, 68, 87);
}

.pill-group .selected {
  color: rgb(255, 255, 255);
  background-color: rgb(5, 24, 39);
}

.pill img {
  max-height: 100%;
  height: 16px;
  margin-right: 10px;
}

.pill .ms-Icon {
  margin-right: 10px;
}

/*TABLE*/

table {
  border-collapse: collapse;
  user-select: none;
  -webkit-user-select: none;
}

thead tr {
  box-sizing: border-box;
  border-bottom: 1px solid rgb(200, 200, 200);
}

th {
  font-weight: bold;
  text-align: left;
}

td, th {
  height: 44px;
}

tbody tr:hover {
  background-color: rgb(250, 249, 248);
}



.sidebar-hidden #sidebar {
  display: none !important;
}

.sidebar-active #sidebar {
  display: flex !important;
}

.hidden {
  display: none !important;
}

.hidden-form {
  visibility: hidden;
  position: absolute;
}