/* select dropdowns in button group should meld with neighbors */

nav.navbar.bg-light {
  /* background-color: rgb(255, 0, 144) !important; */
}

.btn-group>select.form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group>select.form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-color: transparent;
}

.nav-item .dropdown-toggle:after {
  display: none;
}

.btn.btn-nav {
  padding-left: 0.25em;
  padding-right: 0.25em;
}

.btn-group .navbar-brand {
  margin-right: 0;
}

.dropdown-toggle:after {
  border: none;
  content: "\f0d7";
  font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro";
  font-weight: 900;
  /* margin-right: 1em; this did not look right for remove button on time sheet */
  vertical-align: 0;
}

.navbar-dark .dropdown-toggle:after {
  color: rgba(255, 255, 255, 0.5);
}

.navbar-nav .nav-item.dropdown {
  margin-right: 1em;
}

.page-header {
  margin-top: 2em;
  margin-bottom: 2em;
}

.card.card-as-link {
  position: relative;
}

.card.card-as-link a {
  z-index: 2;
  position: relative;
}

.card.card-as-link a.card-as-link {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

.dropdown-item .menu-item-icon {
  opacity: 0.5;
}

/* custom checkboxes*/

.form-check {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
}

.form-check.inline {
  display: inline-block;
  vertical-align: bottom;
}

.form-check label {
  cursor: pointer;
  display: block;
}

.form-check-input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.form-check-label {
  /*position: relative;*/
  margin-bottom: 0;
}

.form-check .form-check-label::before {
  border-radius: 0.25rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  position: absolute;
  top: 0.25rem;
  /*left: -1.5rem;*/
  left: 0;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: #dee2e6;
  border: 1px solid transparent;
}

.form-check .form-check-input[type="radio"]~.form-check-label::before {
  border-radius: 100%;
}

.form-check .form-check-label:hover::before,
.form-check .form-check-label:focus-within::before {
  border: 1px solid rgba(0, 123, 255, 0.5);
}

.form-check-label::after {
  position: absolute;
  top: 0.25rem;
  /*left: -1.5rem;*/
  left: 0;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}

.form-check .form-check-input:checked~.form-check-label::before {
  background-color: #007bff;
  color: #fff;
  border: 1px solid transparent;
}

.form-check .form-check-input:checked~.form-check-label::after {
  font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro";
  font-weight: 900;
  content: "\f00c";
  color: #fff;
  font-size: 0.75em;
  text-align: center;
}

.form-check .form-check-input[type="radio"]:checked~.form-check-label::after {}

.form-inline .form-check {
  padding-left: 0.2rem;
}

.form-control.h5 {
  font-size: 1.25rem;
  font-weight: 500;
}

.media.media-as-link {
  position: relative;
  transition: 0.1s background ease;
  border-radius: 5px;
}

.media.media-as-link:hover {
  background: rgba(0, 0, 0, 0.03);
  transition: 0.1s background ease;
}

.media.media-as-link a {
  z-index: 2;
  position: relative;
}

.media.media-as-link a.media-as-link {
  z-index: 1;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
}

.btn-input {
  color: #6c757d;
  background-color: #fff;
  background-image: none;
  border-color: #ced4da;
}

.input-group-prepend .btn-input {
  /*border-right: none;*/
}

.input-group-append .btn-input {
  /*border-left: none;*/
}

.time-grid {
  border-collapse: collapse;
  width: calc(100% - 1px);
}

.time-grid-cell {
  min-width: 3em;
  width: 11.5%;
  border: 1px solid #ced4da;
}

.time-grid-cell.disabled { 
  background-color: #e9ecef;

}

.time-grid-total {
  min-width: 3em;
  width: 11.5%;
  border: 1px solid #ced4da;
  background-color: var(--light);
}

.time-grid-total span {
  width: 100%;
  text-align: right;
  display: block;
}

.time-grid-corner {
  width: 8%;
}

.time-grid-col-header {
  min-width: 3em;
  width: 11.5%;
  text-align: right;
  font-weight: normal;
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.time-grid-row-header {
  /*min-width: 3em;*/
  width: 8%;
  font-weight: normal;
  color: #6c757d;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.time-grid-cell input {
  width: 100%;
  border: none;
  margin: 0;
  padding: 0 3px 0 0;
  text-align: right;
}

.time-grid th.holiday {
  color: #f00;
}

.collapse-rotate {
  transform: rotate(0);
  transition: 0.25s ease;
}

.collapsed .collapse-rotate {
  transform: rotate(180deg);
  transition: 0.25s ease;
}

/*********************************************** SELECT2 */

.select2-container--default .select2-selection--single,  .select2-container--default .select2-selection--multiple {
  background-color: #fff;
  border: 1px solid #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #495057;
}

.form-control-sm+.select2-container--default .select2-selection--single {
  height: calc(1.8125rem + 2px);
  border-radius: 0.2rem;
}

.select2-container--default .select2-selection--multiple {
  min-height: calc(1.5em + 0.75rem + 2px);
  border-radius: 0.2rem;
}

.input-group>.form-control:not(:first-child)+.select2-container--default .select2-selection--single {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-control-sm+.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-control:not(.form-control-sm)+.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.form-control:not(.form-control-sm)+.select2-container--default .select2-selection--single {
  height: calc(1.5em + 0.75rem + 2px);
  border-radius: 0.2rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border: none;
  height: 100%;
  left: auto;
  margin-left: 0;
  margin-top: 0;
  position: absolute;
  top: 0;
  width: 1em;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: calc(100% - 2px);
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b:after {
  content: "\f0d7";
  font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro";
}

.select2-results__option {
  min-height: calc(1.5em + 12px);
}


/* select2-selection__clear */
.select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  height: 100%;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding-right: 0.5rem;
  color: #6c757d;
}


/* select2 tags - remove borders */

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border-right: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border: none;
}

.bg-light.overflow-shadow {
  overflow: auto;
  background:
    /* Shadow covers */
    linear-gradient(#f8f9fa,
      rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), #f8f9fa) 0 100%,
    /* Shadows */
    radial-gradient(50% 0,
      farthest-side,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0)),
    radial-gradient(50% 100%,
      farthest-side,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0)) 0 100%;
  background:
    /* Shadow covers */
    linear-gradient(#f8f9fa,
      rgba(255, 255, 255, 0)),
    linear-gradient(rgba(255, 255, 255, 0), #f8f9fa) 0 100%,
    /* Shadows */
    radial-gradient(farthest-side at 50% 0,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 50% 100%,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0)) 0 100%;
  background-repeat: no-repeat;
  background-color: #f8f9fa;
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  /* Opera doesn't support this in the shorthand */
  background-attachment: local, local, scroll, scroll;
}

