/*
 * Yellow primary (UNFOLD COLORS): white text is low-contrast.
 * Dark text on primary surfaces and descendants
 * (changelist actions bar wraps controls; they may only have text-white).
 */
.bg-primary-600,
.bg-primary-500 {
  color: rgb(28 25 23) !important;
}

.bg-primary-600 *,
.bg-primary-500 * {
  color: rgb(28 25 23) !important;
}

:is(a, button, input[type="submit"], input[type="button"]).bg-primary-600,
:is(a, button, input[type="submit"], input[type="button"]).bg-primary-700 {
  color: rgb(28 25 23) !important;
}

:is(a, button, input[type="submit"], input[type="button"]).bg-primary-600:hover,
:is(a, button, input[type="submit"], input[type="button"]).bg-primary-600:focus-visible {
  color: rgb(28 25 23) !important;
}

.calendar table td.today a {
  color: rgb(28 25 23) !important;
}

/* Light theme: default Unfold base-* body text is too pale on white. */
html:not(.dark) #main {
  color: rgb(34, 34, 34);
}

/* Billing timeline: lease start/end dots (Tailwind in app templates is not in Unfold’s bundle). */
.porta-billing-lease-dot-row {
  display: flex;
  box-sizing: border-box;
  height: 12px;
  width: 100%;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.porta-billing-lease-dot-row .porta-billing-lease-dot--start,
.porta-billing-lease-dot-row .porta-billing-lease-dot--end {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.porta-billing-lease-dot-row .porta-billing-lease-dot--start {
  background-color: #059669;
}

.porta-billing-lease-dot-row .porta-billing-lease-dot--end {
  background-color: #d97706;
}
