/* PhotoBridge v0.17.688 — print header structural parity.
   Mobile print now reuses the exact standard photographer quick-actions row.
   Archive/Invoice are the only print-only controls and live in their own second row.
   No observer, polling loop, geometry measurement, or scroll lock is introduced. */
@media (max-width:820px){
  /* Keep the print shell header itself passive and in normal document/flex flow. */
  .photographerMain.photographerPrintWorkspace>.unifiedRoleHeader.photographerPrintModeHeader,
  body .photographerMain.photographerPrintWorkspace>.workspaceBar.photographerPrintModeHeader{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    overflow:visible!important;
    background:#fff!important;
    border:0!important;
    border-bottom:1px solid #e2e8f0!important;
    border-radius:0!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
  }

  /* Exact same photographer identity rhythm as ordinary mobile tabs. */
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerHeaderIdentity{
    order:0!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    min-width:0!important;
    min-height:70px!important;
    height:auto!important;
    margin:0!important;
    padding:9px 10px 8px!important;
    padding-left:150px!important;
    display:flex!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:0!important;
    overflow:visible!important;
    background:#fff!important;
    box-sizing:border-box!important;
    text-align:right!important;
    direction:rtl!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader .workspaceIdentityCopy{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:0!important;
    text-align:right!important;
    direction:rtl!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader .workspaceIdentityCopy>h1{
    order:1!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:16px!important;
    font-weight:900!important;
    line-height:1.3!important;
    letter-spacing:-.2px!important;
    color:#172033!important;
    text-align:right!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader .workspaceIdentityCopy>small{
    order:2!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:#667085!important;
    font-size:9.3px!important;
    font-weight:600!important;
    line-height:1.35!important;
    text-align:right!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader .photographerIdentityDateOnly{
    order:3!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:2px 0 0!important;
    padding:0!important;
    align-self:stretch!important;
    align-items:center!important;
    justify-content:flex-start!important;
    color:#667085!important;
    opacity:1!important;
    text-align:right!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader .photographerIdentityDateOnly .todayStamp.compact{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:4px 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader .photographerIdentityDateOnly .todayStamp.compact span{
    font-size:9px!important;
    font-weight:850!important;
    line-height:1.2!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader .photographerIdentityDateOnly .todayStamp.compact b{
    display:inline-block!important;
    font-size:8.5px!important;
    line-height:1.2!important;
  }

  /* The real shared four photographer controls are now rendered in print too.
     Keep their geometry exactly equal to the other tabs. */
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerMobileHeaderQuickActions{
    display:flex!important;
    position:absolute!important;
    left:10px!important;
    right:auto!important;
    top:10px!important;
    z-index:30!important;
    margin:0!important;
    padding:0!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    direction:ltr!important;
  }

  /* Print-only Archive / Invoice row. It is structurally separate from the shared
     header controls, so it can never push or resize the standard four icons. */
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeUtilityCluster{
    order:1!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:188px!important;
    min-width:188px!important;
    max-width:188px!important;
    height:30px!important;
    min-height:30px!important;
    margin:0 10px 8px auto!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:30px!important;
    grid-template-areas:none!important;
    gap:6px!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    overflow:visible!important;
    direction:rtl!important;
    box-sizing:border-box!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeUtilityCluster>.photographerPrintModeBack{
    display:none!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeUtilityCluster>.photographerPrintCommonAction{
    grid-area:auto!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    margin:0!important;
    padding:0 7px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    border:1px solid #dfe4ec!important;
    border-radius:8px!important;
    background:#f8fafc!important;
    color:#667085!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    direction:rtl!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeUtilityCluster>.photographerPrintCommonAction span{
    display:inline!important;
    font-size:9px!important;
    line-height:1!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeUtilityCluster>.photographerPrintCommonAction em{
    display:inline!important;
    margin:0!important;
    font-style:normal!important;
    font-size:8.2px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeUtilityCluster>.photographerPrintCommonAction.active{
    background:#eef3ff!important;
    border-color:#b8c7ef!important;
    color:#315efb!important;
  }

  /* Lab + print/album tabs follow after the complete header block. */
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeNav{
    order:2!important;
  }

  /* Old runtime settings button must never create a fifth gear. */
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintSettingsQuickAction,
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.pb671PrintSettingsQuickAction{
    display:none!important;
  }
}
