/* ERP OS30R PERF4 HF2 — POP SHEETS visibility + Activity Calendar readability */

/* POP SHEETS overlays are rendered through a portal under <body>, outside .pop-sheets-root.
   Give portal UI an explicit palette so the white drawer never inherits the ERP shell's light text. */
.ps-workspace-overlay,
.ps-side-overlay,
.ps-drawer,
.ps-sidepanel {
  color: #202124 !important;
}
.ps-drawer,
.ps-sidepanel {
  background: #fff !important;
  color-scheme: light;
}
.ps-drawer header,
.ps-drawer header b,
.ps-drawer header span,
.ps-drawer button,
.ps-drawer input,
.ps-drawer label,
.ps-drawer small,
.ps-drawer .ps-file-list > button,
.ps-sidepanel button,
.ps-sidepanel input,
.ps-sidepanel select,
.ps-sidepanel textarea {
  color: #202124 !important;
}
.ps-drawer input,
.ps-sidepanel input,
.ps-sidepanel select,
.ps-sidepanel textarea {
  background: #fff !important;
  caret-color: #202124;
}
.ps-drawer input::placeholder,
.ps-sidepanel input::placeholder,
.ps-sidepanel textarea::placeholder {
  color: #80868b !important;
  opacity: 1;
}
.ps-workspace-overlay {
  overflow: hidden;
}
.ps-drawer {
  box-shadow: 18px 0 50px rgba(32,33,36,.18) !important;
}
.ps-save.error {
  color: #b3261e !important;
  font-weight: 800;
}

/* Activity Intelligence calendar: keep the existing visual design, raise only reading sizes. */
.ai-page { font-size: 15px; }
.ai-page .ai-kicker { font-size: 13px !important; }
.ai-page .ai-hero p { font-size: 15px !important; line-height: 1.65 !important; }
.ai-page .ai-template-line,
.ai-page .ai-upload-hint,
.ai-page .ai-kpis span,
.ai-page .ai-feed__head p,
.ai-page .ai-day-label i,
.ai-page .ai-event-card__date,
.ai-page .ai-event-card__content,
.ai-page .ai-empty-sub,
.ai-page .ai-batch-empty { font-size: 14px !important; }
.ai-page .ai-event-card__content { line-height: 1.65 !important; }
.ai-page .ai-event-card__meta span,
.ai-page .ai-chip,
.ai-page .ai-mini-week span,
.ai-page .ai-detail__eyebrow,
.ai-page .ai-detail__grid b,
.ai-page .ai-detail__section b,
.ai-page .ai-batches__title,
.ai-page .ai-batch b,
.ai-page .ai-batch span { font-size: 13px !important; }
.ai-page .ai-detail__grid span,
.ai-page .ai-detail__section p { font-size: 15px !important; line-height: 1.6 !important; }
.ai-page .ai-detail__section.compact p { font-size: 13px !important; }
.ai-page .ai-mini-cell {
  height: 44px !important;
  font-size: 14px !important;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-page .ai-mini-cell i {
  font-size: 11px !important;
  height: 17px !important;
  min-width: 17px !important;
  line-height: 17px !important;
}
.ai-page .ai-toolbar input,
.ai-page .ai-toolbar select,
.ai-page .ai-toolbar button { font-size: 14px !important; }

@media (max-width: 760px) {
  .ai-page { font-size: 14px; }
  .ai-page .ai-mini-cell { height: 40px !important; font-size: 13px !important; }
}
