:root {
  --blue: #4CCAFF;
  --blueDark: #3CBAEF;
  --line: #999999;
  --lgrey: #efefef;
  --red: #DF0819;
  --slgrey: #f9f9f9;
}

/* GENERAL */

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
  text-decoration: none;
}
ul.navbar-nav {
  position: relative;
}
li.logout {
  position: absolute;
  right: 0;
  margin-top:5px;
}
li.logout .username {
  font-size: 11px;
  font-weight: normal;
  padding-right:13px;
  display:inline-block;
}
li.logout form {
  display:inline-block;
}
li.logout .btn-alert {
  color:black;
  background-color: #BDEAFF;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5 {
  font-weight: 600!important;
}
h1, h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

A, .nav-link, .back-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}
A:hover, .nav-link:hover, .back-link:hover {
  color: var(--blueDark);
}
A:not(.btn):not(.nav-link):hover {
  text-decoration: underline;
}
A.back-link {
  display: block;
  padding: 10px 0 0 0;
}

.navbar-brand {
  width:50px;
  height:36px;
  content: ''!important;
  background-image: url('../images/logo-mini.svg');
  background-repeat: no-repeat;
  background-size: 50px 36px;
  background-position: left center;
}

.error-message {
  padding: 1rem;
  font-size: 14px;
  border-radius: 10px;
  background-color: var(--slgrey);
  border: 1px solid var(--red);
  color: var(--red);
}

#rotor {
  position:absolute;
  display:block;
  top: 0;
  left: 0;
  width: 100%;
  height:100%;
  background-color:rgba(255,255,255,0.7);
  z-index:400000000000;
  animation-name: fade-in;
  animation-duration: 2.25s;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
#rotor:before, #rotor:after {
  display:block;
  position:absolute;
  content:"";
  width:48px;
  height:48px;
  left: 50%;
  top: 50vh;
  margin-left: -20px;
  margin-top: -20px;
  animation: rot 1s infinite;
  animation-timing-function: linear;
  background-image: url('../images/rotor-shadow.png');
 }
#rotor:after {
  margin-left: -24px;
  margin-top: -24px;
  background-image: url('../images/rotor.png');
}
@keyframes rot {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 360deg;
  }
}

/* HEADER MENU */

