/* C4 report presentation. The same source report is used in the inner page
   and the parent's #r13-print-surface wrapper. No arithmetic or page clipping.
   Actions prepare the appropriate visible clone; the bridge restores state. */
@layer r7-refinement {
  body#ordrel-r163.jem33-r13 main#main.r13-staff-main :is([data-r13-report],[data-r13-print-denied],[data-r13-print-invalid]) {display:none!important;}
  body#ordrel-r163.jem33-r13 main#main.r13-staff-main .r13-staff-history-record {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 16px!important;align-items:start!important;padding:16px 0!important;border-top:1px solid var(--r13-border)!important;}
  body#ordrel-r163.jem33-r13 main#main.r13-staff-main .r13-staff-history-record>button {grid-column:2!important;grid-row:1/4!important;align-self:center!important;}
  @media(max-width:639px) {
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main .r13-staff-history-record {grid-template-columns:minmax(0,1fr)!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main .r13-staff-history-record>button {grid-column:auto!important;grid-row:auto!important;justify-self:start!important;}
  }

  @media print {
    @page r13-staffing-a4 {size:A4 portrait;margin:10mm;}
    @page r13-staffing-letter {size:letter portrait;margin:10mm;}

    body#ordrel-r163.jem33-r13 main#main.r13-staff-main {
      --r13-paper:#FFFFFF;--r13-canvas:#F4F6F8;--r13-ink:#102539;--r13-muted:#4B5B6B;--r13-blue:#1B4DDB;--r13-border:#BBC5D1;
      display:block!important;position:static!important;inset:auto!important;float:none!important;
      width:100%!important;max-width:none!important;min-width:0!important;height:auto!important;
      margin:0!important;padding:0!important;background:#FFFFFF!important;color:#102539!important;
      overflow:visible!important;transform:none!important;box-shadow:none!important;
    }
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main>.r13-staffing {display:block!important;position:static!important;gap:0!important;margin:0!important;padding:0!important;width:100%!important;min-width:0!important;background:#FFFFFF!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main>:not(.r13-staffing):not([data-r13-report]):not([data-r13-print-denied]):not([data-r13-print-invalid]) {display:none!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main>.r13-staffing>:not([data-r13-report]):not([data-r13-print-denied]):not([data-r13-print-invalid]) {display:none!important;}

    /* These selectors reveal prepared, unhidden nodes only. An invalid paid
       result is separate from the Free entitlement note. */
    body#ordrel-r163.jem33-r13[data-r13-staff-print="paid"] main#main.r13-staff-main [data-r13-report]:not([hidden]) {display:block!important;}
    body#ordrel-r163.jem33-r13[data-r13-staff-print="free"] main#main.r13-staff-main [data-r13-print-denied]:not([hidden]),
    body#ordrel-r163.jem33-r13[data-r13-staff-print="invalid"] main#main.r13-staff-main [data-r13-print-invalid]:not([hidden]) {display:block!important;margin:0!important;padding:0!important;font-size:12pt!important;line-height:1.4!important;color:#102539!important;background:#FFFFFF!important;}

    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] {
      page:r13-staffing-a4!important;position:static!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;
      margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:visible!important;background:#FFFFFF!important;color:#102539!important;
      font-family:"R11Body",Arial,"Noto Sans",sans-serif!important;font-size:9pt!important;line-height:1.2!important;
      box-shadow:none!important;break-before:auto!important;break-after:auto!important;print-color-adjust:exact;-webkit-print-color-adjust:exact;
    }
    body#ordrel-r163.jem33-r13[data-r13-paper="letter"] main#main.r13-staff-main [data-r13-report] {page:r13-staffing-letter!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] * {box-sizing:border-box!important;min-width:0!important;max-height:none!important;font-family:inherit!important;letter-spacing:normal!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] :is(p,span,small,li,dt,dd,td,th,output,time,figcaption,a) {font-size:9pt!important;line-height:1.2!important;margin:0!important;color:#102539!important;white-space:normal!important;hyphens:auto!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] :is(output,[data-r13-report-value],td,th) {overflow-wrap:anywhere!important;word-break:normal!important;font-variant-numeric:tabular-nums!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] :is(h2,h3) {color:#102539!important;font-weight:700!important;line-height:1.2!important;letter-spacing:normal!important;white-space:normal!important;hyphens:auto!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] h2 {font-size:16pt!important;margin:0 0 4px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] h3 {font-size:10pt!important;margin:0 0 4px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report]>:is(section,div,header) {margin:0 0 8px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] section {padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}

    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-header {display:grid!important;grid-template-columns:28mm minmax(0,1fr)!important;gap:12px!important;align-items:center!important;padding:0 0 8px!important;border-bottom:2px solid #1B4DDB!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-header img {width:28mm!important;height:auto!important;max-width:100%!important;aspect-ratio:3/1!important;object-fit:contain!important;filter:none!important;opacity:1!important;box-shadow:none!important;border:0!important;border-radius:0!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-verdict {display:grid!important;grid-template-columns:16px minmax(0,1fr)!important;gap:8px!important;align-items:start!important;padding:8px!important;border:1px solid #BBC5D1!important;background:#F4F6F8!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-verdict p {font-weight:700!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] [data-r13-report-status-icon] {display:flex!important;align-items:center!important;justify-content:center!important;width:16px!important;height:16px!important;border:1px solid currentColor!important;border-radius:50%!important;font-weight:700!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-input-grid {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px 8px!important;margin:0!important;padding:0!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-field {display:block!important;padding:4px 0!important;border-bottom:1px solid #BBC5D1!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-field dt {font-weight:400!important;color:#4B5B6B!important;margin:0 0 2px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-field dd {display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:0 4px!important;font-weight:700!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-inputs [data-r13-report-section] {margin-top:8px!important;}

    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks {width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;margin:0!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-col-task {width:40%!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-col-quantity {width:14%!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-col-pace {width:30%!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-col-labor {width:16%!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks :is(th,td) {padding:4px 8px!important;text-align:start!important;vertical-align:top!important;border-bottom:1px solid #BBC5D1!important;font-weight:400!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks thead th {background:#1B4DDB!important;color:#FFFFFF!important;font-weight:700!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks tbody tr:nth-child(even) {background:#F4F6F8!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks tbody tr {break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks th>span {font-weight:700!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks small {display:block!important;color:#4B5B6B!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-tasks tr>:is(:nth-child(2),:nth-child(4)) {text-align:end!important;}

    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-analysis {display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)!important;gap:12px!important;align-items:start!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] [data-r13-report-value="formula"] {margin:0 0 8px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart {display:block!important;padding:8px!important;margin:0!important;border:1px solid #BBC5D1!important;border-radius:4px!important;background:#F4F6F8!important;box-shadow:none!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart figcaption {font-weight:700!important;margin:0 0 8px!important;padding:0!important;background:transparent!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart-track {display:block!important;position:relative!important;width:100%!important;height:24px!important;margin:0 0 8px!important;background:#FFFFFF!important;border-radius:2px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart-required {display:block!important;position:absolute!important;inset-block:0!important;left:0!important;border:2px dashed #4B5B6B!important;border-radius:2px!important;background:transparent!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart-assigned {display:block!important;position:absolute!important;top:4px!important;bottom:4px!important;left:0!important;background:#1B4DDB!important;border-radius:2px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart-demand {display:block!important;position:absolute!important;top:0!important;bottom:0!important;width:2px!important;transform:translateX(-1px)!important;background:#102539!important;box-shadow:0 0 0 1px #FFFFFF!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart-legend {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:4px!important;margin:0!important;padding:0!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart-legend>div {display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:8px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-chart-legend dd {font-weight:700!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] :is([data-r13-report-chart-unit],[data-r13-report-chart-gap]) {margin-top:4px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] [data-r13-report-chart-gap] {font-weight:700!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-report-metrics {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;padding:0!important;margin:0!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-report-metrics>.r13-report-field {padding:8px!important;background:#F4F6F8!important;border:0!important;border-left:2px solid #1B4DDB!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-report-metrics output {font-size:16pt!important;font-weight:700!important;line-height:1.1!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] [data-r13-report-unit] {font-weight:400!important;color:#4B5B6B!important;}

    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-report-sensitivity {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-report-sensitivity>div {padding:4px 0!important;border-top:1px solid #BBC5D1!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-report-sensitivity dt {margin-bottom:4px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-staff-report-sensitivity output {font-size:12pt!important;font-weight:700!important;margin-right:4px!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-warnings p {padding:4px 8px!important;border-left:2px solid #734500!important;background:#FFF4D9!important;margin-bottom:4px!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-note {padding:4px 8px!important;border-left:2px solid #1B4DDB!important;margin:0 0 4px!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-checks ul {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 16px!important;margin:0!important;padding-inline-start:16px!important;list-style:disc!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-checks li {padding:0!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-footer {display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:baseline!important;gap:4px 12px!important;margin:0!important;padding-top:8px!important;border-top:1px solid #BBC5D1!important;break-inside:avoid!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-footer a {display:inline!important;min-height:0!important;padding:0!important;color:#1B4DDB!important;text-decoration:none!important;}
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] .r13-report-footer a::after {content:none!important;}

    /* Inactive rows/alternatives remain hidden. This does not reveal the report
       root or print notes; preparePrint must remove their hidden attributes. */
    body#ordrel-r163.jem33-r13 main#main.r13-staff-main [data-r13-report] [hidden] {display:none!important;}
  }
}
