.habits__calendar {
  width: 100%;
}
@media screen and (min-width: 568px) {
  .habits__calendar {
    width: auto;
    margin: 0 0 0 0;
  }
}
.habits__calendar .table .col {
  justify-content: center;
  margin: 1px;
}

.habits__list__item__date {
  width: 35px;
  max-width: 35px;
  height: 35px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  background-color: #F6F6F6;
  border: 2px solid #F9F9F9;
}
.habits__list__item__date.old {
  opacity: 0.4;
}
.habits__list__item__date.old.active {
  opacity: 0.6;
}
.habits__list__item__date.active {
  background-color: #89aae5;
  border-color: #89aae5;
}
.habits__list__item__date.active-more {
  background-color: #5574ce;
  border-color: #5574ce;
}
.habits__list__item__date.active-more {
  background-color: #394e8a;
  border-color: #394e8a;
}
.habits__list__item__date.current {
  background-color: darkred;
  border-color: darkred;
  color: white;
  font-weight: 700;
}

.weekdays div {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  background: none;
  border: 0;
}

.habits__scoreboard {
  max-height: 100vh;
  overflow-y: scroll;
}
@media screen and (min-width: 568px) {
  .habits__scoreboard {
    width: 310px;
    margin: 0 0 0 0;
  }
}
.habit-active .habits__scoreboard {
  display: none;
}
.habits__scoreboard th, .habits__scoreboard td {
  text-align: center;
}
.habits__scoreboard .max {
  color: rgb(6, 180, 6);
}
.habits__scoreboard .min {
  color: red;
}
.habits__scoreboard .col {
  justify-content: center;
  display: flex;
}
.habits__scoreboard .table {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 5px 12.5px;
}
.habits__scoreboard .table .col:nth-of-type(1) {
  min-width: 60px;
  width: 60px;
  justify-content: space-around;
}
.habits__scoreboard .table .col:nth-of-type(2) {
  width: 70px;
  min-width: 50px;
}
.habits__scoreboard .table .col:nth-of-type(3) {
  min-width: 50px;
  width: 50px;
}
.habits__scoreboard .table .col:nth-of-type(4) {
  min-width: 120px;
  width: 120px;
}

.habits__form {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 5px;
}
.habits__form__wrapper {
  position: fixed;
  bottom: 0;
  z-index: 1;
  padding: 5px 0;
  box-shadow: 0 0 10px lightgrey;
  background-color: white;
}
.habits__form #habitName {
  padding: 10px;
  margin-right: -25px;
  width: 100%;
}
.habits__form #habitPeriod,
.habits__form #habitPriority {
  width: 50px;
  border-right: none;
  border-radius: 0;
}
.habits__form #habitInfo {
  border-radius: 0;
}
.habits__form #habitPriority {
  width: 75px;
}
.habits__form #habitCreate {
  margin-left: -25px;
  margin-right: 5px;
}

#links {
  display: flex;
}
#links .menu-button {
  width: 40px;
  height: 40px;
}
#links .menu-button .fa-times {
  display: none;
}
#links .menu-button.active .fa-bars {
  display: none;
}
#links .menu-button.active .fa-times {
  display: block;
}
#links .menu-block {
  width: calc(100% - 45px);
  background: white;
  text-align: right;
}
#links a:first-child .button {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
#links a:last-child .button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
#links a:not(:first-child) .button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
#links a:not(:last-child) .button {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

select, input {
  height: 40px;
  border-radius: 20px;
}

.habits__info {
  border-bottom: 2px solid black;
  padding: 5px 15px;
}

.info-item__name {
  font-weight: 700;
}

.block-menu {
  padding: 0 5px;
  height: 32px;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}
.block-menu input {
  margin-left: 5px;
  height: 85%;
}

.button {
  border: 1px solid gray;
  border-radius: 20px;
  min-width: 90px;
  height: 40px;
}

.small-button {
  height: 25px;
  line-height: 25px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid #bbbbbb;
  padding: 0 7px;
  width: -moz-fit-content;
  width: fit-content;
}

.list-button {
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid #bbbbbb;
  padding: 0 7px;
}

[hidden], .hide {
  display: none;
}

