@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
  padding: 0;
  background-image: url('logo.jpg');
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 350px;
}

#menu-top {
  display: flex;
  border-bottom: 6px solid grey;
  box-shadow: 0px 5px 8px #888888;
}
  #menu-top div {
    border-right: 2px solid grey;
    background-color: lightgrey;
  }
  #menu-top a, #menu-top a:visited, #menu-top a:link, #menu-top a:active {
    display: block;
    color: grey;
    height: inherit;
    padding: 10px;
  }
  #menu-top a:hover {
    background-color: grey;
    color: white;
  }

  #menu-top div:last-of-type {
    border: none;
  }

#page, #cont {
  /* min-width: 1350px; */
}

#welcome-admin span {
  color: white;
  background-color: #e33443;
  border-radius: 10px;
  padding: 10px;
}

#welcome-admin a {
  color: grey;
}

#welcome-admin a:hover {
  color: lightgrey;
}

#top h2 span, #top p span {
  font-size: 1.2em;
  color: grey;
  background-color: lightgrey;
  padding: 4px;
}

#top-mode {margin: 20px 0;}

span.red, span.green {
  color: white;
  padding: 4px;
}

span.red {
  background-color: #e33443;
}

span.green {
  background-color: #67d670;
}

div#prevAfterWeek a {
  display: inline-block;
  color: black;
  font-size: 1.1em;
  text-decoration: none;
  height: 30px; line-height: 30px;

  background-color: grey;
  font-weight: bold; padding: 0 4px 4px 4px;
  border-radius: 8px;
}

div#prevAfterWeek a:hover {
  background-color: lightgrey;
}

div#prevAfterWeek a span {
  font-size: 1.4em;
}

#cont {
  display: -webkit-flex;
  display: flex;
  align-items: stretch;
  font-family: 'Open Sans', sans-serif;
}

span.modeSwitchLink a {
  /* font-size: 70%; */
  color: red;
}
span.modeSwitchLink a:hover {
  color: lightgrey;
}

div.users-list {
  min-width: 160px;
}

div.users-list .user {
  background-color: #c2edea;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.8em;
  padding: 10px;
}

div.users-list .user:first-of-type {
  background-color: transparent;
}

div.users-list div.is-note {
  background-color: #ebcc7a;
  color: #e33443;
}

div#week-n {
  line-height: 50px;
  background-color: black;
  color: white;
  font-weight: bold;
}

div.days {
  border-collapse: collapse;
  border: 1px solid black;
  /* flex: 1 1 0px; */
  flex-grow: 1;
}

div.days div:first-child {
  height: 50px;
}

div.days div {
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  /* padding: 10px; */
  word-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

div.days .date {
  background-color: #edcbc2;
  font-weight: bold;
  font-size: 0.7rem; text-align: center; line-height: 50px;
  overflow: hidden;
  padding: 10px;
}
  div.days .date span {
    color: grey;
    background-color: lightgrey;
    padding: 4px;
    border: 1px solid grey;
  }

div.days .u {
  min-width: 30px;
  background-color: #d5dce6;
  height: 50px; /* 30 + 20 paddings */
}

div.days .u input {
  display: block;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding-left: 4px;
  padding-right: 4px;
}

/* fix firefox uglyness */
@-moz-document url-prefix() {
  div.days .u input {
    overflow: hidden;
  }
}

div.user {
  height: 30px;
}

div.days div.void {
  background-color: #f5f6f7 !important;
}

div.days .is-note {
  min-height: 100px;
  max-height: 120px;
}

/* fix firefox uglyness */
@-moz-document url-prefix() {
  div.days .is-note {
    min-height: 101px;
  }
}

div.days .u.is-note {
  min-height: initial;
  height: 120px;
}

div.days .is-note textarea {
  display: block; width: auto;
  font-family: 'Open Sans', sans-serif;
  height: 100%;
  width: 100%;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;
  padding: 4px;
}

div.days div.ferie input {
  background-color: #e33443;
  color: white;
}

div.users-list {
  /* flex: 0.8 2 0px; */
}

#week-n {

}

#bottom-table {
  margin-top: 20px;
  border-top: 1px solid grey;
  padding-bottom: 100px;
}

#update-info {
  margin-left: 20px;
}

#update-info span {
  font-weight: bold;
  color: white;
  background-color: grey;
  border-radius: 10px;
  padding: 5px;
}

#save, div.save, button.save {
  display: block; width: 100px; height: 30px; line-height: 30px; background: gray; border: 3px solid black;
  text-align: center; cursor: pointer; text-transform: uppercase; margin: 20px 0;
}

#save:hover, div.save:hover, button.save:hover {
  background-color: white;
}

div.saveData {
  /* background: red; */
}

div.saveData::after {
  clear: both; display: block; content: "";
}

div.saveData .save, div.saveData div.ajaxResp {
  margin: 0; float: left; height: 30px; display: block;
}

div.saveData div.ajaxResp {
  margin-left: 10px; height: 30px; border: 3px solid white;
}

div.saveData div.ajaxResp span {
  display: block; height: inherit;  line-height: 30px; position: relative; top: -4px;
}

#clone-fixed-week {
  position: fixed;
  width: 100%;

  bottom: 0;
}

#clone-fixed-week div {
  float: left;
}

/* mobile */

@media screen and (max-width: 992px) {

  body {
    background-size: 150px;
  }

  div.user {
    font-size: 0.8em;
  }
}