textarea.one-line {
  height: 31px;
}

@media (min-width: 768px) {
  .row:not(:first-of-type) .first-row-only-md {
    display: none;
  }
}

.row:not(:first-of-type) .first-row-only {
  display: none;
}

.row:not(:focus-within) .when-focus-in-row {
  display: none;
}

.input-group-append>span:empty,
.input-group-prepend>span:empty {
  background: white;
}

.drag * {
  pointer-events: none;
}

.when-drag {
  display: none;
}

.drag .when-drag {
  display: initial;
}

.when-not-drag {
  display: initial;
}

.drag .when-not-drag {
  display: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  background-image: none;
  padding-right: 0.75rem;
}

#toast_container {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 2em;
  flex-direction: column;
  z-index: 1050;
}

#toast_container .toast {
  pointer-events: auto;
  flex-basis: auto;
}

.btn img.btn-icon {
  height: 1em;
  vertical-align: -0.225em;
  font-size: 1.33333em;
  line-height: 0.75em;
}

.vertical-range {
  width: 1.4rem;
  display: inline-block;
  --controlHeight: 10rem;
  height: var(--controlHeight);
}

.vertical-range input[type="range"] {
  transform: translate(-100%, 0) rotate(-90deg);
  transform-origin: top right;
  width: var(--controlHeight);
  margin-right: calc(var(--controlHeight) * -1);
}

