body {
  font-family: sans-serif;
  padding: 0.3rem;
  margin: 0;
  background-color: #f0f0d3;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.nav a {
  flex: 0 0 auto;
}

.nav input[type="text"] {
  flex: 1 1 auto;
  max-width: 50%;
  text-align: center;
}

.nav button {
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  white-space: nowrap;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 1rem;
}

h1 {
  text-align: center;
}

th,
td {
  border: 1px solid #999;
  padding: 0.2rem 0.3rem;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.no-schedule {
  text-align: left;
  padding-left: 0.5em;
}

th {
  background-color: #f0f0f0;
}

.sunday {
  background-color: #ffdddd;
}

.saturday {
  background-color: #dceeff;
}

.weekday {
  background-color: #fdfdf8;
}

#info-popup {
  display: none;
  position: absolute;
  background: #ffffcc;
  border: 1px solid #ccc;
  padding: 0.6em 0.8em;
  font-size: 0.9rem;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 100;
  text-align: left;
  line-height: 1.4;
  min-width: 180px;
  border-radius: 0.5em;
}

#info-popup::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 1em;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #ffffcc transparent;
  z-index: -1;
}

.flatpickr-input {
  font-size: 1.6rem !important;
  padding: 0.4rem 0.8rem !important;
  border: none !important;
  background-color: #f0f0d3 !important;
  border-radius: 0.4rem !important;
  box-shadow: none !important;
  width: auto !important;
}

@media (max-width: 480px) {
  .nav {
    gap: 0.2rem;
  }

  .nav input[type="text"] {
    max-width: 100%;
    font-size: 1.3rem !important;
  }

  .nav button {
    font-size: 1rem;
    padding: 0.3rem;
  }
}
