/* Presentation mode: blurs estimate prices, material costs and labour hours while the program is demoed to
   other depots. Per browser: only applies while <html> has the PresentationMode class, see PresentationMode.js. */
html.PresentationMode td[ValueBeingEdited="HOURS"],
html.PresentationMode td[ValueBeingEdited="MATERIAL"],
html.PresentationMode .PmAuto,
html.PresentationMode .tooltip.PmTooltip .tooltip-inner,
html.PresentationMode .PmValue:not(.eei-value),
html.PresentationMode .eei-card .eei-value.PmValue > span,
html.PresentationMode table.CostingSummary tbody td:not(:first-child),
html.PresentationMode table.CostingSummary tbody tr.EmergencyRateSummaryRow > td,
html.PresentationMode table.CostingAllocatedSummary tbody td:not(:first-child),
html.PresentationMode table.CostingAllocatedSummary tbody tr.EmergencyRateSummaryRow > td,
html.PresentationMode tr.BoxInspectionRow > td:not(:first-child),
html.PresentationMode tr.TotalBoxRow > td:not(:first-child),
html.PresentationMode tr.GrandTotalBoxRow > td:not(:first-child),
html.PresentationMode tr.TotalCWBoxRow > td:not(:first-child),
html.PresentationMode tr.GrandTotalCWBoxRow > td:not(:first-child),
html.PresentationMode tr.TotalORUnitRow > td:not(:first-child),
html.PresentationMode tr.TotalCWUnitRow > td:not(:first-child),
html.PresentationMode tr.GrandTotalCWUnitRow > td:not(:first-child),
html.PresentationMode tr.TotalUnitRow > td:not(:first-child),
html.PresentationMode tr.GrandTotalUnitRow > td:not(:first-child),
html.PresentationMode tr.TotalCWEstimateRow > td:not(:first-child),
html.PresentationMode tr.GrandTotalCWEstimateRow > td:not(:first-child),
html.PresentationMode select.PmNameList option,
/* client labels on the stack views: often a shortened client name, so the name matching can not catch them */
html.PresentationMode span.ClientsInStack,
html.PresentationMode .ClientInStack,
html.PresentationMode #ClientOfContainerLbl .ClientUserName,
/* the raw EDI messages of the estimate detail's Edi tab hold prices, hours and names */
html.PresentationMode #EdiTimelineContent .edi-content,
/* Settings > Container Clients > Connections: the FTP/SFTP host and folder name a client's or partner's server */
html.PresentationMode #cc-connections-list .cc-connections-table > tbody > tr > td:nth-child(2),
html.PresentationMode #cc-connections-list .cc-connections-table > tbody > tr > td:nth-child(6),
/* Settings > Container Clients: the estimate amounts a client approves without asking (Client tab and add client) */
html.PresentationMode #cc-tabpane-client input[id^="cc-inline-cap-"],
html.PresentationMode input[id^="ecc-cap-"],
html.PresentationMode table.QseApprovalsFoundTbl > tbody > tr > td:nth-child(3),
html.PresentationMode table.QseApprovalsFoundTbl > tbody > tr > td:nth-child(4) {
  filter: blur(6px);
  user-select: none;
}
/* A dropdown listing client/user names (PmNameList, set by PresentationMode.js): a native option list opens outside
   the page and can not be blurred, base-select draws it inside the page so the option rule above reaches it.
   Picking still works by position or by typing the first letters. */
html.PresentationMode select.PmNameList,
html.PresentationMode select.PmNameList::picker(select) {
  appearance: base-select;
}
/* Embedded reports (the Power BI client homepage) can not be scanned, so the whole iframe is blurred, and their
   large KPI numbers stay readable at 6px. 14px hides them while the report layout stays recognisable. */
html.PresentationMode iframe.PmValue:not(.eei-value) {
  filter: blur(14px);
}
/* Settings > Unit Parts: the edit price button sits inside the price cell and reads the price off the cell's
   text node, so the markup stays as is and only the text is blurred, the button stays sharp. */
html.PresentationMode #sup-container table.sup-parts-table td.sup-price {
  color: transparent;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  user-select: none;
}
html.PresentationMode #sup-container table.sup-parts-table td.sup-price > button {
  text-shadow: none;
}
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #StartHours,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #StartMaterial,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #SecondHours,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #SecondMaterial,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #ExtraSmallMaterialValue,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #PriceOfPartLbl,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #PriceOfPartToCalculateWithLbl,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #TestResultHours,
html.PresentationMode .EditUnitCostingModal-modal-body .CostingTypeInfoContent #TestResultMaterial {
  filter: blur(6px);
  user-select: none;
}
