.mb-4 {
  margin-bottom: 0.5rem !important;
}
.card-title {
  margin-bottom: 0.1em;
}
.card {
  border: none !important;
  box-shadow: none !important;
}
.card .table-responsive:first-of-type {
  border: none;
}
#goals-table th:nth-child(n+2):nth-child(-n+9),
#goals-table td:nth-child(n+2):nth-child(-n+9) {
  min-width: 3em;
}
#goals-table td[id*="target"], #goals-table td[id*="><"] {
  color: #ffffff;
}
#goals-table td[id*="goal"], #goals-table td[id*="total"] {
  font-weight: bold;
}

#goals-table td:nth-child(12) {
  text-align: center;
}
#goals-table td:has(.goals-cell-box),
#working-table td:has(.goals-cell-box),
#calories-today-table td:has(.goals-cell-box) {
  position: relative;
  min-height: 2.5em;
}
#habit-stacker-nav-pills {
  margin-left: 10px;
}
#habit-stacker-nav-pills .nav-link {
  background-color: #6c757d;
  color: #fff;
  border-radius: 8px;
  margin-right: 0.25rem;
}
#habit-stacker-nav-pills .nav-link:hover {
  background-color: #5a6268;
  color: #fff;
}
#habit-stacker-nav-pills .nav-link.active {
  background-color: #495057;
  color: #fff;
}

.goals-cell-box {
  position: absolute;
  top: 2.5%;
  left: 2.5%;
  width: 95%;
  height: 95%;
  min-width: 1.25em;
  min-height: 1.25em;
  background-color: #ffeb3b;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.goals-cell-box-target {
  background-color: #2196f3;
}
.goals-cell-box-plusminus {
  background-color: #9e9e9e;
}
#calories-today-card .card-body,
#working-card .card-body {
  text-align: left;
}
#calories-today-card .table-responsive,
#working-card .table-responsive {
  width: auto;
}
#calories-today-card #submit-todays-calories-btn {
  display: block;
}
.table-responsive {
  margin-bottom: 0;
}
.table-responsive .table {
  margin-bottom: 0;
}
.table-responsive + .mt-2 {
  margin-top: 0;
  padding-top: 0;
}
#stopwatch-start,
#stopwatch-pause,
#stopwatch-reset,
#stopwatch-submit {
  margin-bottom: 0.3em;
}
@media (max-width: 800px) {
  #flex-modules-container-stopwatch {
    margin-top: 50px !important;
  }
  #stopwatch-start,
  #stopwatch-pause,
  #stopwatch-reset,
  #stopwatch-submit {
    width: 15em;
    align-self: left;
  }
}
.flex-modules-container {
  display: flex;
  flex-direction: column;
}
@media (min-width: 800px) {
  .flex-modules-container {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .flex-modules-container {
    flex: 1;
    margin-bottom: 0;
  }
}
#calories-today-table,
#working-table {
  width: 15em;
  table-layout: fixed;
}
#calories-today-table tbody tr:not(:last-child) {
  cursor: pointer;
}
#calories-today-table tbody tr:last-child {
  background-color: #8FCAFA;
  font-weight: bold;
}
#calories-today-table th:nth-child(1),
#calories-today-table td:nth-child(1),
#working-table th:nth-child(1),
#working-table td:nth-child(1) {
  width: 5em;
}
#calories-today-table th:nth-child(2),
#calories-today-table td:nth-child(2),
#working-table th:nth-child(2),
#working-table td:nth-child(2) {
  text-align: center;
  width: 3em;
}