svg, video {
  display: block;
  vertical-align: middle;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.justify-around {
  justify-content: space-around;
}

.justify-between {
  justify-content: space-between;
}

.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.text-center {
  text-align: center;
}

.underline {
  text-decoration: underline;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.green {
  color: rgb(6, 180, 6);
}

.red {
  color: red;
}

.yellow {
  color: #ffc800;
}

.bg-gray {
  background-color: #ececec;
}

.text-w700 {
  font-weight: 700;
}

.top-line {
  border-top: 2px solid black;
}

.bottom-line {
  border-bottom: 2px solid black;
}

input[type=text], input[type=number] {
  border: 1px solid gray;
  padding: 5px;
  height: 40px;
}
input[type=text].edit, input[type=number].edit {
  height: 24px;
}

input[type=datetime-local] {
  font-size: 12px;
}

.edit {
  display: none;
}
.editing .edit {
  display: inline;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

th, tr, td {
  display: flex;
}

.row {
  display: flex;
}

.row, .col {
  display: flex;
  align-items: center;
}

.color-rect {
  width: 22px;
  height: 18px;
  border: 1px solid black;
  margin: 0 2.5px;
}

.logo-link {
  line-height: 0;
  margin-right: 10px;
}

.logo-image {
  max-width: 40px;
}

#links {
  margin-right: 10px;
}

.habits__list__main .table {
  padding-bottom: 50px;
  position: relative;
}
.habits__list__main .table .col {
  display: flex;
  align-items: center;
  line-height: 1.2;
  width: 65px;
  flex-basis: 65px;
  text-align: center;
  justify-content: center;
}
.habits__list__main .table .col.habits__list__item__buttons {
  min-width: 75px;
  width: 75px;
  flex-basis: 75px;
  margin-right: 10px;
  justify-content: flex-start;
  padding: 0 5px;
}
.habits__list__main .table .col.habits__list__item__name {
  min-width: 30%;
  width: 40%;
  flex-basis: 40%;
  text-align: left;
  justify-content: flex-start;
}
.habits__list__main .table .col.habits__list__item__period {
  min-width: 65px;
  width: 65px;
  flex-basis: 65px;
}
.habits__list__main .table .col.habits__list__item__priority {
  min-width: 71px;
  width: 71px;
  flex-basis: 71px;
  text-align: left;
  justify-content: flex-start;
}

.habits__list__item {
  height: 35px;
  position: relative;
  /* Tooltip text */
  /* Show the tooltip text when you mouse over the tooltip container */
}
.habits__list__item .warning {
  margin-left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.habits__list__item.warning-1 {
  background-color: #ffcaca;
}
.habits__list__item.warning-2 {
  background-color: #ffeed2;
}
.habits__list__item.warning-3 {
  background-color: #e0ffd1;
}
.habits__list__item.caption {
  height: auto;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: white;
}
.habits__list__item.habit-failed {
  display: none;
}
.habits__list__item.habit-done {
  background-color: rgba(211, 211, 211, 0.2);
}
.habits__list__item.habit-done .habits__list__item__name {
  color: gray;
}
.habits__list__item.habit-done .habits__list__item__name .text {
  -webkit-text-stroke-color: rgba(128, 128, 128, 0.5);
  color: rgba(128, 128, 128, 0.8);
  -webkit-text-stroke-width: 1px;
  filter: opacity(0.5);
}
.habits__list__item.habit-current .text {
  -webkit-text-stroke-color: rgba(6, 180, 6, 0.25);
  color: rgba(6, 180, 6, 0.7);
  -webkit-text-stroke-width: 1px;
}
.habits__list__item.habit-past .text {
  -webkit-text-stroke-color: rgba(205, 20, 20, 0.3);
  color: rgba(225, 20, 20, 0.7);
  -webkit-text-stroke-width: 1px;
}
.habits__list__item.active {
  background-color: #e9e9e9;
  border-radius: 15px;
  font-weight: 700;
}
.habits__list__item__buttons {
  display: flex;
}
.habits__list__item__buttons .list-button {
  margin-right: 5px;
}
.habits__list__item__name svg {
  display: inline;
  width: 16px;
}
.habits__list__item__name .text {
  display: inline;
}
.habits__list__item__name .text:hover {
  text-decoration: underline;
  cursor: pointer;
}
.habits__list__item .habitLog {
  display: none;
}
.habits__list__item .btn-habit-info {
  display: none;
  padding: 0;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  margin-left: 5px;
}
.habits__list__item .btn-habit-info svg {
  margin: 0;
  width: 11px;
  height: 11px;
}
.habits__list__item .btn-habit-info span {
  display: none;
  background-color: white;
  border: 1px solid lightgray;
  padding: 7.5px;
  font-size: 10px;
  line-height: 1.2;
  max-width: 250px;
  min-width: 125px;
  z-index: 1;
}
.habits__list__item .btn-habit-info:hover span {
  display: flex;
}
.habits__list__item.has-info .btn-habit-info {
  display: flex;
}
.habits__list__item .btn-habit-edit svg {
  width: 10px;
  fill: black;
}
.habits__list__item .edit-habit-period,
.habits__list__item .edit-habit-priority {
  display: none;
  width: 25px;
}
.habits__list__item .edit-habit-project {
  width: 40px;
}
.habits__list__item .btn-habit-remove {
  display: none;
  pointer-events: none;
  opacity: 0.2;
}
.habits__list__item.habit-done .btn-habit-remove {
  display: block;
  pointer-events: all;
  opacity: 1;
}
.habits__list__item.habit-done .btn-habit-fail {
  display: none;
}
.habits__list__item.habit-failed {
  display: none;
}
.habits__list__item.active .btn-habit-fail {
  display: none;
}
.habits__list__item.editing .btn-habit-add,
.habits__list__item.editing .btn-habit-remove, .habits__list__item.active .btn-habit-add,
.habits__list__item.active .btn-habit-remove {
  display: none;
}
.habits__list__item.editing .warning,
.habits__list__item.editing .text,
.habits__list__item.editing .project-name,
.habits__list__item.editing .btn-habit-info, .habits__list__item.adding .warning,
.habits__list__item.adding .text,
.habits__list__item.adding .project-name,
.habits__list__item.adding .btn-habit-info {
  display: none;
}
.habits__list__item:not(.active) .btn-habit-edit {
  display: none;
}
.habits__list__item.editing .text-period,
.habits__list__item.editing .text-priority {
  display: none;
}
.habits__list__item.editing .edit {
  display: inline;
}
.habits__list__item.editing .list-button .info-text {
  display: none;
  min-width: 170px;
}
.habits__list__item.editing .edit-habit-info {
  top: -30px;
  position: absolute;
  width: 300px;
}
.habits__list__item:not(.editing) .habitDelete {
  display: none;
}
.habits__list__item.adding .habitLog {
  display: inline;
}
.habits__list__item .priority {
  font-size: 14px;
  letter-spacing: -2px;
  font-weight: 400;
}
.habits__list__item .project-name {
  margin-left: 5px;
  font-size: 10px;
  border-radius: 20px;
  background-color: #eaeaea;
  padding: 3px 5px;
  opacity: 0.7;
}
.adding .habits__list__item .project-name {
  display: none;
}
.habits__list__item .tooltip {
  position: relative;
}
.habits__list__item .tooltip .tooltiptext {
  visibility: hidden;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  bottom: 100%;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}
.habits__list__item .tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}
.habits__list__item .tooltip:hover .tooltiptext {
  visibility: visible;
}

.habits__list__main .table {
  padding-bottom: 50px;
  position: relative;
}

.habits__list {
  position: relative;
  background-color: #fcfcff;
  max-width: 100%;
  /* width */
  /* Track */
  /* Handle */
  /* Handle on hover */
}
.habits__list::-webkit-scrollbar {
  width: 10px;
}
.habits__list::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.habits__list::-webkit-scrollbar-thumb {
  background: #888;
}
.habits__list::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.habits__list__main {
  height: 100%;
}
@media screen and (min-width: 568px) {
  .habits__list__main {
    height: 100vh;
    overflow-y: scroll;
  }
}
.habits__list__item + .habits__list__item {
  margin-top: 3px;
}
.habits__list .date {
  position: absolute;
  bottom: -15px;
}

.p-1,
.p-2,
.p-3 {
  color: #06b406;
}

.p-4,
.p-5,
.p-6 {
  color: #e0a822;
}

.p-7,
.p-8,
.p-9 {
  color: #d40808;
}

#main .habits__log {
  display: none;
  height: 100%;
  overflow: scroll;
}
@media screen and (min-width: 568px) {
  #main .habits__log {
    width: 310px;
    margin: 0 0 0 0;
    padding: 0;
  }
}
#main .habits__log .table {
  padding: 12.5px 0;
  width: 100%;
}
#main .habits__log .table > div {
  padding: 2px 12.5px;
}
.habit-active #main .habits__log {
  display: flex;
}
#main .habits__log .log_item {
  display: flex;
  flex-wrap: wrap;
  line-height: 1.5;
  width: 100%;
}
#main .habits__log .log_item input {
  width: 100%;
}
#main .habits__log .log_item.odd {
  background-color: #ececec;
}
#main .habits__log .log_date {
  color: gray;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 2px;
}
#main .habits__log .logRemove {
  display: none;
  font-size: 12px;
  font-weight: 700;
  margin-left: 5px;
  padding: 0 5px;
}
#main .habits__log .editing .logRemove {
  display: inline;
}
#main .habits__log .log_text {
  font-size: 14px;
  margin-top: 1px;
}
#main .habits__log .editing .log_text {
  display: none;
}
#main .habits__log .log_add {
  margin-left: 5px;
}
#main .habits__log .editing .log_add {
  display: none;
}
#main .habits__log .empty {
  vertical-align: top;
}

