/* PhotoBridge v700 — final responsive photographer header polish. */

@media (max-width:820px){
  :root{--pb700-pill:clamp(84px,23vw,94px)}

  /* Mobile utility row: exact final order and readable long pills. */
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions{
    display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;
    gap:4px!important;direction:ltr!important;overflow:visible!important;width:auto!important;max-width:none!important
  }
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileNotificationBell{order:1!important}
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderPower{order:2!important}
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderSettings{order:3!important}
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderInvite{order:4!important}
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderWallet{order:5!important}

  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderInvite,
  #pb700HeaderInviteButton{
    width:var(--pb700-pill)!important;min-width:var(--pb700-pill)!important;max-width:var(--pb700-pill)!important;
    flex:0 0 var(--pb700-pill)!important;aspect-ratio:auto!important;height:32px!important;min-height:32px!important;max-height:32px!important;
    padding:0 6px!important;margin:0!important;border:1px solid #d8dee9!important;border-radius:9px!important;background:#fff!important;
    color:#344054!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;
    overflow:hidden!important;box-sizing:border-box!important;font-size:0!important;line-height:1!important;transform:none!important;text-indent:0!important
  }
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderInvite::before,
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderInvite::after,
  #pb700HeaderInviteButton::before,#pb700HeaderInviteButton::after{content:none!important;display:none!important}
  .mobileHeaderInvite>.pb700InviteLabel{
    display:block!important;width:auto!important;max-width:100%!important;margin:0!important;padding:0!important;
    font-family:inherit!important;font-size:9px!important;font-weight:900!important;line-height:1!important;letter-spacing:-.08px!important;
    white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;direction:rtl!important;transform:none!important
  }
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderWallet{
    width:var(--pb700-pill)!important;min-width:var(--pb700-pill)!important;max-width:var(--pb700-pill)!important;
    flex:0 0 var(--pb700-pill)!important;height:32px!important;min-height:32px!important;max-height:32px!important;
    padding:0 6px!important;margin:0!important;gap:4px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    white-space:nowrap!important;overflow:hidden!important;box-sizing:border-box!important;font-size:9px!important;font-weight:900!important;line-height:1!important
  }
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderWallet>b{font-size:8.8px!important;font-weight:950!important;line-height:1!important}

  /* Remove every retired duplicate invite from previous experiments. */
  .photographerMobileAiInviteRow,#pb693GlobalInviteButton,#pb694HeaderInviteButton,#pb695HeaderInviteButton,#pb696HeaderInviteButton,#pb697HeaderInviteButton,#pb698HeaderInviteButton,#pb699HeaderInviteButton{display:none!important}
  #pb700HeaderInviteButton{display:inline-flex!important}

  /* Print mobile: reserve the secondary strip exactly, then keep "چاپ عکس جدید" ON its own gray rail.
     v699 moved the action 10px upward; that is the overlap the user still saw. */
  .photographerMain.photographerPrintWorkspace.pbFixedRoleHeader>.unifiedRoleHeader.photographerPrintModeHeader{
    margin-bottom:107px!important;overflow:visible!important
  }
  .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerPrintModeNav,
  body .photographerMain.photographerPrintWorkspace .photographerPrintModeHeader>.photographerHeaderNav.photographerPrintModeNav{
    top:100%!important;height:107px!important;min-height:107px!important;max-height:107px!important;
    grid-template-rows:42px 58px!important;gap:7px!important;padding:0 9px!important;overflow:visible!important;z-index:24!important
  }
  .photographerMain.photographerPrintWorkspace>.photographerLabContextRail:not(.photographerCreateContextMode){
    position:relative!important;z-index:30!important;margin-top:0!important;padding-top:6px!important;background:#f4f7fb!important;
    overflow:visible!important;border-top:0!important;box-shadow:none!important
  }
  .photographerMain.photographerPrintWorkspace>.photographerLabContextRail:not(.photographerCreateContextMode) .photographerLabContextActions{
    position:relative!important;z-index:31!important;transform:none!important;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;overflow:visible!important
  }
  .photographerMain.photographerPrintWorkspace>.photographerLabContextRail:not(.photographerCreateContextMode) .photographerLabContextActions>.photographerContextAction.primary{
    position:relative!important;z-index:32!important;transform:none!important;margin-top:0!important
  }
}

@media (max-width:350px){
  :root{--pb700-pill:82px}
  .mobileHeaderInvite>.pb700InviteLabel{font-size:8.6px!important}
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderWallet{font-size:8.6px!important}
  .photographerMobileHeaderQuickActions.pb700MobileQuickActions>.mobileHeaderWallet>b{font-size:8.4px!important}
}

/* Logged-in photographer desktop header now follows the compact public-header language:
   identity on the physical right, six compact underlined destinations, separator, utility actions. */
