/* Build 445 — stable document footer, white Jobs section bars and calendar record colours */

/* Jobs section bars stay neutral white. */
.guard-job-section-v443 > summary{
  background:#fff!important;
}

/* Selected-day record headers use their record colour while closed. */
.guard-calendar-bar-v445{
  transition:background-color .12s ease,border-color .12s ease,color .12s ease!important;
}
.guard-calendar-bar-job-v445{
  background:#dcfce7!important;
  border-color:#86efac!important;
  color:#166534!important;
}
.guard-calendar-bar-contract-v445{
  background:#dbeafe!important;
  border-color:#bfdbfe!important;
  color:#1d4ed8!important;
}
.guard-calendar-bar-callout-v445{
  background:#ede9fe!important;
  border-color:#ddd6fe!important;
  color:#6d28d9!important;
}
.guard-calendar-bar-lead-v445{
  background:#fee2e2!important;
  border-color:#fecaca!important;
  color:#991b1b!important;
}
.guard-calendar-bar-coldcall-v445{
  background:#fef3c7!important;
  border-color:#fde68a!important;
  color:#854d0e!important;
}
.guard-calendar-bar-v445.guard-calendar-bar-open-v445{
  background:#fff!important;
}

/* One fixed footer layout. The logo remains at the approved size; text is fitted by JS. */
.report-footer.guard-report-footer-v445{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  gap:5px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.report-footer.guard-report-footer-v445 > img{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  object-fit:contain!important;
  transform:none!important;
}
.report-footer.guard-report-footer-v445 .report-footer-text{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:visible!important;
  letter-spacing:0!important;
  transform:none!important;
  transform-origin:left center!important;
  line-height:1.15!important;
}
.report-footer.guard-report-footer-v445 .rfs,
.report-footer.guard-report-footer-v445 .rfs-sep{
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

/* Keep the original Call Outs or Jobs page visible behind a record modal. */
.guard-origin-overlay-v445{
  position:fixed!important;
  z-index:60!important;
  pointer-events:none!important;
  overflow:hidden!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.guard-origin-overlay-open-v445{
  overflow:hidden!important;
}

@media print{
  .guard-origin-overlay-v445{display:none!important}
  .report-footer.guard-report-footer-v445{
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
}