.main {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 0;
}
@media screen and (min-width: 568px) {
  .main {
    font-size: 16px;
    padding: 0;
  }
}
.main .panel {
  display: flex;
}

.journal .editing .text {
  display: none;
}
.journal__list__item {
  display: grid;
  grid-template-columns: 180px 180px 85px auto 30px;
  gap: 5px;
}
.journal__list__item.bordered {
  border-top: 3px solid black !important;
}
.journal .col {
  text-align: center;
}
.journal .col.record-date-to {
  justify-content: flex-end;
}
.journal .col.record-date-to .text {
  min-width: 60px;
  min-height: 24px;
}
.journal .col.record-duration {
  justify-content: flex-end;
}
.journal .col.record-name {
  justify-content: center;
}
.journal__form {
  display: flex;
}

.habits {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 0;
}
@media screen and (min-width: 568px) {
  .habits {
    font-size: 16px;
    padding: 0;
  }
}
.habits #links .menu-block {
  position: absolute;
  left: 0;
}

.money .menu-add input {
  display: none;
}
.money .menu-add.adding input {
  display: block;
}

#main .graph {
  display: none;
  position: absolute;
  background-color: white;
  z-index: 1;
  border: 2px solid black;
  height: 100vh;
  width: 100%;
  top: 0;
  left: 0;
  overflow-x: scroll;
}
#main .graph.compact tr .data {
  display: none;
}
#main .graph.compact tr .data.value {
  white-space: nowrap;
}
#main .graph.compact tr:hover .data {
  display: block;
}
#main .graph .data {
  font-size: 8px;
  position: relative;
}
#main .graph .data.date {
  position: absolute;
  bottom: 0;
  transform: unset;
  text-align: center;
  width: 29px;
  color: black;
}
#main .graph .green::before {
  background-color: rgba(148, 222, 39, 0.65);
}
#main .graph .red::before {
  background-color: rgba(255, 24, 24, 0.29);
}
#main .graph tr {
  min-width: 30px;
  border-right: 1px solid white;
}
#main .graph tr.month-start td::before {
  border-left: 2px solid black;
}
#main .graph td {
  z-index: 10;
}
#main .graph td::before {
  background-color: rgba(140, 140, 140, 0.65);
}
#main .graph #settings {
  z-index: 25;
  position: fixed;
  background-color: white;
  border: 1px solid black;
  padding: 5px;
  top: 0;
}
#main .graph #separator,
#main .graph #cursor {
  position: fixed;
  width: 100%;
  height: 1px;
  top: calc(50vh - 7.5px);
  background-color: black;
}