@media (min-width:821px){
  .photographerMain>.photographerHeaderRefined.pb700DesktopPhotographerHeader:not(.photographerPrintModeHeader),
  #photographerStoreRoleHeader.pb700DesktopPhotographerHeader:not(.photographerPrintModeHeader){
    display:flex!important;flex-direction:row!important;direction:rtl!important;align-items:stretch!important;
    gap:0!important;min-height:64px!important;padding:0 14px!important;overflow:visible!important;background:#fff!important
  }
  .pb700DesktopPhotographerHeader>.photographerHeaderIdentity,
  .pb700DesktopPhotographerHeader>.workspaceIdentity{
    order:1!important;flex:0 0 172px!important;min-width:150px!important;max-width:190px!important;
    display:flex!important;align-items:center!important;padding:6px 0 6px 12px!important;margin:0!important;box-sizing:border-box!important
  }
  .pb700DesktopPhotographerHeader>.photographerHeaderIdentity .workspaceIdentityCopy,
  .pb700DesktopPhotographerHeader>.workspaceIdentity .workspaceIdentityCopy{min-width:0!important;width:100%!important}
  .pb700DesktopPhotographerHeader>.photographerHeaderIdentity h1,
  .pb700DesktopPhotographerHeader>.workspaceIdentity h1{font-size:13px!important;line-height:1.35!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .pb700DesktopPhotographerHeader>.photographerHeaderIdentity small,
  .pb700DesktopPhotographerHeader>.workspaceIdentity small{font-size:7.5px!important;line-height:1.2!important}
  .pb700DesktopPhotographerHeader .photographerIdentityDateOnly{margin-top:2px!important}

  .pb700DesktopPhotographerHeader>.photographerHomeModeNav,
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav{
    order:2!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;
    display:flex!important;flex-flow:row nowrap!important;direction:rtl!important;align-items:stretch!important;justify-content:flex-start!important;
    gap:0!important;margin:0!important;padding:0 4px!important;transform:none!important;overflow:visible!important
  }
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav>.rolePrimaryAction{
    position:relative!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
    height:64px!important;min-height:64px!important;margin:0!important;padding:0 8px!important;border:0!important;border-radius:0!important;
    background:transparent!important;color:#475467!important;box-shadow:none!important;transform:none!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    font-family:inherit!important;font-size:10.2px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important
  }
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav>.rolePrimaryAction:hover{color:#315efb!important;background:#f8faff!important}
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav>.rolePrimaryAction.active{
    background:transparent!important;border:0!important;color:#315efb!important;box-shadow:none!important;font-weight:950!important
  }
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav>.rolePrimaryAction::before{content:none!important;display:none!important}
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav>.rolePrimaryAction::after{
    content:""!important;display:block!important;position:absolute!important;left:8px!important;right:8px!important;bottom:0!important;top:auto!important;
    height:3px!important;border:0!important;border-radius:3px 3px 0 0!important;background:transparent!important;box-shadow:none!important;pointer-events:none!important
  }
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav>.rolePrimaryAction.active::after{background:#315efb!important}

  .pb700DesktopPhotographerHeader>.pb700DesktopHeaderSeparator{
    order:3!important;display:block!important;flex:0 0 1px!important;width:1px!important;height:30px!important;
    align-self:center!important;margin:0 9px!important;background:#e4e7ec!important;border-radius:1px!important
  }

  .pb700DesktopPhotographerHeader>.photographerHeaderTools,
  .pb700DesktopPhotographerHeader>.pb700DesktopTools{
    order:4!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;align-self:stretch!important;
    border:0!important;background:transparent!important;overflow:visible!important;grid-column:auto!important;grid-row:auto!important
  }
  .pb700DesktopPhotographerHeader .roleHeaderToolButtons{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:5px!important;width:auto!important;overflow:visible!important}
  .pb700DesktopPhotographerHeader .roleHeaderToolButtons>button{height:34px!important;min-height:34px!important;margin:0!important}
  .pb700DesktopPhotographerHeader .headerWalletBadge,
  .pb700DesktopPhotographerHeader .photographerInviteHeaderBtn{min-width:76px!important;max-width:96px!important;padding:0 8px!important;font-size:9px!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .pb700DesktopPhotographerHeader .headerUtilityBtn{width:34px!important;min-width:34px!important;max-width:34px!important;padding:0!important}
  .pb700DesktopPhotographerHeader .photographerMobileHeaderQuickActions{display:none!important}
}

@media (min-width:821px) and (max-width:1060px){
  .pb700DesktopPhotographerHeader>.photographerHeaderIdentity,
  .pb700DesktopPhotographerHeader>.workspaceIdentity{flex-basis:150px!important;min-width:132px!important;max-width:160px!important}
  .pb700DesktopPhotographerHeader>.pb700DesktopPrimaryNav>.rolePrimaryAction{padding-inline:5px!important;font-size:9.3px!important}
  .pb700DesktopPhotographerHeader>.pb700DesktopHeaderSeparator{margin-inline:6px!important}
  .pb700DesktopPhotographerHeader .headerWalletBadge,
  .pb700DesktopPhotographerHeader .photographerInviteHeaderBtn{min-width:68px!important;max-width:82px!important;padding-inline:5px!important;font-size:8.4px!important}
}