.btn-group-toggle.is-invalid~.invalid-feedback {
  display: block;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-move {
  cursor: move;
}

.modal-dialog.modal-tall {
  height: calc(100% - 3.5rem);
}

.modal-dialog.modal-tall .modal-content {
  height: 100%;
}

.modal {
  /* padding: 0 !important; */
}

.modal .modal-dialog.modal-fullscreen {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  max-height: 100%;
  position: absolute;
}

.modal .modal-fullscreen .modal-content {
  height: 100%;
  border: 0;
  border-radius: 0;
  max-height: 100%;
}

.modal .modal-fullscreen .modal-body {
  overflow-y: auto;
}

th a.sort {
  white-space: nowrap;
}

th a.sort-active {
  color: #212529;
}

th a.sort::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 6 Pro", "Font Awesome 5 Pro";
  font-weight: 900;
  content: "\f0dc";
  margin-right: 0.5em;
  color: #dee2e6;
}

th a.sort.sort-active::before {
  font-weight: 900;
  content: "\f0dd";
  color: #212529;
}

th a.sort.sort-active.sort-desc::before {
  font-weight: 900;
  content: "\f0de";
  color: #212529;
}

label.required::after {
  content: "*";
  color: var(--danger);
  display: inline-block;
  margin-left: 0.25em;
}

.select2-hidden-accessible.is-invalid+span.select2.select2-container--default .select2-selection--single {
  border-color: var(--danger);
}

