/* Calendario (grid ul.cal de Redmine 7).
   Los temas labpro reemplazan application.css y su
   @import a /stylesheets/application.css no resuelve en esta instalación,
   por lo que el grid se define aquí con colores explícitos (sin --oc-*). */
ul.cal {
  list-style: none;
  inline-size: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 2rem repeat(7, 1fr);
  margin: 0 0 6px 0;
  border: 1px solid #ced4da;
  border-spacing: 0;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(33, 37, 41, 0.05);
}

.cal .calhead {
  background-color: #e9ecef;
  text-align: center;
  font-weight: bold;
  padding: 4px;
}

.cal .week-number {
  background-color: #e9ecef;
  border: none;
  font-size: 1em;
  padding: 4px;
  text-align: center;
}

.cal .week-number .label-week {
  display: none;
}

.cal .calbody {
  border: 1px solid #ced4da;
  vertical-align: top;
  font-size: 0.9em;
  border-block-end: 0;
  border-inline-end: 0;
  line-height: 1.2;
  min-block-size: calc(1.2em * 6);
  padding: 2px;
  box-shadow: 0 1px 2px rgba(33, 37, 41, 0.05);
}

.cal .calbody p.day-num {
  font-size: 1.1em;
  text-align: end;
}

.cal .calbody .day-value {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
}

.cal .calbody .abbr-day {
  display: none;
}

.cal .calbody.this-month {
  background-color: #fff;
}

.cal .calbody.other-month {
  background-color: #f1f3f5;
}

.cal .calbody.other-month p.day-num {
  color: #adb5bd;
}

.cal .calbody.today p.day-num {
  font-weight: bold;
}

.cal .calbody.today .day-value {
  color: #fff;
  isolation: isolate;
}

.cal .calbody.today .day-value::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #5c7cfa;
  border-radius: 50%;
  z-index: -1;
}

.cal .calbody .icon {
  padding-block-start: 2px;
  padding-block-end: 3px;
}

.cal .calbody.nwday:not(.other-month) {
  background-color: #f1f3f5;
}

p.cal.legend span {
  display: flex;
}

.controller-calendars p.buttons {
  margin-block-start: unset;
}
