.bp-day-head-cell.bp-day-has-inconsistency {
  background: inherit;
}

.bp-planning-days-head {
  z-index: 1000;
}

.bp-day-head-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 22px 16px;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
  padding-block: 8px;
  position: relative;
}

.bp-day-head-cell > strong {
  grid-column: 1;
  grid-row: 1;
}

.bp-day-head-cell > span:not(.bp-day-warning-line) {
  grid-column: 2;
  grid-row: 1;
}

.bp-day-inconsistency-warning {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #b66f3d !important;
  box-shadow: none;
  line-height: 1 !important;
  cursor: pointer;
  transition: color .14s ease, transform .14s ease;
  z-index: 20;
}

.bp-day-inconsistency-warning .bp-day-warning-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.bp-day-inconsistency-warning:hover {
  color: #8f5128 !important;
  transform: translateY(-1px);
}

.bp-day-warning-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 8px 10px;
  border: 1px solid #dfe8e2;
  border-left: 3px solid #c9824d;
  border-radius: 10px;
  background: #fff;
  color: #315843;
  box-shadow: 0 10px 22px rgba(48,74,60,.12);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: pre-line;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index: 9999;
}

.bp-day-inconsistency-warning:hover .bp-day-warning-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bp-day-head-cell:nth-last-child(-n + 2) .bp-day-warning-popover {
  right: 0;
  left: auto;
}

.bp-day-warning-line {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  height: 16px;
}

.bp-day-warning-line:empty {
  display: none;
}