.navbar {
  background-color: var(--blue);
  font-weight: 600;
}
.nav-item {
  border-bottom: 3px solid transparent;
}
.nav-item:hover {
  border-bottom: 3px solid var(--red);
}
.nav-item .menu {
  position: absolute;
  display: none;
  margin-top: 40px;
  background-color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.nav-item:hover .menu {
  display: block;
  list-style: none;
  padding: 0;
  border-top: 3px solid var(--red);
}
.nav-item:hover .menu li:hover {
  background-color: var(--lgrey);
}
.bottom-line {
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

/* FOOTER */
footer {
  position: fixed !important;
  background-color: white;
  z-index: 3000000000;
}

/* INFO BLOCK */
.info-block {
  background-color: var(--slgrey);
  position: relative;
  padding: 15px;
}
.info-block .btn {
  display: block;
  position: absolute;
  right: 15px;
}
.info-block button.link, .info-block button.link:hover {
  padding-top:0;
  padding-bottom:0;
  background-color: transparent;
  color: var(--blue);
  border: 0;
  font-size: 16px;
}
.info-block button.link:hover, .info-block button.link:active {
  color: var(--blueDark);
  text-decoration: underline;
  user-focus: none;
  outline: none;
}
.info-block .label {
  font-weight: bold;
  line-height: 32px;
}
.info-block .data {
  line-height: 32px;
}
strong {
  margin-top: 5px;
  display: inline-block;
  font-size: 1.1em;
}
.info-block .line {
  height: 1px;
  margin: 4px 0;
  background-color: lightgrey;
}

/* TABLES */

table {
  width: 100%;
  margin: 0;
  padding: 0;
  border-collapse: separate;
  border-spacing: 0 1px;
}
table tr {
}
table tr th {
  background-color: var(--slgrey);
  border-bottom: 1px solid var(--line);
  padding:12px 7px;
  font-weight: 600;
}
table tr th.asc a:after,  table tr th.desc a:after {
  display: inline-block;
  content: '\2193';
  margin-left: 5px;
  color: black;
}
table tr th.desc a:after {
  content: '\2191';
}
table tr.info th {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: -1px;
}
table tr.info th[colspan] {
  text-align: center;
  padding-right: 44px;
}
table tr td {
  background-color: var(--slgrey);
  padding:7px 7px;
}
table tr td.nobr {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table tr td.w50 {
  max-width: 50px;
}
table tr td.w100 {
  max-width: 100px;
}
table tr td.w150 {
  max-width: 150px;
}
table tr td.w200 {
  max-width: 200px;
}
table tr.past td:not(.button-space) {
   opacity: 0.4;
   background-color: var(--lgrey);
 }
table tr.past td.button-space {
  /*background-color: var(--lgrey);*/
}
table tr.active-row:not(.past):hover td {
  background-color: var(--lgrey);
  cursor: hand;
  cursor: pointer;
}
table tr.active-row.past:hover td {
  background-color: #D6D6D6;
  cursor: hand;
  cursor: pointer;
}
table tr.active-row.past:hover td.button-space {
  background-color: var(--lgrey);
}
table tr td.grabber {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  padding-left:10px;
  padding-right:3px;
}
table tr td.grabber:before {
  display: block;
  content: '';
  width: 15px;
  height: 14px;
  border-top: 2px solid var(--line);;
  border-bottom: 2px solid var(--line);;
  background-color: transparent;
  margin-top: -6px;
}
table tr td.grabber:after {
  display: block;
  content: '';
  width: 15px;
  height: 2px;
  background-color: var(--line);
  margin-top: -8px;
}
table tr td.button-space {
  width: 50px;
}
table tr td .icon {
  display: inline-block;
  background-size: 16px 16px;
  background-position: center center;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
}
table tr td .haslink {
  background-image: url('../images/link.svg');
}
table tr td .haspush {
  background-image: url('../images/push.svg');
}
table tr td .mealreplacement {
  background-image: url('../images/mealreplacement.svg');
}
table tr td .recipes {
  background-image: url('../images/recipe.svg');
}
table tr td .check {
  background-image: url('../images/check.svg');
}
table tr th.centered, table tr td.centered {
  text-align: center;
}
table tr td.measurement-col-date {
  padding: 7px 30px 7px 7px;
  white-space: nowrap;
}
table tr td.measurement-col-value {
  width: 100%;
}

.no-table {
  padding: 20px 0 0 17px;
}

/* BUTTONS */
.float-button {
  position: relative;
  display: block;
  float: right;
  text-align: right;
  width: 0;
  height: 0;
  z-index: 3;
}
.float-button .btn {
  margin-top: 60px;
  white-space: nowrap;
}
.float-right {
  float: right;
  margin: 15px 15px;
}
.button-right {
  text-align: right;
  margin: 10px 0 24px 0;
}
.alert {
  font-size: 14px !important;
  margin: 1rem 0;
  border: 1px solid #574c30;
  color: #574c30;
  border-radius: 10px;
  background-color: #fffbef;
  z-index: -1;
}
.modal-content .alert {
  margin: 1rem;
  z-index: 0;
}
.shift-down {
  float: right;
  margin: 26px 0 0 15px!important;
}
.shift-up {
  float: right;
  margin: 4px 0 0 15px!important;
}
.btn {
  font-weight: 600;
}
.btn-blue {
  background-color: var(--blue);
  color: black;
}
.btn-dark {
  background-color: #313131!important;
}
.btn-dark:hover {
  background-color: black!important;
}
.btn-primary, .btn-primary:focus, .btn-primary:active {
  background-color: var(--blue);
  border-color:  var(--blue);
  color: white;
}
.btn-primary:hover {
  background-color: var(--blueDark);
  border-color:  var(--blueDark);
  color: white;
}
.btn-edit {
  background-image: url('../images/pencil.svg');
  background-size: 20px 20px;
  background-position: center center;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
}
.btn-delete {
  background-image: url('../images/bin.svg');
  background-size: 18px 18px;
  background-position: center center;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
}
.btn-remove {
  background-image: url('../images/remove.svg');
  background-size: 18px 18px;
  background-position: center center;
  background-repeat: no-repeat;
  width: 30px;
  height: 30px;
}

/* TINY MCE VALIDATION ERROR */
.validation-error .message-container {
  position: relative;
  width: 150px;
  margin: 0 auto;
}
.validation-error .message-container .arrow {
  position: absolute;
  top: -15px;
  left: 15px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #666;
  border-left: 1px solid #666;
  transform: rotate(45deg);
  background-color: #fff;
  z-index: 2;
}
.validation-error .message-container .message {
  position: absolute;
  top: -9px;
  left: 0;
  padding: 9px;
  border: 1px solid #666;
  border-radius: 5px;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, .3);
  background-color: #fff;
  font-family: Verdana, Arial;
  font-size: 13px;
  z-index: 1;
}
.validation-error .message-container .message IMG {
  width: 23px;
  height: 23px;
  margin-right: 9px;
}

/* MODELS */

.modal-header {
  background-color: var(--blue);
  color: black;
  font-weight: 600;
}

/* TABS */

.nav-tabs {
  margin-left: 1px;
}
.nav-tabs .nav-item, .nav-tabs .nav-item:hover, .nav-tabs nav-link:focus {
  border-bottom: 0;
}
.nav-tabs .nav-link {
  font-weight: 600;
}
.nav-tabs .nav-link.disabled {
  color: #dddddd;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-link.active:hover, .nav-tabs .nav-link.active:focus {
  background-color: var(--slgrey);
  border-bottom-color: var(--slgrey);
  text-decoration: none;
}
.nav-tabs .nav-link:not(.active):hover, .nav-tabs .nav-link:not(.active):focus {
  border-color: transparent!important;
  border-bottom-color: var(--slgrey);
  background-color: transparent;
}
.nav-tabs .nav-link:not(.active):focus {
  color: black!important;
}

/* FORMS */

.form-control.list-filter {
  margin-left:10px!important;
  display: inline-block!important;
  width: 30%!important;
  margin-bottom: 24px;
}
.form-control.list-filter.w50 {
  width: 50%!important;
}
input.form-control::placeholder {
  color: #dedede;
}
.hide {
  display: none;
}
label:first-child {
  font-weight: bold;
}
select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 3px;
    background-size:24px 30px;
}
#categorySelect {
  width: 100%;
}
.form-check-input {
  margin-right: 8px;
}
input[type="checkbox"], input[type="radio"] {
  appearance: none;
  background-color: #fff;
  margin: 0 10px 0 0;
  font: inherit;
  color: currentColor;
  width: 16px;
  height: 16px;
  border: 1px solid black;
  border-radius: 3px;
  transform: translateY(3px);
  display: grid;
  place-content: center;
  float:left;
}
input[type="checkbox"]::before, input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em black;
  border-radius: 2px;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
  background-color: white;
  border-color: black;
}