.infoGraph svg {
  width: 9px;
  height: auto;
}
.infoGraph:hover .graph {
  display: block;
}

.money #main {
  flex-wrap: nowrap;
  padding-left: 10px;
}
.money .overview {
  width: 70%;
}
.money .trading {
  width: 30%;
}
.money .editing .text {
  display: none;
}
.money .date_to .text {
  min-width: 60px;
  min-height: 24px;
}
.money-item {
  display: grid;
  grid-template-columns: 120px 8% minmax(24%, auto) 16% 10% minmax(190px, 26%);
  text-align: left;
}
.money-item > * {
  padding: 0 5px;
  height: 32px;
  display: flex;
  align-items: center;
}
.money-item.bordered {
  border-top: 3px solid black !important;
}
.money-item.first {
  color: #be0000;
  font-weight: 700;
}
.money-item.last {
  order: 1;
}
.money-item .list-button {
  margin-left: 5px;
}
.money-item .button-hidden {
  display: none;
}
.money-item:hover .button-hidden {
  display: inline;
}
.money-item .money-edit {
  display: none;
}
.money-item .money-edit .edit {
  max-width: 105px;
}
.money-item.editing .money-edit {
  display: inline;
}
.money-item.editing .money-subject,
.money-item.editing .money-value {
  display: none;
}
.money .trading-item {
  display: grid;
  grid-template-columns: 40% 20% 40%;
  text-align: left;
}
.money .trading-item > * {
  padding: 0 5px;
  height: 32px;
  display: flex;
  align-items: center;
}
.money #links {
  display: flex;
  width: 100%;
  justify-content: left;
  order: 3;
}
.money #links .menu-block {
  text-align: left;
}
.money .money-header,
.money .money-footer {
  font-weight: 700;
  text-align: center;
}
.money .money-footer {
  order: 2;
}
.money #money-header {
  position: fixed;
  background-color: white;
  box-shadow: 0px 3px 10px -5px rgba(0, 0, 0, 0.33);
  width: calc(70% - 10px);
}
.money #reserves {
  margin-top: 60px;
}

