.simple-calendar {
  table {
    -webkit-border-horizontal-spacing: 0px;
    -webkit-border-vertical-spacing: 0px;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid rgb(221, 221, 221);
    border-collapse: collapse;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  tr {
    border-collapse: collapse;
  }

  th {
    padding: 6px;
    border-bottom: 2px solid rgb(221, 221, 221);
    border-collapse: collapse;
    border-left: 1px solid rgb(221, 221, 221);
    border-right: 1px solid rgb(221, 221, 221);
    border-top: 0px none rgb(51, 51, 51);
    box-sizing: border-box;
    text-align: left;
  }

  td {
    padding: 6px;
    vertical-align: top;
    width: 14%;

    border: 1px solid #ddd;
    border-top-color: rgb(221, 221, 221);
    border-top-style: solid;
    border-top-width: 1px;
    border-right-color: rgb(221, 221, 221);
    border-right-style: solid;
    border-right-width: 1px;
    border-bottom-color: rgb(221, 221, 221);
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-left-color: rgb(221, 221, 221);
    border-left-style: solid;
    border-left-width: 1px;
  }

  .calendar-heading nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 3px;
  }

  .calendar-heading a {
    border: 1px solid silver;
    margin: 2px;
    padding: 8px;
  }

  .day {
    height: 80px;
  }

  .wday-0 {}
  .wday-1 {}
  .wday-2 {}
  .wday-3 {}
  .wday-4 {}
  .wday-5 {}
  .wday-6 {}

  .today {
    background: #FFFFC0
  }

  .past {}
  .future {}

  .start-date {}

  .prev-month {
    background: #DDD;
  }
  .next-month {
    background: #DDD;
  }
  .current-month {}

  .has-events {}
}

.calendar-title {
  font-size: 2.1rem;
}

.event-small {
  font-size: 0.85rem;
  font-weight: bold;
}

[data-bs-theme=light] {
  .wday-0 {
    background: #FEE !important;
  }

  .wday-6 {
    background: #EFE !important;
  }
}

[data-bs-theme=dark] {
  .prev-month,
  .next-month {
    background: #777 !important;
  }

  .wday-0 {
    background: #C88 !important;
  }

  .wday-6 {
    background: #494 !important;
  }
}

.calendar-entry {
  background: var(--bs-info);
  color: white !important;
  text-transform: none !important;
  text-decoration: none !important;
  line-height: 1rem;
  margin-bottom: 4px;
  padding-top: 4px;
}

.calendar-duration {
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 0.8rem;
  margin: 0 !important;
}

/* Make Trix attachments visible */
trix-editor .attachment {
    display: inline-block;
    background: #e8f0fe;
    border-radius: 20px;
    padding: 0 8px;
    margin: 0 2px;
}

/* Style for mentions specifically */
trix-editor .mention {
    color: #1a73e8;
    font-weight: 500;
}

/* Ensure the mention text is visible when editing */
trix-editor .attachment .mention {
    color: inherit;
}

.tribute-container {
  z-index: 9999 !important;
  position: absolute !important;
}

.tribute-container ul {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tribute-container ul li {
  padding: 6px 12px;
  cursor: pointer;
}

.tribute-container ul li.highlight,
.tribute-container ul li:hover {
  background-color: #0d6efd; /* Bootstrap primary */
  color: white;
}