input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
  transform: scale(1);
}

/* IMAGES */
.smile {
  width: 45px;
  height: 45px;
  background-repeat: no-repeat;
  background-size: 36px 36px;
  background-position: center center;
}
.smile.small {
  width: calc(100% - 24px);
  height: 24px;
  background-size: 24px 24px;
  background-position-x: left;
  padding-left: 32px;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.smile.smile0 {
  background-image:url('../images/Smileys/smile-00.svg');
}
.smile.smile1 {
  background-image:url('../images/Smileys/smile-01.svg');
}
.smile.smile2 {
  background-image:url('../images/Smileys/smile-02.svg');
}
.smile.smile3 {
  background-image:url('../images/Smileys/smile-03.svg');
}
.smile.smile4 {
  background-image:url('../images/Smileys/smile-04.svg');
}
.smile.smile5 {
  background-image:url('../images/Smileys/smile-05.svg');
}
.smile.smiles {
  background-image:url('../images/Smileys/smileys.svg');
}
.tempHide {
  display: none;
}
.imgPadding {
  margin-top:0px;
  margin-bottom:10px;
  max-height:200px;
}

/* ONBOARDING IMG COMPONENT */

[kleur] {
  background-color: white;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
}
[kleur=Yellow] { background-color: rgb(255,181,0); }
[kleur=PurpleRed] { background-color: rgb(182,111,148); }
[kleur=PurpleBlue] { background-color: rgb(86,124,215); }
[kleur=Pink] { background-color: rgb(213,67,129); }
[kleur=Orange] { background-color: rgb(254,132,73); }
[kleur=DarkBlue] { background-color: rgb(35,149,181); }
[kleur=BrightGreen] { background-color: rgb(126,211,33); }
[kleur=BrightBlue] { background-color: rgb(74,202,255); }
[kleur=Blue] { background-color: rgb(43,177,215); }
[kleur] img {
  width:auto;
  height:auto;
  max-height:150px;
  max-width: 100%;
}
[tile] {
  display: inline-block;
  width:20px;
  height:20px;
  border-radius: 4px;
  background-color: white;
}
[tile=Geel] { background-color: rgb(255,181,0); }
[tile=Roodpaars] { background-color: rgb(182,111,148); }
[tile=Paarsblauw] { background-color: rgb(86,124,215); }
[tile=Roze] { background-color: rgb(213,67,129); }
[tile=Oranje] { background-color: rgb(254,132,73); }
[tile=Donkerblauw] { background-color: rgb(35,149,181); }
[tile="Fel groen"] { background-color: rgb(126,211,33); }
[tile=Helblauw] { background-color: rgb(74,202,255); }
[tile=Blauw] { background-color: rgb(43,177,215); }