.calendar-title {
  font-size: 24px !important;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.calendar-heading {
  background-color: #0d6efd;
  color: white;
  padding: 1rem;
  font-size: 1.25rem;
  border-radius: 0.375rem;
  text-align: center;
  margin-bottom: 1rem;
}

.calendar-heading a {
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.calendar-heading a:hover {
  background-color: #0056b3;
}

.icon-link {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.icon-link:hover, .icon-link:focus-visible {
  transform: scale(1.2);
  opacity: 0.75;
}

.chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-height: 400px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.chat-header {
  padding: 0.5rem 0.75rem;
  background: var(--bs-tertiary-bg);
  border-bottom: 1px solid var(--bs-border-color);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  background: var(--bs-secondary-bg);
}

.chat-msg {
  display: flex;
  margin-bottom: 0.5rem;
}
.chat-msg.chat-msg-mine {
  justify-content: flex-end;
}
.chat-msg.chat-msg-mine .chat-bubble {
  background: var(--bs-success-bg-subtle);
}
.chat-msg:target .chat-bubble {
  outline: 2px solid var(--bs-warning);
}

.chat-bubble {
  max-width: 75%;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  overflow-wrap: anywhere;
}

.chat-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-success-text-emphasis);
}

.chat-quote {
  margin: 0.2rem 0 0.3rem;
  padding: 0.25rem 0.5rem;
  border-left: 3px solid var(--bs-success);
  border-radius: 0.25rem;
  background: var(--bs-tertiary-bg);
  font-size: 0.85rem;
}
.chat-quote div {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

.chat-reaction,
.chat-link {
  border: 0;
  background: none;
  padding: 0 0.25rem;
  border-radius: 0.75rem;
  color: var(--bs-secondary-color);
}

.chat-reaction.active {
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-body-color);
}

.chat-link:hover {
  text-decoration: underline;
}

.chat-time {
  margin-left: auto;
  color: var(--bs-secondary-color);
}

.chat-form {
  padding: 0.5rem 0.75rem;
  background: var(--bs-tertiary-bg);
  border-top: 1px solid var(--bs-border-color);
}
.chat-form textarea {
  resize: none;
  max-height: 8rem;
  field-sizing: content;
}

.chat-reply-preview:not(.d-none) {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.monthly-fees-table td.fee {
  padding: 0.25rem 0;
  text-align: center;
}
.monthly-fees-table td.fee a {
  display: block;
  font-weight: bold;
}
.monthly-fees-table td.fee .fee-date {
  display: block;
  margin-bottom: 0.25rem;
}
.monthly-fees-table td.fee.fee-paga {
  background-color: rgb(138, 233, 138);
}
.monthly-fees-table td.fee.fee-a-pagar {
  color: rgb(37, 37, 37);
  background-color: rgb(255, 255, 255);
}
.monthly-fees-table td.fee.fee-atrasada {
  background-color: rgb(236, 160, 167);
}