@media print {

  .col-print-1,
  .col-print-2,
  .col-print-3,
  .col-print-4,
  .col-print-5,
  .col-print-6,
  .col-print-7,
  .col-print-8,
  .col-print-9,
  .col-print-10,
  .col-print-11,
  .col-print-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }

  .col-print-1 {
    -ms-flex: 0 0 8%;
    flex: 0 0 8%;
    max-width: 8%;
  }

  .col-print-2 {
    -ms-flex: 0 0 16%;
    flex: 0 0 16%;
    max-width: 16%;
  }

  .col-print-3 {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-print-4 {
    -ms-flex: 0 0 33%;
    flex: 0 0 33%;
    max-width: 33%;
  }

  .col-print-5 {
    -ms-flex: 0 0 42%;
    flex: 0 0 42%;
    max-width: 42%;
  }

  .col-print-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-print-7 {
    -ms-flex: 0 0 58%;
    flex: 0 0 58%;
    max-width: 58%;
  }

  .col-print-8 {
    -ms-flex: 0 0 66%;
    flex: 0 0 66%;
    max-width: 66%;
  }

  .col-print-9 {
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 75%;
  }

  .col-print-10 {
    -ms-flex: 0 0 83%;
    flex: 0 0 83%;
    max-width: 83%;
  }

  .col-print-11 {
    -ms-flex: 0 0 92%;
    flex: 0 0 92%;
    max-width: 92%;
  }

  .col-print-12 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media only screen and (max-width: 800px) {

  /* Force table to not be like tables anymore */
  .flip-table table,
  .flip-table thead,
  .flip-table tbody,
  .flip-table th {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  .flip-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .flip-table tr {
    display: table;
    width: 100%;
  }

  .flip-table td {
    display: table-row;
  }

  .flip-table td cell-content {
    display: table-cell;
  }

  .flip-table td:before {
    display: table-cell;
    content: attr(data-title);
    padding: 0 0.75rem;
    font-weight: bold;
    white-space: nowrap;
  }
}

button.btn[data-toggle="button"]:hover {
  color: initial;
  background-color: initial;
  border-color: initial;
}

.ui-sortable-helper {
  display: table;
}

.menu-tile {
  transition: all .1s ease;
}

.menu-tile:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all .1s ease;
}

.menu-tile.primary-shadow .card-body i.icon:before {
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

.menu-tile.secondary-shadow .card-body i.icon:after {
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

.menu-tile .pin {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 1000;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 992px) {
  .tile-icon {
    font-size: 4vw;
  }
}

@media screen and (max-width: 991px) {
  .tile-icon {
    font-size: 6vw;
  }
}

@media screen and (max-width: 767px) {
  .tile-icon {
    font-size: 8vw;
  }
}

@media screen and (max-width: 574px) {
  .tile-icon {
    font-size: 12vw;
  }
}


/* higher contrast toggle button */
.btn-contrast {
  color: var(--dark);
  background-color: var(--light);
  border-color: var(--light);
}

.btn-contrast.active {
  color: var(--white);
  background-color: var(--success);
  border-color: var(--success);
}

.border-thick {
  border-width: 1rem;
}

.bg-white-transparent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.table-fixed {
  table-layout: fixed;
}

.table-tight td, .table-tight th {
  padding: 0.1rem;
}

.square-top {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.square-right {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.square-bottom,
.select2-hidden-accessible.square-bottom+.select2 .select2-selection {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.square-left {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.square-top-left {
  border-top-left-radius: 0 !important;
}

.square-top-right {
  border-top-right-radius: 0 !important;
}

.square-bottom-left {
  border-bottom-left-radius: 0 !important;
}

.square-bottom-right {
  border-bottom-right-radius: 0 !important;
}

.square {
  border-radius: 0 !important;
}

.pulse-once {
  animation: pulse 2s;
}

@keyframes pulse {
  0% {
    /*transform: scale(0.95);*/
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    /*transform: scale(1);*/
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    /*transform: scale(0.95);*/
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.small-scrollbar::-webkit-scrollbar-corner {
  background: rgba(0, 0, 0, 0.5);
}

.small-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #c5c5c5 #f6f6f6;
}

/* Works on Chrome, Edge, and Safari */
.small-scrollbar::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.small-scrollbar::-webkit-scrollbar-track {
  background: #f6f6f6;
}

.small-scrollbar::-webkit-scrollbar-thumb {
  background-color: #c5c5c5;
  border-radius: 20px;
  border: 3px solid #f6f6f6;
}

.navbar .dropdown-menu.show {
  z-index: 99999;
}

.icon-secondary-white {
  --fa-secondary-color: var(--white);
  --fa-secondary-opacity: 1.0;
}

/*
 *  Tree diagram
 */
.tree, .tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree ul {
  margin-left: 1em;
  position: relative
}

.tree ul ul {
  margin-left: .5em
}

.tree ul:before {
  content: "";
  display: block;
  width: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: 1px solid;
  border-color: var(--secondary);
}

.tree li {
  margin: 0;
  padding: 0 0.7em;
  line-height: 2em;
  position: relative
}

.tree ul li:before {
  content: "";
  display: block;
  width: 10px;
  height: 0;
  border-top: 1px solid;
  margin-top: -1px;
  position: absolute;
  top: 1em;
  left: 0;
  border-color: var(--secondary);
}

.tree ul li:last-child:before {
  background: #fff;
  height: auto;
  top: 1em;
  bottom: 0
}

.tree a.active {
  font-weight: bold
}

/* additional css color variables */
:root {
  --red-light: #ed9ba4;
  --red-dark: #75151e;
  --yellow-light: #ffdf80;
  --yellow-dark: #806000;
  --blue-light: #a4c2ed;
  --blue-dark: #1e4d75;
  --green-light: #a4edc2;
  --green-dark: #1e7551;
  --gray-light: #d5dce2;
  --muska-blue: #16629c;
  --muska-dark: #2c3e50;
  --red-muted: hsl(354, 75%, 35%);
  --green-muted: hsl(134, 75%, 35%);
}

.faint {
  opacity: 0.7;
}

.dropdown-toggle.btn-block.text-left:after {
  position: absolute;
  right: 0.5em;
}

    /* --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40; */

.text-blue { color: var(--blue); }
.text-indigo { color: var(--indigo); }
.text-purple { color: var(--purple); }
.text-pink { color: var(--pink); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }
.text-green { color: var(--green); }
.text-teal { color: var(--teal); }
.text-cyan { color: var(--cyan); }
.text-white { color: var(--white); }
.text-gray { color: var(--gray); }
.text-gray-dark { color: var(--gray-dark); }

.muska-blue {
  color: var(--muska-blue);
}

.bg-muska-blue {
  background-color: var(--muska-blue) !important;
}

.bg-muska-dark {
  background-color: var(--muska-dark) !important;
}


.no-transition {
  transition: none !important;
}

.form-control.no-outline {
  box-shadow: none;
}

.balance {
  text-wrap: balance;
}

.custom-control.custom-control-sm {
  min-height: 21px;
  font-size: .875rem;
}

.custom-control-sm .custom-control-label {
  /* top: 1px; */
}

.custom-control-sm .custom-control-label::before {
  top: 3px;
}

.custom-control-sm .custom-control-label::after {
  top: 5px;
}