.stocks #main {
  flex-wrap: nowrap;
  margin-left: 10px;
}
.stocks .first-block {
  margin-top: 58px;
}
.stocks .editing .text {
  display: none;
}
.stocks .date_to .text {
  min-width: 60px;
  min-height: 24px;
}
.stocks-item {
  display: grid;
  grid-template-columns: 15vw 15vw 7vw 10vw 10vw 10vw 10vw 23vw;
  text-align: left;
}
.stocks-item.bordered {
  border-top: 3px solid black !important;
}
.stocks-item.first {
  color: #be0000;
  font-weight: 700;
}
.stocks-item.last {
  order: 1;
}
.stocks-item > * {
  padding: 5px;
}
.stocks-item .list-button {
  display: none;
  margin-left: 5px;
}
.stocks-item:hover .list-button {
  display: inline;
}
.stocks-item .money-edit {
  display: none;
}
.stocks-item.editing .money-edit {
  display: inline;
}
.stocks #links {
  display: flex;
  width: 100%;
  justify-content: left;
  order: 3;
}
.stocks #links .menu-block {
  text-align: left;
}
.stocks-header, .stocks-footer {
  font-weight: 700;
  text-align: center;
}
.stocks-header {
  position: fixed;
  background-color: white;
  box-shadow: 0px 3px 10px -5px rgba(0, 0, 0, 0.33);
}
.stocks-footer {
  order: 2;
}
.stocks .overview,
.stocks .trading {
  width: 50%;
}
.stocks-about span {
  display: none;
}

.growing .editing .text {
  display: none;
}
.growing .header {
  font-weight: 700;
}
.growing__list__item {
  display: grid;
  grid-template-columns: 180px 180px 85px auto 30px;
  gap: 5px;
}
.growing__list__item.bordered {
  border-top: 3px solid black !important;
}
.growing__list__item.not-relevant {
  color: gray;
}
.growing__list__item.hidden {
  display: none;
}
.growing .plant-item.bordered {
  border-top: 3px solid black !important;
}

.projects .table .project-id {
  min-width: 20px;
  justify-content: center;
}
.projects .table .project-name {
  min-width: 85px;
  width: 85px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.projects .table .project-info {
  min-width: 150px;
}
.projects .table .project-style {
  font-size: 11px;
  display: flex;
  align-items: center;
}
.projects .row {
  display: flex;
  align-items: center;
}
.projects .row > div {
  margin: 0 5px;
}
.projects .project-item input {
  height: 30px;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: "Nunito", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  background-color: transparent;
  color: inherit;
  text-decoration: inherit;
}

*, :after, :before {
  box-sizing: border-box;
  border: 0 solid transparent;
}

.main {
  width: 100%;
  display: flex;
  flex-flow: column;
}
@media screen and (min-width: 568px) {
  .main {
    width: calc(100% - 323px);
  }
}

.caption {
  font-weight: 700;
}
