/* 12.61: report identity, readable calendar actions and safe time-control rails.
 * Presentation only: no permission, time value, approval or document changes. */
#appContent #newReportPanel {
  --report-surface-r769: #dff1ff;
  --report-card-r769: #f1f8ff;
  --report-ink-r769: #16354b;
  --report-muted-r769: #385c76;
  --report-line-r769: #79a8cc;
  background: var(--report-surface-r769);
  color: var(--report-ink-r769);
  border-color: var(--report-line-r769);
}
:is(body.theme-dark,body.dark-theme,body.dark-mode,body[data-theme="dark"],html[data-theme="dark"] body) #appContent #newReportPanel {
  --report-surface-r769: #102d43;
  --report-card-r769: #193d56;
  --report-ink-r769: #edf7ff;
  --report-muted-r769: #c1d9ec;
  --report-line-r769: #80b4da;
  color-scheme: dark;
}
#appContent #newReportPanel > .section-title,
#appContent #newReportPanel > .section-title :is(.eyebrow,h2),
#appContent #newReportPanel #workForm > :is(p,label,.work-type-field,.work-time-range),
#appContent #newReportPanel #workForm > label > span,
#appContent #newReportPanel #workForm > .work-type-field > label > span,
#appContent #newReportPanel #workForm > .farm-field > label > span,
#appContent #newReportPanel #workForm > .work-time-range > label > span {
  color: var(--report-ink-r769);
}
#appContent #newReportPanel :is(.calculated-time,.calculated-time span,.calculated-time strong) {
  color: var(--report-ink-r769);
}
#appContent #newReportPanel :is(.calculated-time,.add-database-box,.collaborator-chip,.travel-cert-row,.include-current-user) {
  background: var(--report-card-r769);
  border-color: var(--report-line-r769);
}
#appContent #newReportPanel :is(.form-hint,.report-turbine-hint,.travel-cert-row small,.collaborator-chip small) {
  color: var(--report-muted-r769);
}
:is(body.theme-dark,body.dark-theme,body.dark-mode,body[data-theme="dark"],html[data-theme="dark"] body) #appContent #newReportPanel :is(label,legend,.travel-km-assignments strong,.collaborator-chip strong) {
  color: var(--report-ink-r769);
}
#appContent #newReportPanel #showAddWorkType { min-height: 48px; }
#appContent #newReportPanel #workForm > .calculated-time {
  background: var(--report-card-r769);
  border-color: var(--report-line-r769);
  color: var(--report-ink-r769);
}
#appContent #newReportPanel #workForm > .calculated-time :is(span,strong) { color: var(--report-ink-r769); }
#appContent #newReportPanel :is(.work-type-field,.farm-field) {
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px;
  gap: 8px;
  align-items: end;
}
#appContent #newReportPanel :is(.work-type-field,.farm-field) > label { min-width: 0; grid-column: 1; grid-row: 1; }
#appContent #newReportPanel :is(.work-type-field,.farm-field) > .favorite-button {
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
}
#appContent #newReportPanel #deleteWorkTypeButton { grid-column: 1 / -1; justify-self: end; }
body.theme-dark #appContent #newReportPanel .favorite-button:not(.active) {
  background: #1d405b; color: #edf7ff; border-color: #80b4da;
}
body.theme-dark #appContent #newReportPanel .favorite-button.active {
  background: #493910; color: #ffdc85; border-color: #ceac5f;
}
/* Calendar report/permit card rules formerly forced pale text on pale actions. */
#appContent #historyPanel :is(.entry-actions,.report-calendar-diet-source) button,
#appContent #historyPanel .history-month-nav button {
  background: #edf6ff;
  border: 1px solid #6c91b2;
  color: #17354b !important;
  min-height: 44px;
  opacity: 1;
  line-height: 1.4;
}
#appContent #historyPanel :is(.entry-actions,.report-calendar-diet-source) button :is(strong,b,span,small),
#appContent #historyPanel .history-month-nav button :is(strong,b,span,small) { color: inherit !important; }
#appContent #historyPanel .entry-actions .entry-delete-action {
  background: #fff0f2;
  border-color: #b8354b;
  color: #9c1930 !important;
}
#appContent #historyPanel .entry-actions button:disabled {
  background: #e1eaf2;
  border-color: #8195a7;
  color: #465b70 !important;
  cursor: not-allowed;
}
#appContent #historyPanel :is(.entry-actions,.report-calendar-diet-source,.history-month-nav) button:focus-visible {
  outline: 3px solid #218cff;
  outline-offset: 3px;
}
#appContent :is(#newReportPanel,#workOrderPanel,#userWorkOrdersList,#activeWorkOrdersPanel) :is(.time-scroll-safe,.active-time-control) {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  touch-action: pan-y;
}
#appContent :is(#newReportPanel,#workOrderPanel,#userWorkOrdersList,#activeWorkOrdersPanel) :is(.time-scroll-safe,.active-time-control) > :is(select,input[type="time"],button[data-active-time-button]),
#appContent #selectedCollaborators select[data-collaborator-time] {
  display: block;
  width: 66.666667% !important;
  max-width: 100%;
  min-width: min(88px,100%);
  margin-inline: auto !important;
  min-height: 44px;
  box-sizing: border-box;
}
#appContent .time-scroll-gutter { display: none; }
@media(forced-colors:active) {
  #appContent #historyPanel :is(.entry-actions,.report-calendar-diet-source,.history-month-nav) button {
    color: ButtonText !important; background: ButtonFace; border-color: ButtonText;
  }
}
