body {
  max-width: 100vw;
  margin: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  color: #5a3e36;
  background-color: #f8f6f2;
}

.header {
  width: 100%;
  max-height: 200px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.header img {
  display: block;
  width: 100%;
  height: auto; /* maintain aspect ratio */
  max-height: 200px;
  object-fit: contain;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  background-color: #f0eae4;
  border-bottom: 2px solid #ccc;
}

.tab-button {
  flex: 1;
  padding: 12px;
  font-weight: bold;
  color: #5a3e36;
  text-align: center;
  cursor: pointer;
  outline: none;
  background-color: #f0eae4;
  border: none;
}

.tab-button.active {
  background-color: #d4bfa8;
}

.content {
  box-sizing: border-box;
  padding: 1em;
}

.month-control {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 1em;
  margin-bottom: 1em;
}

.month-button {
  padding: 0.5em 1em;
  margin: 0.3em;
  color: #5a3e36;
  cursor: pointer;
  background-color: #f0eae4;
  border: none;
  border-radius: 4px;
}

.month-button.active {
  font-weight: bold;
  background-color: #d4bfa8;
}

/*.month-dropdown {
    display: none;
    padding: 0.5em 1em;
    font-size: 16px;
    color: #5a3e36;
    background-color: #f0eae4;
    border: 1px solid #d4bfa8;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}*/
.month-dropdown {
  display: none;
  width: 90%;
  padding: 0.5em 1em;
  padding-right: 2.5em; /* Makes space for the arrow */
  font-size: 16px;
  color: #5a3e36;
  text-align: center;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #f0eae4;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a3e36' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75em center;
  background-size: 12px;
  border: 1px solid #d4bfa8;
  border-radius: 6px;
}

table {
  width: 100%;
  margin-top: 0.5em;
  word-wrap: break-word;
  table-layout: fixed;
  border-collapse: collapse;
}

td {
  padding: 0.75em;
  word-break: break-word;
  border-bottom: 1px solid #ccc;
}

tr:nth-child(odd) {
  background-color: #f4efea;
}

tr:nth-child(even) {
  background-color: #e7dfd8;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip-content {
  position: absolute;
  top: 25%;
  left: 105%;
  z-index: 1;
  visibility: hidden;
  width: max-content;
  max-width: 200px;
  padding: 5px;
  font-size: 12px;
  color: #fff;
  text-align: left;
  background-color: #333;
  border-radius: 4px;
}

.tooltip:hover .tooltip-content {
  visibility: visible;
}

.tooltip.tooltip-active .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.tooltip-total {
  border-top: #cccccc solid 1px;
}

@media (max-width: 600px) {
  .month-tabs {
    display: none;
  }

  .month-dropdown {
    display: block;
    margin: 0 auto 1em auto;
  }

  /*.tab-button {
        flex: 1 0 100%;
    }*/
}
