html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.month-total-value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.cal {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 6px;
}

.cal th {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
}

.cal td {
  height: 138px;
  vertical-align: top;
  padding: 0;
}

.cal-empty {
  background: transparent;
}

.cal a.cal-day {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 6px 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  background: #fff;
}

.cal a.cal-day:hover {
  border-color: #0d6efd;
}

.cal a.selected {
  border: 2px solid #0d6efd;
}

.cal a.today {
  background: #f4f8ff;
}

.cal a.past {
  background: #f7f7f7;
  color: #666;
}

.cal a.future {
  background: #fff;
}

.cal a.cal-day.surplus {
  background: #e8f5e9;
}

.cal a.cal-day.deficit {
  background: #fdecea;
}

.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}

.cal-num {
  font-weight: 700;
}

.cal-meta {
  margin-top: auto;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.cal-qty {
  display: block;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.report-filter .form-label {
  font-size: 0.85rem;
  color: #555;
}